diff options
Diffstat (limited to 'Biz/Cloud/Web.nix')
-rw-r--r-- | Biz/Cloud/Web.nix | 31 |
1 files changed, 25 insertions, 6 deletions
diff --git a/Biz/Cloud/Web.nix b/Biz/Cloud/Web.nix index 65968ce..2a47fc1 100644 --- a/Biz/Cloud/Web.nix +++ b/Biz/Cloud/Web.nix @@ -3,13 +3,25 @@ let rootDomain = config.networking.domain; bensIp = "199.26.245.64"; + ports = import ./Ports.nix; in { services = { + radicale = { + enable = true; + config = '' + [server] + hosts = 0.0.0.0:${toString ports.radicale}, [::]:${toString ports.radicale} + [auth] + type = htpasswd + htpasswd_filename = /etc/radicale/users + htpasswd_encryption = plain + ''; + }; gmnisrv = { enable = true; settings = { - listen = "0.0.0.0:1965 [::]:1965"; + listen = "0.0.0.0:${toString ports.gemini} [::]:${toString ports.gemini}"; ":tls" = { store = "/var/lib/gmnisrv"; }; "bsima.me" = { "root" = "/srv/www/ben"; @@ -90,31 +102,37 @@ in }; "hoogle.${rootDomain}" = { - locations."/".proxyPass = "http://${bensIp}:8008"; + locations."/".proxyPass = "http://${bensIp}:${toString ports.hoogle}"; forceSSL = true; useACMEHost = rootDomain; }; "tv.${rootDomain}" = { - locations."/".proxyPass = "http://${bensIp}:8096"; # emby runs on port 8096 + locations."/".proxyPass = "http://${bensIp}:${toString ports.jellyfin}"; + forceSSL = true; + useACMEHost = rootDomain; + }; + + "cal.${rootDomain}" = { + locations."/".proxyPass = "http://localhost:${toString ports.radicale}"; forceSSL = true; useACMEHost = rootDomain; }; "devalloc.io" = { - locations."/".proxyPass = "http://${bensIp}:8095"; + locations."/".proxyPass = "http://${bensIp}:${toString ports.devalloc}"; forceSSL = true; useACMEHost = rootDomain; }; "dandel-rovbur.${rootDomain}" = { - locations."/".proxyPass = "http://${bensIp}:8080"; + locations."/".proxyPass = "http://${bensIp}:${toString ports.dandel-rovbur}"; forceSSL = true; useACMEHost = rootDomain; }; "sabten.${rootDomain}" = { - locations."/".proxyPass = "http://localhost:8080"; + locations."/".proxyPass = "http://localhost:${toString ports.sabten}"; forceSSL = true; useACMEHost = rootDomain; }; @@ -147,5 +165,6 @@ in "hoogle.${rootDomain}" "dandel-rovbur.${rootDomain}" "sabten.${rootDomain}" + "cal.${rootDomain}" ];# } |