forked from ONDC-Official/biap-app-ui-front
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx-without-ssl.conf
107 lines (89 loc) · 2.91 KB
/
nginx-without-ssl.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
server {
listen 80 ;
server_name __domain_name__;
server_tokens off;
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range';
location /.well-known/acme-challenge/ {
root /var/www/certbot;
}
location /maps/api/ {
proxy_pass https://maps.googleapis.com/maps/api/;
proxy_read_timeout 240s;
add_header 'Access-Control-Allow-Origin' '*';
}
location /mmi/api/ {
proxy_pass http://mmi-client:8000/v1/api/;
proxy_read_timeout 240s;
add_header 'Access-Control-Allow-Origin' '*';
}
location /knowlarity/api/ {
proxy_pass http://mmi-client:8000/v1/api/;
proxy_read_timeout 240s;
add_header 'Access-Control-Allow-Origin' '*';
}
location /api/payment/ {
proxy_pass http://biap-client-node-js:3000/api/payment/;
proxy_read_timeout 240s;
add_header 'Access-Control-Allow-Origin' '*';
}
location /clientApis/events {
proxy_set_header Connection '';
proxy_http_version 1.1;
chunked_transfer_encoding off;
proxy_pass http://biap-client-node-js:3000/clientApis/events;
add_header 'Access-Control-Allow-Origin' '*';
proxy_buffering off;
proxy_cache off;
}
location /clientApis/ {
proxy_pass http://biap-client-node-js:3000/clientApis/;
proxy_read_timeout 240s;
add_header 'Access-Control-Allow-Origin' '*';
}
location /issueApis/events {
proxy_set_header Connection '';
proxy_http_version 1.1;
chunked_transfer_encoding off;
proxy_pass http://biap-igm-node-js:6969/issueApis/events;
add_header 'Access-Control-Allow-Origin' '*';
proxy_buffering off;
proxy_cache off;
}
location /issueApis/ {
proxy_pass http://biap-igm-node-js:6969/issueApis/;
proxy_read_timeout 240s;
add_header 'Access-Control-Allow-Origin' '*';
}
location /protocol/ {
proxy_pass http://py-ondc-protocol:5555/protocol/;
proxy_read_timeout 240s;
add_header 'Access-Control-Allow-Origin' '*';
}
location /bugzilla/ {
proxy_pass http://bugzilla-dev-service:80/;
proxy_read_timeout 240s;
add_header 'Access-Control-Allow-Origin' '*';
}
location /bugzilla/admin {
proxy_pass http://bugzilla-dev-service:80/bugzilla;
proxy_read_timeout 240s;
add_header 'Access-Control-Allow-Origin' '*';
}
location /protocol/v1/on_search {
proxy_pass http://py-ondc-protocol:5555/protocol/v1/on_search;
proxy_read_timeout 240s;
add_header 'Access-Control-Allow-Origin' '*';
}
location /protocol/response/v1/on_search {
proxy_pass http://py-ondc-protocol:5555/protocol/response/v1/on_search;
proxy_read_timeout 240s;
add_header 'Access-Control-Allow-Origin' '*';
}
location / {
root /usr/share/nginx/html;
index index.html;
try_files $uri $uri/ /index.html;
}
}