Advertisement
miljanic

https

Mar 18th, 2019
316
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 0.94 KB | None | 0 0
  1. server {
  2.     listen 80;
  3.     server_name herocast-api.vivifyideas.com;
  4.  
  5.     return 301 https://$host$request_uri;
  6. }
  7.  
  8. server {
  9.         listen 443 ssl http2;
  10.         server_name herocast-api.vivifyideas.com;
  11.         client_max_body_size 512M;
  12.         ssl_certificate /etc/letsencrypt/live/herocast-api.vivifyideas.com/fullchain.pem;
  13.         ssl_certificate_key /etc/letsencrypt/live/herocast-api.vivifyideas.com/privkey.pem;
  14.         include /etc/letsencrypt/options-ssl-nginx.conf;
  15.         ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
  16.  
  17.         location / {
  18.           proxy_pass https://127.0.0.1:8704;
  19.           proxy_http_version 1.1;
  20.           proxy_connect_timeout       300s;
  21.           proxy_send_timeout          300s;
  22.           proxy_read_timeout          300s;
  23.           proxy_set_header X-Real-IP $remote_addr;
  24.           proxy_set_header Host $host;
  25.           proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  26.         }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement