enable proxy protocol in nextcloud

This commit is contained in:
goeranh 2026-04-20 10:26:33 +02:00
parent 5b2eb482df
commit f91ac73b72
No known key found for this signature in database

View file

@ -87,6 +87,11 @@
recommendedProxySettings = true;
recommendedTlsSettings = true;
commonHttpConfig = ''
real_ip_header proxy_protocol;
set_real_ip_from 141.56.51.1/32;
'';
logError = ''
/dev/null emerg
'';
@ -94,9 +99,21 @@
virtualHosts.${config.networking.fqdn} = {
forceSSL = true;
enableACME = true;
extraConfig = ''
access_log off;
'';
listen = [
{
port = 80;
addr = "0.0.0.0";
}
{
port = 443;
addr = "0.0.0.0";
ssl = true;
proxyProtocol = true;
}
];
# extraConfig = ''
# access_log off;
# '';
};
# virtualHosts."cloud.htw.stura-dresden.de" = {
# forceSSL = true;