Advertisement
Guest User

Untitled

a guest
Feb 14th, 2020
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. server {
  2. listen 80;
  3. server_name 18.191.1.18;
  4.  
  5. location / {
  6. include proxy_params;
  7. proxy_pass http://unix:/home/ubuntu/myproject.sock;
  8. }
  9. }
  10.  
  11.  
  12. server {
  13. listen 443 ssl;
  14. server_name 18.191.1.18;
  15. ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  16. ssl_certificate /home/ubuntu/webhook_cert.pem;
  17. ssl_certificate_key /home/ubuntu/webhook_pkey.pem;
  18.  
  19. location / {
  20. proxy_set_header Host $http_host;
  21. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  22. proxy_set_header X-Real-IP $remote_addr;
  23. proxy_set_header X-Scheme $scheme;
  24. proxy_pass http://127.0.0.1:5001/;
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement