Last active
July 25, 2016 17:55
-
-
Save desaiuditd/2f6dc613f04e425e709e267906f35f5b to your computer and use it in GitHub Desktop.
Meteor Nginx Proxy Config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
server_name example.com www.home.example.com; | |
access_log /var/log/nginx/example.com.access.log ; | |
error_log /var/log/nginx/example.com.error.log; | |
root /var/www/example.com/htdocs; | |
index index.html index.htm; | |
location ~ /\.well-known/ { | |
try_files $uri $uri/ =404; | |
} | |
location / { | |
proxy_pass http://127.0.0.1:3000; | |
proxy_redirect off; | |
proxy_set_header Host $host; | |
proxy_http_version 1.1; | |
proxy_set_header Upgrade $http_upgrade; | |
proxy_set_header Connection 'upgrade'; | |
proxy_set_header X-Forwarded-For $remote_addr; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Client-Verify SUCCESS; | |
proxy_set_header X-Client-DN $ssl_client_s_dn; | |
proxy_set_header X-SSL-Subject $ssl_client_s_dn; | |
proxy_set_header X-SSL-Issuer $ssl_client_i_dn; | |
proxy_read_timeout 1800; | |
proxy_connect_timeout 1800; | |
} | |
# include common/locations.conf; | |
include /var/www/example.com/conf/nginx/*.conf; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment