25 lines
753 B
Text
Executable file
25 lines
753 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 {
|
|
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;
|
|
proxy_pass http://filestore/;
|
|
}
|
|
|
|
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;
|
|
proxy_pass http://easyctf:5000/;
|
|
}
|
|
}
|