22 lines
571 B
Text
Executable file
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/;
|
|
}
|
|
}
|