refactor(core): restore homepage dashboard to control plane
- Reintegrate the homepage service into the root docker-compose.yml stack - Restore baseline homepage configuration files to config/homepage/ - Remove legacy DOM-injection scripts (custom.js/css) to restore vanilla Homepage behavior - Redirect appctl engine to sync dynamically generated `services.yml` to the core config directory - Add config/homepage/services.yaml to .gitignore to prevent tracking generated state artifacts - Register homepage in appctl core services list and structural invariant tests - Add autogenerated custom.js and custom.js artifacts to .gitignore
This commit is contained in:
1 parent
4c9e7a449d
commit
431413ec1a
14 files changed
+116
-8
No files matched your search
+4
-1
@@ -21,8 +21,11 @@ config/authelia/users.yaml
|
|||||||
# Diun Databases
|
# Diun Databases
|
||||||
config/diun/diun.db
|
config/diun/diun.db
|
||||||
|
|
||||||
# Homepage Logs
|
# Homepage Logs & Generated Runtime State
|
||||||
config/homepage/logs/
|
config/homepage/logs/
|
||||||
|
config/homepage/services.yaml
|
||||||
|
config/homepage/custom.css
|
||||||
|
config/homepage/custom.js
|
||||||
|
|
||||||
# OS & Editor Metadata
|
# OS & Editor Metadata
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
|||||||
@@ -231,7 +231,7 @@ networks:
|
|||||||
```bash
|
```bash
|
||||||
appctl up myapp
|
appctl up myapp
|
||||||
```
|
```
|
||||||
`appctl` will start the container, inject standard environment variables, and automatically recompile [`homelab-dashboard/config/services.yaml`](file:///home/kiskaadee/Sites/homelab-dashboard/config/services.yaml).
|
`appctl` will start the container, inject standard environment variables, and automatically recompile [`config/homepage/services.yaml`](config/homepage/services.yaml).
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,18 @@
|
|||||||
|
---
|
||||||
|
# For configuration options and examples, please see:
|
||||||
|
# https://gethomepage.dev/configs/bookmarks
|
||||||
|
|
||||||
|
- My Projects:
|
||||||
|
- Github:
|
||||||
|
- abbr: GH
|
||||||
|
href: https://github.com/kiskaadee?tab=repositories
|
||||||
|
|
||||||
|
- Social Media:
|
||||||
|
- Instagram:
|
||||||
|
- abbr: IN
|
||||||
|
href: https://www.instagram.com/tierraenmisbotas//
|
||||||
|
|
||||||
|
- Learning Content:
|
||||||
|
- YouTube:
|
||||||
|
- abbr: YT
|
||||||
|
href: https://www.youtube.com/@scicreep8979
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
# For configuration options and examples, please see:
|
||||||
|
# https://gethomepage.dev/configs/docker/
|
||||||
|
|
||||||
|
my-docker:
|
||||||
|
host: socket-proxy
|
||||||
|
port: 2375
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 412 449" fill="#0d0d0d"><path d="M54.4 370a373 373 0 0036.6 16.5c42.9 16.5 81 27 127 32.7 39 4.9 98 6.1 134-9.7l.2-28.7 10.9-4.2.1 7.6c.1 9.5 10.2 10 10.1 16.6l-.2 19.5a10.9 10.9 0 01-5.3 8.8 126 126 0 01-34.7 13.1c-27.4 5.9-54.8 7.6-83 6.1a502 502 0 01-114.8-19.3C98.3 418.3 63.3 404.2 30.4 384.4c-1.8-1.1-4.6-4.1-4.6-5.8l.5-25.2 11-8.4c1.5-34.5-.5-23-14.7-49.9C-4.9 243.1-6.6 188.6 13.7 132.1c9.6 20.2 21.2 38.3 37.4 52.9C37.7 162.7 27.2 140 22.1 114.6 58.6 40.2 137.3-5.7 220.2.6c51 3.8 94.2 25.6 130.4 62-12-3.2-22.2-5.6-33.7-6.8-41.1-31.1-89.5-44.9-140.7-36.2-20.9 3.5-34 7-50.7 16.9l14.1-2.5 15.9-2.8c8.5-1.5 24.6-1 33.8-.2 22.7 2.1 53.6 13.7 71.7 29-12.6 3.8-24.8 7-37.2 12.5-54.8 24.4-99.9 64.9-131 115.9-7.9-2.9-15.5-4.4-23.5-2.5 29.8 6 39 41.1 31.8 68-2.4 9-7.4 16.2-14.7 22.4a346.5 346.5 0 00147.3 97.2l12 21.2c1.8 3.3.4 10.1.3 14.5-54.7-3.5-108.5-14.2-157.9-37.6l-33.3-15.8a55.5 55.5 0 00-.3 14.3m15.8-103.6c8.8-2.1 12.7-9.2 15.7-16.5 4-13 2.4-27.4-5.3-38.7-5.4-7.8-14.8-12.2-23.8-9.3a20.8 20.8 0 00-13.4 12.7c8.4-7.9 19.2-8.3 27.1-.2 12.6 13.1 13.3 38-.3 52M56.2 335.7c19.3 9.7 37.1 17.6 57.6 25.6l.5-41c0-5.6-7.1-8.2-10.9-7.4-13.3 2.7-5.9 17.1-8 29.2l-39.8-19.4c-1 4.6-1.3 9.4.6 13m139.6 48.3c1.1-4.4 1.2-8.7-.8-11.5a513 513 0 01-66-18 16.3 16.3 0 00-.1 12.2c8.3 2.7 16.2 5.3 24.7 7.3z"/><path d="M326 373.5c-78.7 7.3-171.3-41.7-224.8-98.7 21-21.4 19.6-56.4 1.4-79.5 14.1-22 29.7-42 48.5-59.7C194 95.2 252.8 65.2 312.9 67.5c31.5 1.8 71.1 11.3 70.5 49.8a215.2 215.2 0 017.4 201.1c3.6 38.3-33.5 51.8-64.9 55.1m-156.6-69.6c44.6 29.3 106.3 54.1 159.9 46.5 8.5-1.2 16.5-3.9 24.6-6.3 5-1.5 7.1-5.2 9.6-9 48.2-74.2 42.9-170.7-13.8-238.4C301.1 78.6 245.2 94.2 203 121.5c-17 11-32.9 23.2-46.2 38.5-14.8 17-20.8 39.2-21.9 61.4-1.2 23.5 5.3 45.1 17.5 64.8a53.6 53.6 0 0017 17.8"/><path d="M298.5 409.1c-4.5.4-7.9-1.7-9.4-5.2a12.3 12.3 0 011.1-11c1.5-2.5 5.4-4.9 8.9-5.2l31.9-2.5a8.6 8.6 0 019.3 6.1c.9 3.4.5 9.3-3.5 10.6-12.4 4.1-24.7 6-38.3 7.2"/><rect width="15.3" height="16.2" x="258.6" y="409.9" rx="0" transform="rotate(-89.7 266.3 418)"/><path d="M370.4 283.3c-6.1 17.6-13.5 33.4-26.4 47.2 26-57.7 30.3-124.2 4.1-182.3-6.7-14.8-15-27.3-24.8-41 5.1.8 13 .9 17 4.2 7.8 6.5 12.5 15.5 17.4 24.5 24.5 45.2 29.8 98.2 12.7 147.5"/></svg>
|
||||||
|
After Width: | Height: | Size: 2.2 KiB |
@@ -0,0 +1 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 412 449" fill="#0d0d0d"><path d="M54.4 370a373 373 0 0036.6 16.5c42.9 16.5 81 27 127 32.7 39 4.9 98 6.1 134-9.7l.2-28.7 10.9-4.2.1 7.6c.1 9.5 10.2 10 10.1 16.6l-.2 19.5a10.9 10.9 0 01-5.3 8.8 126 126 0 01-34.7 13.1c-27.4 5.9-54.8 7.6-83 6.1a502 502 0 01-114.8-19.3C98.3 418.3 63.3 404.2 30.4 384.4c-1.8-1.1-4.6-4.1-4.6-5.8l.5-25.2 11-8.4c1.5-34.5-.5-23-14.7-49.9C-4.9 243.1-6.6 188.6 13.7 132.1c9.6 20.2 21.2 38.3 37.4 52.9C37.7 162.7 27.2 140 22.1 114.6 58.6 40.2 137.3-5.7 220.2.6c51 3.8 94.2 25.6 130.4 62-12-3.2-22.2-5.6-33.7-6.8-41.1-31.1-89.5-44.9-140.7-36.2-20.9 3.5-34 7-50.7 16.9l14.1-2.5 15.9-2.8c8.5-1.5 24.6-1 33.8-.2 22.7 2.1 53.6 13.7 71.7 29-12.6 3.8-24.8 7-37.2 12.5-54.8 24.4-99.9 64.9-131 115.9-7.9-2.9-15.5-4.4-23.5-2.5 29.8 6 39 41.1 31.8 68-2.4 9-7.4 16.2-14.7 22.4a346.5 346.5 0 00147.3 97.2l12 21.2c1.8 3.3.4 10.1.3 14.5-54.7-3.5-108.5-14.2-157.9-37.6l-33.3-15.8a55.5 55.5 0 00-.3 14.3m15.8-103.6c8.8-2.1 12.7-9.2 15.7-16.5 4-13 2.4-27.4-5.3-38.7-5.4-7.8-14.8-12.2-23.8-9.3a20.8 20.8 0 00-13.4 12.7c8.4-7.9 19.2-8.3 27.1-.2 12.6 13.1 13.3 38-.3 52M56.2 335.7c19.3 9.7 37.1 17.6 57.6 25.6l.5-41c0-5.6-7.1-8.2-10.9-7.4-13.3 2.7-5.9 17.1-8 29.2l-39.8-19.4c-1 4.6-1.3 9.4.6 13m139.6 48.3c1.1-4.4 1.2-8.7-.8-11.5a513 513 0 01-66-18 16.3 16.3 0 00-.1 12.2c8.3 2.7 16.2 5.3 24.7 7.3z"/><path d="M326 373.5c-78.7 7.3-171.3-41.7-224.8-98.7 21-21.4 19.6-56.4 1.4-79.5 14.1-22 29.7-42 48.5-59.7C194 95.2 252.8 65.2 312.9 67.5c31.5 1.8 71.1 11.3 70.5 49.8a215.2 215.2 0 017.4 201.1c3.6 38.3-33.5 51.8-64.9 55.1m-156.6-69.6c44.6 29.3 106.3 54.1 159.9 46.5 8.5-1.2 16.5-3.9 24.6-6.3 5-1.5 7.1-5.2 9.6-9 48.2-74.2 42.9-170.7-13.8-238.4C301.1 78.6 245.2 94.2 203 121.5c-17 11-32.9 23.2-46.2 38.5-14.8 17-20.8 39.2-21.9 61.4-1.2 23.5 5.3 45.1 17.5 64.8a53.6 53.6 0 0017 17.8"/><path d="M298.5 409.1c-4.5.4-7.9-1.7-9.4-5.2a12.3 12.3 0 011.1-11c1.5-2.5 5.4-4.9 8.9-5.2l31.9-2.5a8.6 8.6 0 019.3 6.1c.9 3.4.5 9.3-3.5 10.6-12.4 4.1-24.7 6-38.3 7.2"/><rect width="15.3" height="16.2" x="258.6" y="409.9" rx="0" transform="rotate(-89.7 266.3 418)"/><path d="M370.4 283.3c-6.1 17.6-13.5 33.4-26.4 47.2 26-57.7 30.3-124.2 4.1-182.3-6.7-14.8-15-27.3-24.8-41 5.1.8 13 .9 17 4.2 7.8 6.5 12.5 15.5 17.4 24.5 24.5 45.2 29.8 98.2 12.7 147.5"/></svg>
|
||||||
|
After Width: | Height: | Size: 2.2 KiB |
@@ -0,0 +1,2 @@
|
|||||||
|
---
|
||||||
|
# sample kubernetes config
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
# pve:
|
||||||
|
# url: https://proxmox.host.or.ip:8006
|
||||||
|
# token: username@pam!Token ID
|
||||||
|
# secret: secret
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
---
|
||||||
|
# Example Homepage services configuration
|
||||||
|
# Note: In active homelab deployments, config/services.yaml is auto-generated by `appctl sync`.
|
||||||
|
- Knowledge & Notes:
|
||||||
|
- Docs-Viewer:
|
||||||
|
icon: files.png
|
||||||
|
href: https://docs.roadtotech.me
|
||||||
|
description: Reactive Obsidian & Markdown Documentation Viewer
|
||||||
|
server: my-docker
|
||||||
|
container: docs
|
||||||
|
- Excalidraw:
|
||||||
|
icon: excalidraw.png
|
||||||
|
href: https://excalidraw.roadtotech.me
|
||||||
|
description: Collaborative Whiteboarding & Sketching Tool
|
||||||
|
server: my-docker
|
||||||
|
container: excalidraw
|
||||||
|
|
||||||
|
- Media & Productivity:
|
||||||
|
- Jellyfin:
|
||||||
|
icon: jellyfin.png
|
||||||
|
href: https://jellyfin.roadtotech.me
|
||||||
|
description: Media Server & Streaming Hub
|
||||||
|
server: my-docker
|
||||||
|
container: jellyfin
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
# For configuration options and examples, please see:
|
||||||
|
# https://gethomepage.dev/configs/settings/
|
||||||
|
|
||||||
|
providers:
|
||||||
|
openweathermap: openweathermapapikey
|
||||||
|
weatherapi: weatherapiapikey
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
---
|
||||||
|
# For configuration options and examples, please see:
|
||||||
|
# https://gethomepage.dev/configs/info-widgets/
|
||||||
|
|
||||||
|
- resources:
|
||||||
|
cpu: true
|
||||||
|
memory: true
|
||||||
|
|
||||||
|
- search:
|
||||||
|
provider: google
|
||||||
|
target: _blank
|
||||||
@@ -206,6 +206,31 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- socket-net
|
- socket-net
|
||||||
|
|
||||||
|
homepage:
|
||||||
|
image: ghcr.io/gethomepage/homepage:latest
|
||||||
|
container_name: homepage
|
||||||
|
restart: always
|
||||||
|
volumes:
|
||||||
|
- ./config/homepage:/app/config
|
||||||
|
environment:
|
||||||
|
- HOMEPAGE_ALLOWED_HOSTS=${HOMEPAGE_DOMAIN:-dashboard.${DOMAIN}}
|
||||||
|
networks:
|
||||||
|
- socket-net
|
||||||
|
- proxy-net
|
||||||
|
labels:
|
||||||
|
- "traefik.enable=true"
|
||||||
|
# Public (HTTPS)
|
||||||
|
- "traefik.http.routers.homepage.rule=Host(`${HOMEPAGE_DOMAIN:-dashboard.${DOMAIN}}`)"
|
||||||
|
- "traefik.http.routers.homepage.entrypoints=websecure"
|
||||||
|
- "traefik.http.routers.homepage.tls=true"
|
||||||
|
- "traefik.http.routers.homepage.tls.certresolver=myresolver"
|
||||||
|
- "traefik.http.routers.homepage.service=homepage-svc"
|
||||||
|
# Public (Redirect)
|
||||||
|
- "traefik.http.routers.homepage-red.rule=Host(`${HOMEPAGE_DOMAIN:-dashboard.${DOMAIN}}`)"
|
||||||
|
- "traefik.http.routers.homepage-red.entrypoints=web"
|
||||||
|
- "traefik.http.routers.homepage-red.middlewares=https-redirect@docker"
|
||||||
|
- "traefik.http.services.homepage-svc.loadbalancer.server.port=3000"
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
proxy-net:
|
proxy-net:
|
||||||
external: true
|
external: true
|
||||||
|
|||||||
@@ -316,6 +316,7 @@ def get_core_services():
|
|||||||
{"name": "portainer", "domain": "portainer.roadtotech.me", "container": "portainer", "desc": "Container Management GUI"},
|
{"name": "portainer", "domain": "portainer.roadtotech.me", "container": "portainer", "desc": "Container Management GUI"},
|
||||||
{"name": "dozzle", "domain": "logs.roadtotech.me", "container": "dozzle", "desc": "Real-time Log Viewer"},
|
{"name": "dozzle", "domain": "logs.roadtotech.me", "container": "dozzle", "desc": "Real-time Log Viewer"},
|
||||||
{"name": "socket-proxy", "domain": "internal", "container": "socket-proxy", "desc": "Docker Socket Security Proxy"},
|
{"name": "socket-proxy", "domain": "internal", "container": "socket-proxy", "desc": "Docker Socket Security Proxy"},
|
||||||
|
{"name": "homepage", "domain": "dashboard.roadtotech.me", "container": "homepage", "desc": "Application Dashboard & System Portal"},
|
||||||
{"name": "diun", "domain": "internal", "container": "diun", "desc": "Docker Image Update Notifier"},
|
{"name": "diun", "domain": "internal", "container": "diun", "desc": "Docker Image Update Notifier"},
|
||||||
{"name": "watchtower", "domain": "internal", "container": "watchtower", "desc": "Automated Container Updates"},
|
{"name": "watchtower", "domain": "internal", "container": "watchtower", "desc": "Automated Container Updates"},
|
||||||
]
|
]
|
||||||
@@ -715,15 +716,17 @@ def cmd_complete(args):
|
|||||||
|
|
||||||
|
|
||||||
def cmd_sync_homepage(args):
|
def cmd_sync_homepage(args):
|
||||||
"""Compile Sites/*/app.yaml into homelab-dashboard/config/services.yaml."""
|
"""Compile Sites/*/app.yaml into Core/config/homepage/services.yaml."""
|
||||||
dashboard_dir = os.path.join(SITES_DIR, "homelab-dashboard")
|
homepage_dir = os.path.join(CORE_DIR, "config", "homepage")
|
||||||
for a in args:
|
for a in args:
|
||||||
if a.startswith("--dashboard-dir="):
|
if a.startswith("--homepage-dir="):
|
||||||
dashboard_dir = a.split("=", 1)[1]
|
homepage_dir = a.split("=", 1)[1]
|
||||||
|
elif a.startswith("--dashboard-dir="):
|
||||||
|
homepage_dir = os.path.join(a.split("=", 1)[1], "config")
|
||||||
|
|
||||||
services_yaml_path = os.path.join(dashboard_dir, "config", "services.yaml")
|
services_yaml_path = os.path.join(homepage_dir, "services.yaml")
|
||||||
if not os.path.isdir(os.path.dirname(services_yaml_path)):
|
if not os.path.isdir(os.path.dirname(services_yaml_path)):
|
||||||
print(f"❌ Error: Dashboard directory not found at {dashboard_dir}")
|
print(f"❌ Error: Homepage directory not found at {homepage_dir}")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
apps = get_all_apps()
|
apps = get_all_apps()
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ def test_required_architectural_paths_exist():
|
|||||||
"scripts/gitops_dispatcher.py",
|
"scripts/gitops_dispatcher.py",
|
||||||
"scripts/appctl",
|
"scripts/appctl",
|
||||||
"scripts/appctl_engine.py",
|
"scripts/appctl_engine.py",
|
||||||
|
"config/homepage",
|
||||||
"tests",
|
"tests",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user