easyctf-iv-platform/nginx/easyctf.conf

21 lines
502 B
Text
Raw Normal View History

2018-02-21 04:37:10 +00:00
server {
2020-11-26 04:46:22 +00:00
listen 80 default_server;
2018-02-21 04:37:10 +00:00
underscores_in_headers on;
2020-11-26 04:46:22 +00:00
root /filestore-data;
2018-02-21 04:37:10 +00:00
2020-11-26 04:46:22 +00:00
location /static/ {
rewrite ^/static/(.*) /$1 break;
autoindex off;
try_files $uri $uri/ =404;
2018-02-21 04:37:10 +00:00
}
location / {
proxy_set_header HOST $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
2020-11-26 04:46:22 +00:00
proxy_pass http://app:8000/;
2018-02-21 04:37:10 +00:00
}
}