Skip to content

Instantly share code, notes, and snippets.

@e-oz
Created January 30, 2016 18:29
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save e-oz/5ad479e6680cf0331dbf to your computer and use it in GitHub Desktop.
Save e-oz/5ad479e6680cf0331dbf to your computer and use it in GitHub Desktop.
nginx proxy for Rust web server
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