forked from ONDC-Official/biap-app-ui-front
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx.conf
122 lines (101 loc) · 3.32 KB
/
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
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
server {
listen 80;
server_name buyer-app.ondc.org;
server_tokens off;
location /.well-known/acme-challenge/ {
root /var/www/certbot;
}
location / {
return 301 https://$host$request_uri;
}
}
server {
listen 443 ssl;
server_name buyer-app.ondc.org;
server_tokens off;
ssl_certificate /etc/letsencrypt/live/buyer-app.ondc.org/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/buyer-app.ondc.org/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
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 /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 /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 /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 / {
root /usr/share/nginx/html;
index index.html;
try_files $uri $uri/ /index.html;
}
}