Add nginx settings for Woodpecker (#45)

This commit is contained in:
Patrick Stevens
2025-10-12 10:54:13 +01:00
committed by GitHub
parent f188ede756
commit d3793f9b40

View File

@@ -87,6 +87,14 @@
enableACME = true;
locations."/" = {
proxyPass = "http://localhost:${toString config.services.woodpecker-config.port}/";
recommendedProxySettings = true;
extraConfig = ''
proxy_redirect off;
proxy_http_version 1.1;
proxy_buffering off;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
'';
};
};