diff --git a/caddy/config/Caddyfile.misc b/caddy/config/misc.Caddyfile similarity index 93% rename from caddy/config/Caddyfile.misc rename to caddy/config/misc.Caddyfile index bd1b4749..e58ce76c 100644 --- a/caddy/config/Caddyfile.misc +++ b/caddy/config/misc.Caddyfile @@ -38,3 +38,7 @@ proxmox.karnwong.me { } } } +files.karnwong.me { + root * /opt/files + file_server browse +} diff --git a/cloudflare/dns.tf b/cloudflare/dns.tf index a4bfa50b..e0171813 100644 --- a/cloudflare/dns.tf +++ b/cloudflare/dns.tf @@ -34,6 +34,7 @@ locals { "chat-with-table", "console.minio", "dashy", + "files", "gatus", "git", "harbor", diff --git a/scripts/caddy_reload.sh b/scripts/caddy_reload.sh index 52933aae..823820c8 100755 --- a/scripts/caddy_reload.sh +++ b/scripts/caddy_reload.sh @@ -5,7 +5,7 @@ git reset origin/master --hard cd /home/ubuntu/self-hosted/caddy/config || exit 1 cat Caddyfile >all.Caddyfile -cat Caddyfile.misc >>all.Caddyfile +cat misc.Caddyfile >>all.Caddyfile { echo -e "\n"