-
Notifications
You must be signed in to change notification settings - Fork 0
/
openapi.conf
30 lines (24 loc) · 1.01 KB
/
openapi.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
server {
listen 80 default_server;
listen [::]:80 default_server;
charset utf-8;
root /var/www/openapi;
server_name _;
add_header Access-Control-Allow-Methods "GET, OPTIONS" always;
add_header Access-Control-Allow-Origin "https://confluence.teamexosuite.cloud" always;
add_header Access-Control-Allow-Headers "Authorization, Content-Type" always;
add_header Access-Control-Allow-Credentials true always;
location / {
if ($request_method = OPTIONS) {
add_header Content-Length 0;
add_header Content-Type text/plain;
add_header Access-Control-Allow-Methods "GET, OPTIONS" always;
add_header Access-Control-Allow-Origin $http_origin always;
add_header Access-Control-Allow-Headers "Authorization, Content-Type" always;
add_header Access-Control-Allow-Credentials true always;
return 200;
}
auth_basic "Administrator Login";
auth_basic_user_file /var/www/.htpasswd;
}
}