office.subdomain.conf 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. ## Version 2020/12/09
  2. # make sure that your dns has a cname set for portainer
  3. server {
  4. listen 443 ssl;
  5. listen [::]:443 ssl;
  6. server_name office.*;
  7. include /config/nginx/ssl.conf;
  8. client_max_body_size 0;
  9. # enable for ldap auth, fill in ldap details in ldap.conf
  10. #include /config/nginx/ldap.conf;
  11. # enable for Authelia
  12. #include /config/nginx/authelia-server.conf;
  13. access_log /var/log/nginx/onlyoffice.access_log;
  14. error_log /var/log/nginx/onlyoffice.error_log info;
  15. location / {
  16. proxy_pass http://192.168.8.50:2291;
  17. proxy_http_version 1.1;
  18. proxy_read_timeout 3600s;
  19. proxy_set_header Upgrade $http_upgrade;
  20. proxy_set_header Connection "Upgrade";
  21. proxy_set_header Host $host;
  22. proxy_set_header X-Forwarded-For $remote_addr;
  23. proxy_set_header X-Forwarded-Proto $scheme;
  24. add_header X-Frontend-Host $host;
  25. # Uncomment this line and reload once you have setup TLS for that domain !
  26. # add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
  27. }
  28. }