diff --git a/caddy/Caddyfile b/caddy/Caddyfile index a115c10..5b1e0b1 100644 --- a/caddy/Caddyfile +++ b/caddy/Caddyfile @@ -131,6 +131,12 @@ https://fmd.novemila.org { reverse_proxy localhost:3015 } +# DASHY + +https://dashboard.novemila.org { + reverse_proxy localhost:3016 +} + # MOLLY https://molly.novemila.org { diff --git a/dashboard/.env b/dashboard/.env new file mode 100644 index 0000000..927196c --- /dev/null +++ b/dashboard/.env @@ -0,0 +1,2 @@ +# Variables defined here will be available to use anywhere in the config with the syntax ${MY_SECRET_TOKEN} +# Note: making changes to this file requires re-running docker compose up \ No newline at end of file diff --git a/dashboard/asset/user.css b/dashboard/asset/user.css new file mode 100644 index 0000000..e69de29 diff --git a/dashboard/config/glance.yml b/dashboard/config/glance.yml new file mode 100644 index 0000000..56e4f32 --- /dev/null +++ b/dashboard/config/glance.yml @@ -0,0 +1,18 @@ +server: + assets-path: /app/assets + +theme: + # Note: assets are cached by the browser, changes to the CSS file + # will not be reflected until the browser cache is cleared (Ctrl+F5) + custom-css-file: /assets/user.css + +pages: + # It's not necessary to create a new file for each page and include it, you can simply + # put its contents here, though multiple pages are easier to manage when separated + !include: novemila.yml + +branding: + hide-footer: true + # logo-text: D + logo-url: /assets/logo.png + favicon-url: /assets/logo.png \ No newline at end of file diff --git a/dashboard/config/novemila.yml b/dashboard/config/novemila.yml new file mode 100644 index 0000000..702e92f --- /dev/null +++ b/dashboard/config/novemila.yml @@ -0,0 +1,66 @@ +- name: novemila.org + # Optionally, if you only have a single page you can hide the desktop navigation for a cleaner look + # hide-desktop-navigation: true + + columns: + - size: full + widgets: + - type: monitor + cache: 1m + title: Services + sites: + - title: Find My Device + url: https://fmd.novemila.org/ + icon: si:maplibre + - title: Fresh RSS + url: https://rss.novemila.org + icon: si:rss + - title: Gitea + url: https://git.novemila.org/ + icon: si:gitea + - title: GoToSocial + url: https://social.novemila.org/ + icon: si:mastodon + - title: LibreTranslate + url: https://translate.novemila.org/ + icon: si:libretranslate + - title: Linkwarden + url: https://link.novemila.org/it/login + icon: si:pocket + - title: Mollysocket + url: https://molly.novemila.org/ + icon: si:signal + - title: Nextcloud + url: https://cloud.novemila.org/login + icon: si:nextcloud + - title: novemila + url: https://www.novemila.org + icon: assets/logo.png + - title: ntfy + url: https://ntfy.novemila.org/ + icon: si:ntfy + - title: Phanpy + url: https://phanpy.novemila.org/ + icon: si:hackthebox + - title: Snikklet + url: https://chat.novemila.org/ + icon: si:xmpp + - title: Vaultwarden + url: https://vault.novemila.org + icon: si:bitwarden + + - size: small + widgets: + - type: server-stats + servers: + - type: local + name: Services + + - type: calendar + first-day-of-week: monday + + - type: clock + hour-format: 24h + timezones: + - timezone: Europe/Rome + label: Rome \ No newline at end of file diff --git a/dashboard/docker-compose.yml b/dashboard/docker-compose.yml new file mode 100644 index 0000000..c311c79 --- /dev/null +++ b/dashboard/docker-compose.yml @@ -0,0 +1,17 @@ +services: + glance: + image: glanceapp/glance + container_name: glance + mem_limit: 128m + volumes: + - ./config:/app/config + - ./assets:/app/assets + # Optionally, also mount docker socket if you want to use the docker containers widget + - /var/run/docker.sock:/var/run/docker.sock:ro + ports: + - 127.0.0.1:3016:8080 + env_file: .env + restart: unless-stopped + + +