nextcloud: fix reverse proxy
This commit is contained in:
parent
118c4a15c3
commit
e465dc9970
|
@ -55,6 +55,9 @@
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
|
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
|
||||||
server_tokens off;
|
server_tokens off;
|
||||||
gzip on;
|
gzip on;
|
||||||
gzip_vary on;
|
gzip_vary on;
|
||||||
|
|
|
@ -44,6 +44,7 @@ in {
|
||||||
dbname = "nextcloud";
|
dbname = "nextcloud";
|
||||||
adminpassFile = "/srv/secrets/adminpass";
|
adminpassFile = "/srv/secrets/adminpass";
|
||||||
adminuser = "ncadmin";
|
adminuser = "ncadmin";
|
||||||
|
trustedProxies = [ "192.168.10.175" ]; # defiant
|
||||||
};
|
};
|
||||||
|
|
||||||
# phpOptions = {
|
# phpOptions = {
|
||||||
|
|
Loading…
Reference in New Issue