easyctf-iv-platform/nginx/easyctf.vagrant.conf
Michael Zhang 4225cc4dde
Initial.
2018-02-20 22:37:10 -06:00

22 lines
571 B
Text
Executable file

server {
listen 80;
server_name localhost localhost.easyctf.com;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log error;
underscores_in_headers on;
location /static {
root /var/opt/filestore;
autoindex off;
}
location / {
proxy_set_header HOST $http_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;
proxy_pass http://localhost:5000/;
}
}