## Version 2020/12/09 # make sure that your dns has a cname set for portainer server { listen 443 ssl; listen [::]:443 ssl; server_name office.*; include /config/nginx/ssl.conf; client_max_body_size 0; # enable for ldap auth, fill in ldap details in ldap.conf #include /config/nginx/ldap.conf; # enable for Authelia #include /config/nginx/authelia-server.conf; access_log /var/log/nginx/onlyoffice.access_log; error_log /var/log/nginx/onlyoffice.error_log info; location / { proxy_pass http://192.168.8.50:2291; proxy_http_version 1.1; proxy_read_timeout 3600s; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "Upgrade"; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header X-Forwarded-Proto $scheme; add_header X-Frontend-Host $host; # Uncomment this line and reload once you have setup TLS for that domain ! # add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always; } }