Skip to content

Instantly share code, notes, and snippets.

@xeptore
Created March 27, 2019 02:21
Show Gist options
  • Save xeptore/638b23afeceddfe0671fe76f68ad774d to your computer and use it in GitHub Desktop.
Save xeptore/638b23afeceddfe0671fe76f68ad774d to your computer and use it in GitHub Desktop.
nginx reverse named proxy configuration with custom headers
server {
listen 80;
server_name api.votak.xeptore.com;
location / {
proxy_set_header X-Forwarded-For $remote_addr;
proxy_pass http://127.0.0.1:9000;
}
}
server {
listen 80;
server_name votak.xeptore.com;
location / {
root /home/gridy/public_html/razmdide/front/build;
index index.html;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment