From 7e5e0240aa99da0eb2de643af5546cb449bc292b Mon Sep 17 00:00:00 2001 From: Zynh Ludwig Date: Fri, 27 Dec 2024 06:21:51 -0800 Subject: [PATCH] include nyazoom nginx config --- modules/nyazoom.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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; + ''; + }; }; }; }