diff --git a/glance/.env.example b/glance/.env.example index 65190a0..8916020 100644 --- a/glance/.env.example +++ b/glance/.env.example @@ -1,5 +1,4 @@ -# 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 -MY_SECRET_TOKEN= GITHUB_TOKEN= -SERADAR_TOKEN= \ No newline at end of file +SERADAR_TOKEN= +SECRET_KEY= +ADMIN_PASSWORD= \ No newline at end of file diff --git a/glance/config/glance.yml b/glance/config/glance.yml index 12bedce..5b3e6fb 100644 --- a/glance/config/glance.yml +++ b/glance/config/glance.yml @@ -1,16 +1,17 @@ server: - assets-path: /app/assets + assets-path: /app/assets + +auth: + secret-key: ${SECRET_KEY} + users: + admin: + password: ${ADMIN_PASSWORD} 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 - background-color: 240 13 14 - primary-color: 51 33 68 - negative-color: 358 100 68 - contrast-multiplier: 1.2 + background-color: 240 13 14 + primary-color: 51 33 68 + negative-color: 358 100 68 + contrast-multiplier: 1.2 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: home.yml + $include: home.yml diff --git a/glance/config/home.yml b/glance/config/home.yml index e394f18..56a0692 100644 --- a/glance/config/home.yml +++ b/glance/config/home.yml @@ -2,164 +2,164 @@ # Optionally, if you only have a single page you can hide the desktop navigation for a cleaner look # hide-desktop-navigation: true columns: - - size: small - widgets: - - type: server-stats - servers: - - type: local - name: Services + - size: small + widgets: + - type: server-stats + servers: + - type: local + name: Services - - type: monitor - cache: 1s - title: Services - sites: - - title: seradar.net - url: https://seradar.net/auth - icon: /assets/seradar.png - - title: git.aykhans.me - url: https://git.aykhans.me/aykhans - icon: /assets/gitea.svg - - title: ftp.aykhans.me - url: https://ftp.aykhans.me/web/client/login - icon: /assets/sftpgo.png - - title: notes.aykhans.me - url: https://notes.aykhans.me/signin - icon: /assets/blinko.png - - title: url.aykhans.me - url: https://url.aykhans.me/auth - icon: /assets/slash.svg - - title: vault.aykhans.me - url: https://vault.aykhans.me/#/login - icon: /assets/vaultwarden.svg - - title: wg.aykhans.me - url: https://wg.aykhans.me/ - icon: /assets/wireguard.png - - title: aykhans.me - url: https://aykhans.me/ - icon: /assets/ghost.png + - type: monitor + cache: 1s + title: Services + sites: + - title: seradar.net + url: https://seradar.net/auth + icon: /assets/seradar.png + - title: git.aykhans.me + url: https://git.aykhans.me/aykhans + icon: /assets/gitea.svg + - title: ftp.aykhans.me + url: https://ftp.aykhans.me/web/client/login + icon: /assets/sftpgo.png + - title: notes.aykhans.me + url: https://notes.aykhans.me/signin + icon: /assets/blinko.png + - title: url.aykhans.me + url: https://url.aykhans.me/auth + icon: /assets/slash.svg + - title: vault.aykhans.me + url: https://vault.aykhans.me/#/login + icon: /assets/vaultwarden.svg + - title: wg.aykhans.me + url: https://wg.aykhans.me/ + icon: /assets/wireguard.png + - title: aykhans.me + url: https://aykhans.me/ + icon: /assets/ghost.png - - type: docker-containers - cache: 0s - hide-by-default: false + - type: docker-containers + cache: 0s + hide-by-default: false - - type: releases - cache: 1d - collapse-after: 3 - # Without authentication the Github API allows for up to 60 requests per hour. You can create a - # read-only token from your Github account settings and use it here to increase the limit. - token: ${GITHUB_TOKEN} - repositories: - - caddyserver/caddy - - glanceapp/glance - - go-gitea/gitea - - drakkan/sftpgo - - blinko-space/blinko - - yourselfhosted/slash - - dani-garcia/vaultwarden - - wg-easy/wg-easy - - pocketbase/pocketbase - - prometheus/prometheus - - grafana/grafana - - TryGhost/Ghost + - type: releases + cache: 1d + collapse-after: 3 + # Without authentication the Github API allows for up to 60 requests per hour. You can create a + # read-only token from your Github account settings and use it here to increase the limit. + token: ${GITHUB_TOKEN} + repositories: + - caddyserver/caddy + - glanceapp/glance + - go-gitea/gitea + - drakkan/sftpgo + - blinko-space/blinko + - yourselfhosted/slash + - dani-garcia/vaultwarden + - wg-easy/wg-easy + - pocketbase/pocketbase + - prometheus/prometheus + - grafana/grafana + - TryGhost/Ghost - - size: full - widgets: - - type: group - widgets: - - type: hacker-news - - type: lobsters + - size: full + widgets: + - type: group + widgets: + - type: hacker-news + - type: lobsters - - type: rss - limit: 150 - collapse-after: 5 - cache: 1h - style: horizontal-cards - feeds: - - url: https://registerspill.thorstenball.com/feed - title: Thorsten Ball - - url: https://selfh.st/rss/ - title: selfh.st + - type: rss + limit: 150 + collapse-after: 5 + cache: 1h + style: horizontal-cards + feeds: + - url: https://registerspill.thorstenball.com/feed + title: Thorsten Ball + - url: https://selfh.st/rss/ + title: selfh.st - - type: custom-api - title: Seradar - cache: 1m - url: https://seradar.net/api/collections/series/records?page=1&perPage=1000&sort=-new_episodes - headers: - Accept: application/json - Authorization: ${SERADAR_TOKEN} - template: | - {{ if eq .Response.StatusCode 200 }} -
+ {{ else }} +Failed to fetch seradar.net data
+ {{ end }} - - size: small - widgets: - - type: calendar - first-day-of-week: monday + - size: small + widgets: + - type: calendar + first-day-of-week: monday - - type: weather - location: Baku, Azerbaijan - units: metric # alternatively "imperial" - hour-format: 12h # alternatively "24h" + - type: weather + location: Baku, Azerbaijan + units: metric # alternatively "imperial" + hour-format: 12h # alternatively "24h" - - type: markets - markets: - - symbol: BTC-USD - name: Bitcoin - - symbol: DYDX-USD - name: DYDX - - symbol: FET-USD - name: FET - - symbol: SUI20947-USD - name: SUI + - type: markets + markets: + - symbol: BTC-USD + name: Bitcoin + - symbol: DYDX-USD + name: DYDX + - symbol: FET-USD + name: FET + - symbol: SUI20947-USD + name: SUI diff --git a/glance/docker-compose.yml b/glance/docker-compose.yml index 51e6cff..2088e43 100644 --- a/glance/docker-compose.yml +++ b/glance/docker-compose.yml @@ -8,7 +8,7 @@ networks: services: glance: - image: glanceapp/glance:v0.7.13 + image: glanceapp/glance:v0.8.0 container_name: glance restart: unless-stopped networks: