forked from Wubbadub/ClubHub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx.config
24 lines (19 loc) · 841 Bytes
/
nginx.config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
server_name www.tryclubhub.com tryclubhub.com hubsite.club *.uvic.club;
root /usr/share/nginx/html;
index index.html index.htm;
client_max_body_size 10G;
# add_header 'Access-Control-Allow-Credentials' 'true';
# add_header 'Access-Control-Allow-Methods' 'GET, POST';
add_header 'Access-Control-Allow-Headers' 'DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type';
location / {
proxy_pass http://localhost:8000;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
proxy_buffering off;
}
}