Created
January 30, 2016 18:29
-
-
Save e-oz/5ad479e6680cf0331dbf to your computer and use it in GitHub Desktop.
nginx proxy for Rust web server
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 { | |
listen 80; | |
server_name api.server.domain; | |
keepalive_timeout 65; | |
location / { | |
proxy_set_header X-Forwarded-For $remote_addr; | |
proxy_pass http://localhost:3000; | |
proxy_temp_path /home/ec2-user/proxy_tmp; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment