Advertisement
lemb

Nginx wyze proxy config

Nov 21st, 2016
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 0.82 KB | None | 0 0
  1. server {
  2.     listen       wyze.herokuapp.com:80;
  3.     server_name  wyze.herokuapp.com;
  4.  
  5.     location / {
  6.         #access_log        off;
  7.         proxy_pass        http://127.0.0.1:3000/;
  8.         proxy_set_header  Host $http_host;
  9.         proxy_set_header  X-Real-IP $remote_addr;
  10.         proxy_set_header  X-Forwarded-For $proxy_add_x_forwarded_for;
  11.     }                                                                                              
  12. }
  13.  
  14. server {
  15.     listen       wyze.herokuapp.com:443;
  16.     server_name  wyze.herokuapp.com;
  17.  
  18.     ssl                  on;
  19.     ssl_protocols        SSLv3 TLSv1;
  20.     ssl_certificate      /etc/nginx/ssl/cert.pem;
  21.     ssl_certificate_key  /etc/nginx/ssl/cert.key;
  22.  
  23.     location / {
  24.         #access_log        off;
  25.         proxy_pass        http://127.0.0.1:3000/;
  26.         proxy_set_header  Host $http_host;
  27.         proxy_set_header  X-Real-IP $remote_addr;
  28.         proxy_set_header  X-Forwarded-For $proxy_add_x_forwarded_for;
  29.     }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement