mirror of
https://git.feal.no/felixalb/nixos-config.git
synced 2024-12-22 04:07:28 +01:00
nextcloud: fix reverse proxy
This commit is contained in:
parent
94e079c845
commit
acb9dfe9ee
@ -55,6 +55,9 @@
|
||||
forceSSL = true;
|
||||
|
||||
extraConfig = ''
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
|
||||
server_tokens off;
|
||||
gzip on;
|
||||
gzip_vary on;
|
||||
|
@ -44,6 +44,7 @@ in {
|
||||
dbname = "nextcloud";
|
||||
adminpassFile = "/srv/secrets/adminpass";
|
||||
adminuser = "ncadmin";
|
||||
trustedProxies = [ "192.168.10.175" ]; # defiant
|
||||
};
|
||||
|
||||
# phpOptions = {
|
||||
|
Loading…
Reference in New Issue
Block a user