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;
|
recommendedProxySettings = true;
|
||||||
recommendedTlsSettings = true;
|
recommendedTlsSettings = true;
|
||||||
|
|
||||||
|
commonHttpConfig = ''
|
||||||
|
real_ip_header proxy_protocol;
|
||||||
|
set_real_ip_from 141.56.51.1/32;
|
||||||
|
'';
|
||||||
|
|
||||||
logError = ''
|
logError = ''
|
||||||
/dev/null emerg
|
/dev/null emerg
|
||||||
'';
|
'';
|
||||||
|
|
@ -94,9 +99,21 @@
|
||||||
virtualHosts.${config.networking.fqdn} = {
|
virtualHosts.${config.networking.fqdn} = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
extraConfig = ''
|
listen = [
|
||||||
access_log off;
|
{
|
||||||
'';
|
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" = {
|
# virtualHosts."cloud.htw.stura-dresden.de" = {
|
||||||
# forceSSL = true;
|
# forceSSL = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue