2024-03-10 11:06:29 +00:00
|
|
|
server {
|
|
|
|
listen 80;
|
|
|
|
client_max_body_size 4G;
|
|
|
|
|
|
|
|
server_name localhost;
|
|
|
|
|
|
|
|
keepalive_timeout 5;
|
|
|
|
|
|
|
|
|
2024-04-24 13:16:40 +00:00
|
|
|
location /static/ {
|
|
|
|
alias /static/;
|
|
|
|
}
|
|
|
|
|
|
|
|
location /javascript/bootstrap/ {
|
|
|
|
alias /static/;
|
|
|
|
}
|
|
|
|
|
|
|
|
location /javascript/jquery/ {
|
|
|
|
alias /static/admin/js/vendor/jquery/;
|
2024-03-10 11:06:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
location /media/ {
|
2024-04-24 13:16:40 +00:00
|
|
|
alias /media/;
|
2024-03-10 11:06:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
location / {
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
|
|
proxy_set_header Host $http_host;
|
|
|
|
proxy_redirect off;
|
2024-04-24 13:16:40 +00:00
|
|
|
proxy_pass http://re2o:8000$request_uri;
|
2024-03-10 11:06:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
error_page 500 502 503 504 /50x.html;
|
|
|
|
location = /50x.html {
|
|
|
|
root /usr/share/nginx/html;
|
|
|
|
}
|
|
|
|
}
|