mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-27 15:12:25 +00:00
38 lines
No EOL
685 B
Nginx Configuration File
38 lines
No EOL
685 B
Nginx Configuration File
server {
|
|
listen 80;
|
|
client_max_body_size 4G;
|
|
|
|
server_name localhost;
|
|
|
|
keepalive_timeout 5;
|
|
|
|
|
|
location /static/ {
|
|
alias /static/;
|
|
}
|
|
|
|
location /javascript/bootstrap/ {
|
|
alias /static/;
|
|
}
|
|
|
|
location /javascript/jquery/ {
|
|
alias /static/admin/js/vendor/jquery/;
|
|
}
|
|
|
|
location /media/ {
|
|
alias /media/;
|
|
}
|
|
|
|
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;
|
|
proxy_pass http://re2o:8000$request_uri;
|
|
}
|
|
|
|
error_page 500 502 503 504 /50x.html;
|
|
location = /50x.html {
|
|
root /usr/share/nginx/html;
|
|
}
|
|
} |