Skip to content

Commit

Permalink
nixos: move homepage to luffy
Browse files Browse the repository at this point in the history
  • Loading branch information
claha committed Aug 19, 2024
1 parent 4fdb2d5 commit 968ffe2
Show file tree
Hide file tree
Showing 21 changed files with 34 additions and 178 deletions.
27 changes: 0 additions & 27 deletions .github/workflows/homepage.yaml

This file was deleted.

1 change: 0 additions & 1 deletion group_vars/smarthome.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
docker_users:
- ubuntu
tailscale_homepage_labels: true
figurine_font: "Binary.flf"
2 changes: 0 additions & 2 deletions main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,6 @@
tags: mosquitto
- role: traefik
tags: traefik
- role: homepage
tags: homepage
- role: homeassistant
tags: homeassistant, autorestic
- role: github_deploy
Expand Down
1 change: 0 additions & 1 deletion nixos/hosts/chewbacca/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
./hardware-configuration.nix
./../../services/audiobookshelf.nix
./../../services/glances.nix
./../../services/homepage.nix
./../../services/jellyfin.nix
./../../services/music-assistant.nix
./../../services/navidrome.nix
Expand Down
1 change: 1 addition & 0 deletions nixos/hosts/luffy/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
imports =
[
./hardware-configuration.nix
./../../services/homepage.nix
];

# Nix stuff
Expand Down
31 changes: 23 additions & 8 deletions nixos/services/homepage.nix
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
}
{
Audiobookshelf = {
href = "https://navidrome.media.hallstrom.duckdns.org";
href = "https://audiobookshelf.media.hallstrom.duckdns.org";
icon = "audiobookshelf";
};
}
Expand All @@ -84,6 +84,28 @@
}
];
}
{
Monitor = [
{
"Gatus (RPi 3)" = {
href = "http://192.168.1.24:8080";
icon = "gatus";
};
}
{
"Gatus (OCI 0)" = {
href = "http://100.117.82.95:8080";
icon = "gatus";
};
}
{
"Gatus (OCI 1)" = {
href = "http://100.99.164.134:8080";
icon = "gatus";
};
}
];
}
];

bookmarks = [
Expand All @@ -109,11 +131,4 @@
}
];
};

services.nginx.virtualHosts."homepage.media.hallstrom.duckdns.org" = {
useACMEHost = "hallstrom.duckdns.org";
acmeRoot = null;
forceSSL = true;
locations."/" = { proxyPass = "http://127.0.0.1:8082"; proxyWebsockets = true; };
};
}
10 changes: 10 additions & 0 deletions nixos/services/traefik/dynamic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,18 @@ http:
rule: "Host(`traefik.hallstrom.duckdns.org`)"
service: api@internal

homepage:
rule: "Host(`homepage.hallstrom.duckdns.org`)"
service: homepage

middlewares:
sslheader:
headers:
customrequestheaders:
X-Forwarded-Proto: https

services:
homepage:
loadbalancer:
servers:
- url: "http://0.0.0.0:8082"
5 changes: 0 additions & 5 deletions roles/duckdns/templates/compose.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,3 @@ services:
- SUBDOMAINS={{ duckdns_domain }}
- TOKEN={{ duckdns_token }}
restart: unless-stopped
labels:
- homepage.group=Network
- homepage.name=Duck DNS
- homepage.icon=duckdns
- homepage.href=https://www.duckdns.org/
4 changes: 0 additions & 4 deletions roles/homeassistant/templates/compose.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,3 @@ services:
- traefik.http.routers.homeassistant.tls=true
- traefik.http.routers.homeassistant.service=homeassistant
- traefik.http.services.homeassistant.loadbalancer.server.port=8123
- homepage.group=Smart Home
- homepage.name=Home Assistant
- homepage.icon=home-assistant
- homepage.href=https://homeassistant.{{ domain }}
8 changes: 0 additions & 8 deletions roles/homepage/files/bookmarks.yaml

This file was deleted.

3 changes: 0 additions & 3 deletions roles/homepage/files/docker.yaml

This file was deleted.

1 change: 0 additions & 1 deletion roles/homepage/files/kubernetes.yaml

This file was deleted.

2 changes: 0 additions & 2 deletions roles/homepage/files/settings.yaml

This file was deleted.

8 changes: 0 additions & 8 deletions roles/homepage/files/widgets.yaml

This file was deleted.

17 changes: 0 additions & 17 deletions roles/homepage/tasks/main.yaml

This file was deleted.

25 changes: 0 additions & 25 deletions roles/homepage/templates/compose.yaml.j2

This file was deleted.

50 changes: 0 additions & 50 deletions roles/homepage/templates/services.yaml.j2

This file was deleted.

4 changes: 0 additions & 4 deletions roles/mosquitto/files/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,3 @@ services:
- ./data:/mosquitto/data
- ./log:/mosquitto/log
restart: unless-stopped
labels:
- homepage.group=Smart Home
- homepage.name=Mosquitto
- homepage.icon=mqtt
1 change: 0 additions & 1 deletion roles/tailscale/defaults/main.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
---
tailscale_homepage_labels: false
tailscale_docker: true
7 changes: 0 additions & 7 deletions roles/tailscale/templates/compose.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,3 @@ services:
- NET_RAW
restart: unless-stopped
command: tailscaled
{% if tailscale_homepage_labels %}
labels:
- homepage.group=Network
- homepage.name=Tailscale
- homepage.icon=tailscale
- homepage.href=https://login.tailscale.com
{% endif %}
4 changes: 0 additions & 4 deletions roles/traefik/templates/compose.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@ services:
- traefik.http.routers.traefik.tls.domains[0].sans=*.{{ domain }}
- traefik.http.routers.traefik.service=api@internal
- traefik.http.services.traefik.loadbalancer.server.port=8080
- homepage.group=Network
- homepage.name=Traefik
- homepage.icon=traefik
- homepage.href=https://traefik.{{ domain }}
restart: unless-stopped

networks:
Expand Down

0 comments on commit 968ffe2

Please sign in to comment.