forked from nico/dots
caddy: init
This commit is contained in:
parent
2dd3ade483
commit
25f02ec9ee
6 changed files with 118 additions and 25 deletions
|
|
@ -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
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue