diff --git a/modules/nyazoom.nix b/modules/nyazoom.nix index 2fa8176..1ca15d2 100644 --- a/modules/nyazoom.nix +++ b/modules/nyazoom.nix @@ -23,8 +23,16 @@ in permafrost.nginx.enable = lib.mkDefault true; services.nginx.virtualHosts."nyazoom.zynh.me" = { + addSSL = true; serverName = "nyazoom.zynh.me"; - locations."/".proxyPass = "http://localhost:3000"; + locations."/" = { + proxyPass = "http://localhost:3000"; + extraConfig = /* nginx */ '' + proxy_set_header Host $host; + proxy_set_header X-Forwarded-For $remote_addr; + client_max_body_size 11G; + ''; + }; }; }; }