Nextcoud: new setup

This commit is contained in:
Filippo Berto 2023-12-26 11:05:46 +01:00
parent 36443cac83
commit e9a411586b
No known key found for this signature in database
GPG key ID: FE98AE5EC52B1056
20 changed files with 109 additions and 124 deletions

View file

@ -1,4 +1,9 @@
{ pkgs, ... }: {
{ pkgs, ... }:
# let
# freya_hosts = lib.attrsets.filterAttrs (k: v: builtins.elem "freya.zto" v) config.networking.hosts;
# freya_ipv4 = builtins.elemAt 0 (builtins.attrNames freya_hosts);
# in
{
boot = {
growPartition = true;
@ -74,6 +79,9 @@
proxy_buffering off;
'';
};
"my-nextcloud.bertof.net" = ssl // {
locations."/" = { proxyPass = "http://freya.zto:80/"; proxyWebsockets = true; };
};
"radarr.bertof.net" = ssl // { locations."/" = { proxyPass = "http://freya.zto:7878/"; proxyWebsockets = true; }; };
"sonarr.bertof.net" = ssl // { locations."/" = { proxyPass = "http://freya.zto:8989/"; proxyWebsockets = true; }; };
"lidarr.bertof.net" = ssl // { locations."/" = { proxyPass = "http://freya.zto:8686/"; proxyWebsockets = true; }; };