mirror of
https://github.com/aykhans/my-self-host-services.git
synced 2025-07-03 20:31:38 +00:00
add glance
This commit is contained in:
16
glance/config/glance.yml
Normal file
16
glance/config/glance.yml
Normal file
@ -0,0 +1,16 @@
|
||||
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
|
||||
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
|
176
glance/config/home.yml
Normal file
176
glance/config/home.yml
Normal file
@ -0,0 +1,176 @@
|
||||
- name: Home
|
||||
# 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
|
||||
|
||||
- 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: mem.aykhans.me
|
||||
url: https://mem.aykhans.me/explore
|
||||
icon: /assets/memos.webp
|
||||
- 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
|
||||
|
||||
- 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
|
||||
- usememos/memos
|
||||
- yourselfhosted/slash
|
||||
- dani-garcia/vaultwarden
|
||||
- wg-easy/wg-easy
|
||||
|
||||
- size: full
|
||||
widgets:
|
||||
- type: custom-api
|
||||
title: Memos
|
||||
cache: 6h
|
||||
url: https://mem.aykhans.me/api/v1/memos/8ZU65KaQkWobmT8qfKqMyd
|
||||
headers:
|
||||
Accept: application/json
|
||||
Authorization: Bearer ${MEMOS_TOKEN}
|
||||
template: |
|
||||
{{ if eq .Response.StatusCode 200 }}
|
||||
<div style="white-space: pre-wrap;">{{ .JSON.String "content" }}</div>
|
||||
{{ else }}
|
||||
<p class="color-negative">Failed to fetch Memos data</p>
|
||||
{{ end }}
|
||||
|
||||
- type: group
|
||||
widgets:
|
||||
- type: hacker-news
|
||||
- type: lobsters
|
||||
- type: reddit
|
||||
title: REDDIT/SELFHOSTED
|
||||
subreddit: selfhosted
|
||||
show-thumbnails: true
|
||||
|
||||
- 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: 6h
|
||||
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 }}
|
||||
<div class="widget widget-type-rss">
|
||||
<div
|
||||
class="widget-content widget-content-frameless"
|
||||
>
|
||||
<div
|
||||
class="carousel-container show-right-cutoff"
|
||||
>
|
||||
<div
|
||||
class="cards-horizontal carousel-items-container"
|
||||
>
|
||||
{{ range .JSON.Array "items" }}
|
||||
<a
|
||||
href="https://www.themoviedb.org/tv/{{ .String "series_id" }}"
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
title="{{ .String "english_name" }}"
|
||||
>
|
||||
<div
|
||||
class="card rss-card-2 widget-content-frame thumbnail-parent"
|
||||
>
|
||||
<img
|
||||
class="rss-card-2-image thumbnail cached finished-transition"
|
||||
loading="lazy"
|
||||
src="{{ .String "poster_path" }}"
|
||||
alt="{{ .String "poster_path" }}"
|
||||
/>
|
||||
|
||||
<div
|
||||
class="rss-card-2-content padding-inline-widget"
|
||||
>
|
||||
<a
|
||||
href="https://www.themoviedb.org/tv/{{ .String "series_id" }}"
|
||||
class="text-truncate-3-lines color-positive margin-top-10 size-h4"
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
title="{{ .String "english_name" }}"
|
||||
>{{ .String "english_name" }}</a>
|
||||
{{ if gt (.Int "new_episodes") 0 }}
|
||||
<p class="color-highlight">+{{ .Int "new_episodes" }} new episodes</p>
|
||||
{{ else }}
|
||||
<p>no new episodes</p>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ else }}
|
||||
<p class="color-negative">Failed to fetch seradar.net data</p>
|
||||
{{ end }}
|
||||
|
||||
- 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: markets
|
||||
markets:
|
||||
- symbol: BTC-USD
|
||||
name: Bitcoin
|
||||
- symbol: DYDX-USD
|
||||
name: DYDX
|
||||
- symbol: FET-USD
|
||||
name: FET
|
||||
- symbol: SUI20947-USD
|
||||
name: SUI
|
Reference in New Issue
Block a user