enable proxy protocol in nextcloud
This commit is contained in:
parent
5b2eb482df
commit
f91ac73b72
1 changed files with 20 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue