-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathnginx.conf
40 lines (31 loc) · 904 Bytes
/
nginx.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
worker_processes 1;
events {
worker_connections 128;
}
http {
server {
listen 80;
listen [::]:80;
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_set_header X-Forwarded-Host $server_name;
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
add_header 'Access-Control-Allow-Headers' 'DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type';
#proxy_read_timeout 300s;
#proxy_connect_timeout 75s;
sendfile on;
root /www;
merge_slashes off;
location /cite {
proxy_pass http://demo-pycsw-org-cite:8000;
}
location /gisdata {
proxy_pass http://demo-pycsw-org-gisdata:8000;
}
location /deploy {
proxy_pass http://demo-pycsw-org-deploy-webhook:8001;
}
}
}