-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpython_api
More file actions
23 lines (19 loc) · 742 Bytes
/
python_api
File metadata and controls
23 lines (19 loc) · 742 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
server {
listen 80;
server_name diglot.it.et.byu.edu;
root /var/www/html;
location / {
include uwsgi_params;
uwsgi_pass unix:/var/www/html/api/python_api.sock;
# proxy_pass http://192.168.80.0:8080;
# proxy_set_header Host $host;
if ($request_method = 'GET') {
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Credentials' 'true';
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';
}
}
location /static {
}
}