Skip to content

Instantly share code, notes, and snippets.

@annibuliful
Created March 24, 2018 08:08
Show Gist options
  • Select an option

  • Save annibuliful/f7c078b6645536731df58562c4d52c36 to your computer and use it in GitHub Desktop.

Select an option

Save annibuliful/f7c078b6645536731df58562c4d52c36 to your computer and use it in GitHub Desktop.
server {
listen 80;
server_name api.localhost;
location / {
proxy_pass http://backend:3030;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
server{
listen 80;
server_name web.localhost;
location / {
proxy_pass http://frontend:8080;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
server{
listen 80;
server_name admin.localhost;
location / {
proxy_pass http://admin:3000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment