Guest User

Untitled

a guest
May 18th, 2021
580
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. server {
  2. listen 443 ssl http2;
  3. server_name vw.domain.com;
  4.  
  5. # Specify SSL config if using a shared one.
  6. #include conf.d/ssl/ssl.conf;
  7. ssl_certificate /etc/letsencrypt/live/vw.domain.com/fullchain.pem;
  8. ssl_certificate_key /etc/letsencrypt/vw.domain.com/privkey.pem;
  9. # Allow large attachments
  10. client_max_body_size 128M;
  11.  
  12. location / {
  13. proxy_pass http://vw.domain.com:80;
  14. proxy_set_header Host $host;
  15. proxy_set_header X-Real-IP $remote_addr;
  16. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  17. proxy_set_header X-Forwarded-Proto $scheme;
  18. }
  19.  
  20. location /notifications/hub {
  21. proxy_pass http://vw.domain.com:3012;
  22. proxy_set_header Upgrade $http_upgrade;
  23. proxy_set_header Connection "upgrade";
  24. }
  25.  
  26. location /notifications/hub/negotiate {
  27. proxy_pass http://vw.domain.com:80;
  28. }
  29.  
  30. location /admin {
  31. proxy_set_header Host $host;
  32. proxy_set_header X-Real-IP $remote_addr;
  33. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  34. proxy_set_header X-Forwarded-Proto $scheme;
  35.  
  36. proxy_pass http://vw.domain.com:80;
  37. }
  38.  
  39. }
  40.  
Advertisement
Add Comment
Please, Sign In to add comment