2015-12-23 06:26:27 +00:00
|
|
|
server {
|
|
|
|
listen 80 default_server;
|
|
|
|
listen [::]:80 default_server ipv6only=on;
|
|
|
|
|
|
|
|
root /srv/http/ctf;
|
|
|
|
index index.html index.htm;
|
|
|
|
|
|
|
|
server_name localhost;
|
|
|
|
|
|
|
|
location / {
|
|
|
|
try_files $uri $uri/ =404;
|
|
|
|
}
|
2015-12-23 19:49:31 +00:00
|
|
|
|
|
|
|
location ~ /api {
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
proxy_pass http://localhost:8000;
|
|
|
|
proxy_redirect off;
|
|
|
|
}
|
2015-12-23 06:26:27 +00:00
|
|
|
}
|