caddy: init

This commit is contained in:
Nico 2025-05-03 16:16:03 +10:00
parent 2dd3ade483
commit 25f02ec9ee
6 changed files with 118 additions and 25 deletions

View file

@ -11,7 +11,7 @@
config = {
LISTEN_ADDR = "0.0.0.0:8021";
BASE_URL = "http://${config.networking.hostName}";
BASE_URL = "http://rss.${config.homelab.domain}";
CLEANUP_FREQUENCY = 48;
CREATE_ADMIN = 1;
@ -34,6 +34,10 @@
};
};
networking.firewall.allowedTCPPorts = [ 8021 ];
networking.firewall.allowedUDPPorts = [ 8021 ];
services.caddy.virtualHosts."rss.${config.homelab.domain}" = {
useACMEHost = config.homelab.domain;
extraConfig = ''
reverse_proxy http://localhost:8021
'';
};
}