Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- server_name herocast-api.vivifyideas.com;
- return 301 https://$host$request_uri;
- }
- server {
- listen 443 ssl http2;
- server_name herocast-api.vivifyideas.com;
- client_max_body_size 512M;
- ssl_certificate /etc/letsencrypt/live/herocast-api.vivifyideas.com/fullchain.pem;
- ssl_certificate_key /etc/letsencrypt/live/herocast-api.vivifyideas.com/privkey.pem;
- include /etc/letsencrypt/options-ssl-nginx.conf;
- ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
- location / {
- proxy_pass https://127.0.0.1:8704;
- proxy_http_version 1.1;
- proxy_connect_timeout 300s;
- proxy_send_timeout 300s;
- proxy_read_timeout 300s;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header Host $host;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement