Skip to content

Commit

Permalink
feat(home): replace hajimari with homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
buroa committed Jan 12, 2024
1 parent 68d3df2 commit dd4d147
Show file tree
Hide file tree
Showing 48 changed files with 469 additions and 144 deletions.
1 change: 0 additions & 1 deletion kubernetes/apps/default/kromgo/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ spec:
annotations:
gatus.io/enabled: "true"
gatus.io/status-code: "404"
hajimari.io/enable: "false"
external-dns.alpha.kubernetes.io/target: external.${PUBLIC_DOMAIN}
hosts:
- host: &host "{{ .Release.Name }}.${PUBLIC_DOMAIN}"
Expand Down
5 changes: 4 additions & 1 deletion kubernetes/apps/default/libreddit/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,10 @@ spec:
annotations:
gatus.io/enabled: "true"
gatus.io/path: *path
hajimari.io/icon: simple-icons:reddit
gethomepage.dev/enabled: "true"
gethomepage.dev/group: Home
gethomepage.dev/icon: si-reddit
gethomepage.dev/name: Reddit
external-dns.alpha.kubernetes.io/target: external.${PUBLIC_DOMAIN}
hosts:
- host: &host "{{ .Release.Name }}.${PUBLIC_DOMAIN}"
Expand Down
2 changes: 0 additions & 2 deletions kubernetes/apps/default/nostr-relay/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,6 @@ spec:
enabled: true
className: external
annotations:
gatus.io/enabled: "true"
hajimari.io/enable: "false"
external-dns.alpha.kubernetes.io/target: external.${PUBLIC_DOMAIN}
hosts:
- host: &host "{{ .Release.Name }}.${PUBLIC_DOMAIN}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ metadata:
annotations:
gatus.io/enabled: "true"
gatus.io/status-code: "404"
hajimari.io/enable: "false"
external-dns.alpha.kubernetes.io/target: external.${PUBLIC_DOMAIN}
spec:
ingressClassName: external
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ spec:
enabled: true
className: internal
annotations:
hajimari.io/icon: mdi:sawtooth-wave
gethomepage.dev/enabled: "true"
gethomepage.dev/group: Monitoring
gethomepage.dev/icon: si-flux
gethomepage.dev/name: Hubble
hosts:
- host: &host gitops.${PUBLIC_DOMAIN}
paths:
Expand Down
2 changes: 0 additions & 2 deletions kubernetes/apps/home/atuin/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,6 @@ spec:
main:
enabled: true
className: internal
annotations:
hajimari.io/enable: "false"
hosts:
- host: &host "{{ .Release.Name }}.${PUBLIC_DOMAIN}"
paths: &paths
Expand Down
79 changes: 0 additions & 79 deletions kubernetes/apps/home/hajimari/app/helmrelease.yaml

This file was deleted.

5 changes: 0 additions & 5 deletions kubernetes/apps/home/hajimari/app/kustomization.yaml

This file was deleted.

8 changes: 7 additions & 1 deletion kubernetes/apps/home/home-assistant/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,13 @@ spec:
enabled: true
className: internal
annotations:
hajimari.io/icon: mdi:home-assistant
gethomepage.dev/enabled: "true"
gethomepage.dev/group: Home
gethomepage.dev/icon: home-assistant.png
gethomepage.dev/name: Home-Assistant
gethomepage.dev/widget.type: homeassistant
gethomepage.dev/widget.url: http://home-assistant.home.svc.cluster.local:8123
gethomepage.dev/widget.key: "{{ HOMEPAGE_VAR_HASS_TOKEN }}"
hosts:
- host: &host "{{ .Release.Name }}.${PUBLIC_DOMAIN}"
paths: &paths
Expand Down
2 changes: 2 additions & 0 deletions kubernetes/apps/home/homepage/app/configs/kubernetes.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
mode: cluster
34 changes: 34 additions & 0 deletions kubernetes/apps/home/homepage/app/configs/services.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
- Calendar:
- Agenda:
widget:
type: calendar
view: agenda
maxEvents: 20
integrations:
- type: sonarr
service_group: Downloads
service_name: Sonarr
- type: radarr
service_group: Downloads
service_name: Radarr

- Infrastructure:
- Cloudflared:
href: https://dash.cloudflare.com/
icon: cloudflare-zero-trust.png
description: Cloudflared Tunnel
widget:
type: cloudflared
accountid: "{{ HOMEPAGE_VAR_CLOUDFLARE_ACCOUNTID }}"
tunnelid: "{{ HOMEPAGE_VAR_CLOUDFLARE_TUNNELID }}"
key: "{{ HOMEPAGE_VAR_CLOUDFLARE_TOKEN }}"
- Unifi:
href: https://unifi.ui.com
icon: unifi.png
description: Unifi Dashboard
widget:
type: unifi
url: https://unifi.${PUBLIC_DOMAIN}
username: unifipoller
password: 1nternalUseOnly
26 changes: 26 additions & 0 deletions kubernetes/apps/home/homepage/app/configs/settings.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
title: Dashboard
theme: dark
color: slate
headerStyle: clean
layout:
Calendar:
style: column
icon: mdi-calendar
Downloads:
style: row
columns: 3
icon: mdi-download-circle
Home:
style: column
icon: mdi-home-analytics
Media:
style: column
icon: mdi-play-circle
Monitoring:
style: column
icon: mdi-chart-line
Security:
style: row
columns: 2
icon: mdi-desktop-tower
30 changes: 30 additions & 0 deletions kubernetes/apps/home/homepage/app/configs/widgets.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
- search:
provider:
- google
focus: false
target: _blank
- kubernetes:
cluster:
cpu: true
label: cluster
memory: true
show: true
showLabel: true
nodes:
cpu: true
memory: true
show: false
showLabel: true
- openmeteo:
label: Home
latitude: "{{ HOMEPAGE_VAR_HASS_LATITUDE }}"
longitude: "{{ HOMEPAGE_VAR_HASS_LONGITUDE }}"
units: metric
cache: 5
- datetime:
text_size: l
format:
dateStyle: long
timeStyle: short
hourCycle: h23
65 changes: 65 additions & 0 deletions kubernetes/apps/home/homepage/app/externalsecret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
---
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: homepage
spec:
secretStoreRef:
kind: ClusterSecretStore
name: onepassword-connect
target:
name: homepage-secret
creationPolicy: Owner
template:
engineVersion: v2
data:
## Home
HOMEPAGE_VAR_HASS_TOKEN: "{{ .HASS_API_KEY }}"
HOMEPAGE_VAR_HASS_LATITUDE: "{{ .HASS_LATITUDE }}"
HOMEPAGE_VAR_HASS_LONGITUDE: "{{ .HASS_LONGITUDE }}"
HOMEPAGE_VAR_MINIFLUX_TOKEN: "{{ .MINIFLUX_API_KEY }}"
## Downloads
HOMEPAGE_VAR_AUTOBRR_TOKEN: "{{ .AUTOBRR_API_KEY }}"
HOMEPAGE_VAR_BAZARR_TOKEN: "{{ .BAZARR_API_KEY }}"
HOMEPAGE_VAR_PROWLARR_TOKEN: "{{ .PROWLARR_API_KEY }}"
HOMEPAGE_VAR_RADARR_TOKEN: "{{ .RADARR_API_KEY }}"
HOMEPAGE_VAR_SABNZBD_TOKEN: "{{ .SABNZBD_API_KEY }}"
HOMEPAGE_VAR_SONARR_TOKEN: "{{ .SONARR_API_KEY }}"
## Media
HOMEPAGE_VAR_OVERSEERR_TOKEN: "{{ .OVERSEERR_API_KEY }}"
HOMEPAGE_VAR_PLEX_TOKEN: "{{ .PLEX_TOKEN }}"
HOMEPAGE_VAR_TAUTULLI_TOKEN: "{{ .TAUTULLI_API_KEY }}"
## Monitoring
HOMEPAGE_VAR_GRAFANA_USERNAME: "{{ .GRAFANA_ADMIN_USER }}"
HOMEPAGE_VAR_GRAFANA_PASSWORD: "{{ .GRAFANA_ADMIN_PASS }}"
## Networking
HOMEPAGE_VAR_CLOUDFLARE_ACCOUNT_ID: "{{ .CLOUDFLARE_ACCOUNT_ID }}"
HOMEPAGE_VAR_CLOUDFLARE_TUNNEL_ID: "{{ .CLOUDFLARE_TUNNEL_ID }}"
HOMEPAGE_VAR_CLOUDFLARE_TOKEN: "{{ .CLOUDFLARE_API_TOKEN }}"
dataFrom:
- extract:
key: autobrr
- extract:
key: bazarr
- extract:
key: cloudflare
- extract:
key: grafana
- extract:
key: home-assistant
- extract:
key: miniflux
- extract:
key: overseerr
- extract:
key: plex
- extract:
key: prowlarr
- extract:
key: radarr
- extract:
key: sabnzbd
- extract:
key: sonarr
- extract:
key: tautulli
Loading

0 comments on commit dd4d147

Please sign in to comment.