Skip to content

Instantly share code, notes, and snippets.

@MarcL
Created January 22, 2020 22:06
Show Gist options
  • Save MarcL/582ba72c0251ba6ac26408e0e92942ae to your computer and use it in GitHub Desktop.
Save MarcL/582ba72c0251ba6ac26408e0e92942ae to your computer and use it in GitHub Desktop.
Reverse proxy configuration for nginx
server {
listen 80;
# Replace this with your domain
server_name www.mysite.com;
location / {
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $http_host;
proxy_pass http://localhost:8080;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment