From 1beb7dc02051f44e8630fb1661f1b928e4505633 Mon Sep 17 00:00:00 2001 From: Sergio <77530549+sergi0g@users.noreply.github.com> Date: Fri, 7 Feb 2025 17:44:46 +0200 Subject: [PATCH] Add docs for multiple servers --- docs/src/content/docs/configuration/index.mdx | 6 ++++++ docs/src/content/docs/configuration/servers.mdx | 15 +++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 docs/src/content/docs/configuration/servers.mdx diff --git a/docs/src/content/docs/configuration/index.mdx b/docs/src/content/docs/configuration/index.mdx index b771ca5..88a207b 100644 --- a/docs/src/content/docs/configuration/index.mdx +++ b/docs/src/content/docs/configuration/index.mdx @@ -8,6 +8,7 @@ import { IconLockOpen, IconKey, IconPlug, + IconServer } from "@tabler/icons-react"; # Configuration @@ -59,6 +60,11 @@ Follow the guides below to customize your `cup.json` title="Theme" href="/docs/configuration/theme" /> + } + title="Multiple servers" + href="/docs/configuration/servers" + /> Here's a full example: diff --git a/docs/src/content/docs/configuration/servers.mdx b/docs/src/content/docs/configuration/servers.mdx new file mode 100644 index 0000000..077e681 --- /dev/null +++ b/docs/src/content/docs/configuration/servers.mdx @@ -0,0 +1,15 @@ +# Multiple servers + +Besides checking for local image updates, you might want to be able to view update stats for all your servers running Cup in a central place. If you choose to add more servers to your Cup configuration, Cup will retrieve the current list of updates from your other servers and it will be included in the results. + +Just add something like this to your config: + +```json +{ + "servers": { + "Cool server 1": "http://your-other-server-running-cup:8000", + "Other server": "http://and-another-one:9000" + } + // Other options +} +``` \ No newline at end of file