Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- server_name 18.191.1.18;
- location / {
- include proxy_params;
- proxy_pass http://unix:/home/ubuntu/myproject.sock;
- }
- }
- server {
- listen 443 ssl;
- server_name 18.191.1.18;
- ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
- ssl_certificate /home/ubuntu/webhook_cert.pem;
- ssl_certificate_key /home/ubuntu/webhook_pkey.pem;
- location / {
- proxy_set_header Host $http_host;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Scheme $scheme;
- proxy_pass http://127.0.0.1:5001/;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement