Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- upstream web {
- ip_hash;
- server web:8000;
- }
- server {
- listen 8000;
- server_name RECOURCE_NAME;
- proxy_read_timeout 60;
- client_max_body_size 20m;
- location / {
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header Host $host;
- proxy_redirect off;
- proxy_pass http://web/;
- }
- location /static/ {
- access_log /root/log/nginx-static-access.log;
- error_log /root/log/nginx-static-error.log;
- alias /static/;
- }
- location /media/ {
- access_log /root/log/nginx-media-access.log;
- error_log /root/log/nginx-media-error.log;
- alias /media/;
- }
- }
Add Comment
Please, Sign In to add comment