a_igin

nginx

Aug 24th, 2020
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 0.33 KB | None | 0 0
  1. upstream web {
  2.    ip_hash;
  3.    server web:8000;
  4.  }
  5.  
  6.  # portal
  7.  server {
  8.    location / {
  9.          proxy_pass http://web/;
  10.      }
  11.    listen 8000;
  12.    server_name localhost;
  13.  
  14.    location /static/ {
  15.      autoindex on;
  16.      alias /srv/static/;
  17.    }
  18.    location /media/ {
  19.      autoindex on;
  20.      alias /srv/media/;
  21.    }
  22.  }
  23.  
  24.  
  25.  
Add Comment
Please, Sign In to add comment