From f83f6357644491390e71963d6d28d3d9135c0707 Mon Sep 17 00:00:00 2001 From: Cian Hatton Date: Sat, 10 Sep 2022 22:02:33 +0100 Subject: [PATCH] add hastey paste and update dashy (#39) --- host_vars/snunmu.yml | 1 + .../files/dashboards/dashy-config.yml | 133 ++++++++++-------- .../templates/hasteypaste.j2 | 19 +++ 3 files changed, 93 insertions(+), 60 deletions(-) create mode 100644 roles/setup_hosted_services/templates/hasteypaste.j2 diff --git a/host_vars/snunmu.yml b/host_vars/snunmu.yml index 519f4b0..2ebccb4 100644 --- a/host_vars/snunmu.yml +++ b/host_vars/snunmu.yml @@ -5,6 +5,7 @@ portainer_endpoint: 23 services: - name: linkding - name: pihole + - name: hasteypaste - name: dashboards template_vars: dashy: false diff --git a/roles/setup_hosted_services/files/dashboards/dashy-config.yml b/roles/setup_hosted_services/files/dashboards/dashy-config.yml index 76096ef..6d335a6 100644 --- a/roles/setup_hosted_services/files/dashboards/dashy-config.yml +++ b/roles/setup_hosted_services/files/dashboards/dashy-config.yml @@ -1,21 +1,55 @@ pageInfo: title: Home Lab sections: - - name: Dashboards - widgets: - - type: gl-disk-space - options: - hostname: http://qnap:8083 - - type: crypto-watch-list - options: - currency: GBP - sortBy: marketCap - assets: - - bitcoin - - ethereum - - cosmos - - polkadot - - dogecoin + - name: Tools + items: + - title: Hastey Paste + description: Paste bin service. + icon: hl-hastey-paste + url: http://snunmu:8000 + - title: Photoprism + description: Manager photos + icon: hl-photoprism + url: http://qnap:2342 + - title: Olivetin + description: Run pre-defined shell commands + icon: hl-olivetin + url: http://qnap:1337 + - title: Linkding + description: Manager photos + icon: hl-linkding + url: http://snunmu:9090 + - title: Nextcloud + icon: hl-nextcloud + url: http://qnap:8081 + - title: Mealie + icon: hl-mealie + url: https://mealie.cianhatton.ie + - title: Gitea + icon: hl-gitea + url: https://git.cianhatton.ie + - name: Docker Admin + items: + - title: Portainer + description: Manage docker apps using Portainer + icon: hl-portainer + url: http://qnap:9000 + + - name: System Admin + items: + - title: Webmin + icon: hl-webmin + url: http://qnap:10000 + - title: Adminer + description: Manage MariaDB + icon: hl-adminer + url: http://qnap:3307 + - title: Nginx Proxy Manager + description: Manage reverse proxies + icon: hl-nginx + url: http://qnap:8181 + + - name: QNAP Dashboards items: - title: Dash Dot icon: hl-dashdot @@ -33,10 +67,6 @@ sections: icon: hl-pihole url: http://qnap:85/admin - name: Snunmu Dashboards - widgets: - - type: gl-disk-space - options: - hostname: http://snunmu:8083 items: - title: Dash Dot icon: hl-dashdot @@ -47,6 +77,7 @@ sections: - title: Pihole icon: hl-pihole url: http://snunmu:85/admin + - name: Media Stack items: - title: Plex @@ -69,48 +100,30 @@ sections: - title: Qbittorrent icon: hl-qbittorrent url: http://qnap:15000 - - name: Tools - items: - - title: Photoprism - description: Manager photos - icon: hl-photoprism - url: http://qnap:2342 - - title: Olivetin - description: Run pre-defined shell commands - icon: hl-olivetin - url: http://qnap:1337 - - title: Linkding - description: Manager photos - icon: hl-linkding - url: http://snunmu:9090 - - title: Nextcloud - icon: hl-nextcloud - url: http://qnap:8081 - - title: Mealie - icon: hl-mealie - url: https://mealie.cianhatton.ie - - title: Gitea - icon: hl-gitea - url: https://git.cianhatton.ie - - name: System Admin - items: - - title: Portainer - description: Manage docker apps using Portainer - icon: hl-portainer - url: http://qnap:9000 - - title: Webmin - icon: hl-webmin - url: http://qnap:10000 - - title: Adminer - description: Manage MariaDB - icon: hl-adminer - url: http://qnap:3307 - - title: Nginx Proxy Manager - description: Manage reverse proxies - icon: hl-nginx - url: http://qnap:8181 + - name: QNAP + widgets: + - type: gl-disk-space + options: + hostname: http://qnap:8083 + - type: crypto-watch-list + options: + currency: USD + sortBy: marketCap + assets: + - bitcoin + - ethereum + - cosmos + - evmos + - osmosis + + - name: Snunmu + widgets: + - type: gl-disk-space + options: + hostname: http://snunmu:8083 + appConfig: statusCheck: true showSplashScreen: false - theme: dracula + theme: dashy-docs language: en diff --git a/roles/setup_hosted_services/templates/hasteypaste.j2 b/roles/setup_hosted_services/templates/hasteypaste.j2 new file mode 100644 index 0000000..e7fec52 --- /dev/null +++ b/roles/setup_hosted_services/templates/hasteypaste.j2 @@ -0,0 +1,19 @@ +--- +version: "3" +services: + hastey-paste: + labels: + ie.cianhatton.backup.enabled: "true" + ie.cianhatton.backup.schedule: "{{ backups.schedule_keys.nightly }}" + container_name: hastey-paste + image: ghcr.io/enchant97/hasty-paste:1 + restart: unless-stopped + volumes: + - data:/app/data + ports: + - 8000:8000 + environment: + - "DEFAULT_USE_LONG_ID=false" + - "ENABLE_PUBLIC_LIST=true" +volumes: + data: