Advertisement
kopyl

Untitled

Apr 27th, 2022
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1.  
  2. server {
  3.  
  4. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  5.  
  6. location / {
  7. proxy_pass http://217.65.241.68:81;
  8.  
  9. proxy_buffering off;
  10. }
  11.  
  12. location /ws {
  13.  
  14. proxy_pass http://217.65.241.68:81;
  15.  
  16. proxy_set_header Upgrade $http_upgrade;
  17. proxy_set_header Connection "upgrade";
  18. }
  19.  
  20. # server_name localhost;
  21.  
  22. server_name stage.idied.org;
  23.  
  24.  
  25.  
  26. listen [::]:443 ssl ipv6only=on; # managed by Certbot
  27. listen 443 ssl; # managed by Certbot
  28. ssl_certificate /etc/letsencrypt/live/stage.idied.org/fullchain.pem; # managed by Certbot
  29. ssl_certificate_key /etc/letsencrypt/live/stage.idied.org/privkey.pem; # managed by Certbot
  30. include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
  31. ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
  32.  
  33. }
  34. server {
  35. if ($host = stage.idied.org) {
  36. return 301 https://$host$request_uri;
  37. } # managed by Certbot
  38.  
  39.  
  40.  
  41. server_name stage.idied.org;
  42. listen 80 default_server;
  43. listen [::]:80 default_server;
  44. return 404; # managed by Certbot
  45.  
  46.  
  47. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement