Skip to content

Instantly share code, notes, and snippets.

@luisnaranjo733
Created May 19, 2017 17:23
Show Gist options
  • Select an option

  • Save luisnaranjo733/fe76bd71d22be3577b9f2473d8b83037 to your computer and use it in GitHub Desktop.

Select an option

Save luisnaranjo733/fe76bd71d22be3577b9f2473d8b83037 to your computer and use it in GitHub Desktop.
Nginx config file
upstream web {
ip_hash;
server web:80;
}
# portal
server {
location /static/ {
autoindex on;
alias /static/;
}
location / {
proxy_pass http://web/;
}
listen 80;
server_name localhost;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment