mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-21 16:31:22 +02:00
fix: homepage
This commit is contained in:
@@ -39,6 +39,10 @@
|
|||||||
encode zstd gzip
|
encode zstd gzip
|
||||||
reverse_proxy http://localhost:5005
|
reverse_proxy http://localhost:5005
|
||||||
'';
|
'';
|
||||||
|
virtualHosts."http://home.writefor.fun".extraConfig = ''
|
||||||
|
encode zstd gzip
|
||||||
|
reverse_proxy http://localhost:8082
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
networking.firewall.allowedTCPPorts = [80 443];
|
networking.firewall.allowedTCPPorts = [80 443];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
kana-docker:
|
# kana-docker:
|
||||||
socket: /var/run/docker.sock
|
# socket: /var/run/docker.sock
|
||||||
|
#
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 5.5 MiB After Width: | Height: | Size: 5.5 MiB |
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
# uses the default kubeconfig to access the cluster
|
# uses the default kubeconfig to access the cluster
|
||||||
# read kubbecofig from $KUBECONFIG or $HOME/.kube/config
|
# read kubbecofig from $KUBECONFIG or $HOME/.kube/config
|
||||||
mode: default
|
# mode: default
|
||||||
|
mode: disabled
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
---
|
||||||
|
# For configuration options and examples, please see:
|
||||||
|
# https://gethomepage.dev/latest/configs/services
|
||||||
|
|
||||||
- Proxmox VE 虚拟化集群:
|
- Proxmox VE 虚拟化集群:
|
||||||
- PVE-UM560:
|
- PVE-UM560:
|
||||||
icon: si-proxmox
|
icon: si-proxmox
|
||||||
@@ -35,39 +39,31 @@
|
|||||||
siteMonitor: http://uptime-kuma.writefor.fun
|
siteMonitor: http://uptime-kuma.writefor.fun
|
||||||
|
|
||||||
- Homelab Applications:
|
- Homelab Applications:
|
||||||
- Home Assistant:
|
|
||||||
icon: home-assistant.png
|
|
||||||
href: "http://homeassistant.home/"
|
|
||||||
description: Home Automation
|
|
||||||
server: kana-docker
|
|
||||||
container: home-assistant
|
|
||||||
|
|
||||||
- SFTPGO:
|
- SFTPGO:
|
||||||
icon: sftpgo.png
|
icon: sftpgo.png
|
||||||
href: "http://sftpgo.writefor.fun/web/admin/folders"
|
href: "http://sftpgo.writefor.fun/web/admin/folders"
|
||||||
description: WebDAV & SFTP server
|
description: WebDAV & SFTP server
|
||||||
server: kana-docker
|
siteMonitor: http://sftpgo.writefor.fun/
|
||||||
container: sftpgo
|
|
||||||
|
|
||||||
- Kubernetes Monitoring:
|
# - Kubernetes Monitoring:
|
||||||
# TODO: Update this
|
# # TODO: Update this
|
||||||
- Emby:
|
# - Emby:
|
||||||
icon: emby.png
|
# icon: emby.png
|
||||||
href: "http://emby.home/"
|
# href: "http://emby.home/"
|
||||||
description: Media server
|
# description: Media server
|
||||||
namespace: media # The kubernetes namespace the app resides in
|
# namespace: media # The kubernetes namespace the app resides in
|
||||||
app: emby # The name of the deployed app
|
# app: emby # The name of the deployed app
|
||||||
|
#
|
||||||
- Element Chat:
|
# - Element Chat:
|
||||||
icon: matrix-light.png
|
# icon: matrix-light.png
|
||||||
href: https://chat.example.com
|
# href: https://chat.example.com
|
||||||
description: Matrix Synapse Powered Chat
|
# description: Matrix Synapse Powered Chat
|
||||||
app: matrix-element
|
# app: matrix-element
|
||||||
namespace: comms
|
# namespace: comms
|
||||||
pod-selector: >-
|
# pod-selector: >-
|
||||||
app.kubernetes.io/instance in (
|
# app.kubernetes.io/instance in (
|
||||||
matrix-element,
|
# matrix-element,
|
||||||
matrix-media-repo,
|
# matrix-media-repo,
|
||||||
matrix-media-repo-postgresql,
|
# matrix-media-repo-postgresql,
|
||||||
matrix-synapse
|
# matrix-synapse
|
||||||
)
|
# )
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
---
|
||||||
|
# For configuration options and examples, please see:
|
||||||
|
# https://gethomepage.dev/latest/configs/settings
|
||||||
|
|
||||||
title: Ryan Yin's Homelab
|
title: Ryan Yin's Homelab
|
||||||
base: http://home.writefor.fun/
|
base: http://home.writefor.fun/
|
||||||
favicon: https://thiscute.world/favicon.ico
|
favicon: https://thiscute.world/favicon.ico
|
||||||
@@ -8,6 +12,14 @@ startUrl: http://home.writefor.fun/
|
|||||||
|
|
||||||
language: zh
|
language: zh
|
||||||
|
|
||||||
|
# Define shared API provider options and secrets here,
|
||||||
|
# You can then pass provider instead of apiKey in your widget configuration.
|
||||||
|
providers:
|
||||||
|
# read api keys from environment variables
|
||||||
|
openweathermap: {{HOMEPAGE_VAR_WEATHERAPI_APIKEY}}
|
||||||
|
weatherapi: {{HOMEPAGE_VAR_WEATHERAPI_APIKEY}}
|
||||||
|
|
||||||
|
|
||||||
background:
|
background:
|
||||||
image: /images/rolling-girls.png
|
image: /images/rolling-girls.png
|
||||||
blur: sm # sm, "", md, xl... see https://tailwindcss.com/docs/backdrop-blur
|
blur: sm # sm, "", md, xl... see https://tailwindcss.com/docs/backdrop-blur
|
||||||
|
|||||||
@@ -1,21 +1,21 @@
|
|||||||
- kubernetes:
|
# TODO: add access to kubernetes cluster
|
||||||
cluster:
|
# - kubernetes:
|
||||||
show: true
|
# cluster:
|
||||||
cpu: true
|
# show: true
|
||||||
memory: true
|
# cpu: true
|
||||||
showLabel: true
|
# memory: true
|
||||||
label: "cluster"
|
# showLabel: true
|
||||||
nodes:
|
# label: "cluster"
|
||||||
show: true
|
# nodes:
|
||||||
cpu: true
|
# show: true
|
||||||
memory: true
|
# cpu: true
|
||||||
showLabel: true
|
# memory: true
|
||||||
- resources:
|
# showLabel: true
|
||||||
backend: resources
|
# - resources:
|
||||||
expanded: true
|
# backend: resources
|
||||||
cpu: true
|
# expanded: true
|
||||||
memory: true
|
# cpu: true
|
||||||
|
# memory: true
|
||||||
- search:
|
- search:
|
||||||
provider: duckduckgo
|
provider: google
|
||||||
target: _blank
|
target: _blank
|
||||||
|
|
||||||
|
|||||||
@@ -17,8 +17,9 @@ in {
|
|||||||
};
|
};
|
||||||
# Install the homepage-dashboard configuration files
|
# Install the homepage-dashboard configuration files
|
||||||
system.activationScripts.installHomepageDashboardConfig = ''
|
system.activationScripts.installHomepageDashboardConfig = ''
|
||||||
mkdir -p ${configDir}/config ${configDir}/images
|
mkdir -p configDir
|
||||||
${pkgs.rsync}/bin/rsync -avz --chmod=D2755,F600 ${./config}/ ${configDir}/config/
|
${pkgs.rsync}/bin/rsync -avz --chmod=D2755,F600 ${./config}/ ${configDir}/
|
||||||
${pkgs.rsync}/bin/rsync -avz --chmod=D2755,F600 ${./images}/ ${configDir}/images/
|
|
||||||
|
${pkgs.systemdMinimal}/bin/systemctl restart homepage-dashboard
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user