Advertisement
Guest User

Untitled

a guest
Sep 17th, 2019
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.42 KB | None | 0 0
  1. upstream office.example.com {
  2. server 127.0.0.1:9980;
  3. }
  4.  
  5. server {
  6. listen 443 ssl;
  7. server_name office.example.com;
  8. ssl_certificate /etc/letsencrypt/live/office.example.com/fullchain.pem; # managed by Certbot
  9. ssl_certificate_key /etc/letsencrypt/live/office.example.com/privkey.pem; # managed by Certbot
  10. include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
  11. # static files
  12. location ^~ /loleaflet {
  13. proxy_pass https://127.0.0.1:9980;
  14. proxy_set_header Host $host;
  15. }
  16.  
  17. # WOPI discovery URL
  18. location ^~ /hosting/discovery {
  19. proxy_pass https://127.0.0.1:9980;
  20. proxy_set_header Host $host;
  21. }
  22.  
  23. # Main websocket
  24. location ~ /lool/(.*)/ws$ {
  25. proxy_pass https://127.0.0.1:9980;
  26. proxy_set_header Upgrade $http_upgrade;
  27. proxy_set_header Connection "Upgrade";
  28. proxy_set_header Host $host;
  29. proxy_read_timeout 36000s;
  30. }
  31.  
  32. # Admin Console websocket
  33. location ^~ /lool/adminws {
  34. proxy_buffering off;
  35. proxy_pass https://127.0.0.1:9980;
  36. proxy_set_header Upgrade $http_upgrade;
  37. proxy_set_header Connection "Upgrade";
  38. proxy_set_header Host $host;
  39. proxy_read_timeout 36000s;
  40. }
  41.  
  42. # download, presentation and image upload
  43. location ~ /lool {
  44. proxy_pass https://127.0.0.1:9980;
  45. proxy_set_header Host $host;
  46. }
  47.  
  48. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement