forked from ONDC-Official/seller-app-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx.conf
133 lines (106 loc) · 3.47 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
123
124
125
126
127
128
129
130
131
132
server {
listen 80;
server_name __domain_name__;
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 __domain_name__;
server_tokens off;
ssl_certificate /etc/letsencrypt/live/__domain_name__/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/__domain_name__/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 /search {
proxy_pass http://bpp-protocol-webserver:5555/protocol/v1/search;
proxy_read_timeout 240s;
add_header 'Access-Control-Allow-Origin' '*';
}
location /select {
proxy_pass http://bpp-protocol-webserver:5555/protocol/v1/select;
proxy_read_timeout 240s;
add_header 'Access-Control-Allow-Origin' '*';
}
location /init {
proxy_pass http://bpp-protocol-webserver:5555/protocol/v1/init;
proxy_read_timeout 240s;
add_header 'Access-Control-Allow-Origin' '*';
}
location /confirm {
proxy_pass http://bpp-protocol-webserver:5555/protocol/v1/confirm;
proxy_read_timeout 240s;
add_header 'Access-Control-Allow-Origin' '*';
}
location /cancel {
proxy_pass http://bpp-protocol-webserver:5555/protocol/v1/cancel;
proxy_read_timeout 240s;
add_header 'Access-Control-Allow-Origin' '*';
}
location /update {
proxy_pass http://bpp-protocol-webserver:5555/protocol/v1/update;
proxy_read_timeout 240s;
add_header 'Access-Control-Allow-Origin' '*';
}
location /track {
proxy_pass http://bpp-protocol-webserver:5555/protocol/v1/track;
proxy_read_timeout 240s;
add_header 'Access-Control-Allow-Origin' '*';
}
location /status {
proxy_pass http://bpp-protocol-webserver:5555/protocol/v1/status;
proxy_read_timeout 240s;
add_header 'Access-Control-Allow-Origin' '*';
}
location /support {
proxy_pass http://bpp-protocol-webserver:5555/protocol/v1/support;
proxy_read_timeout 240s;
add_header 'Access-Control-Allow-Origin' '*';
}
location /api/order {
proxy_pass http://seller:3001/api/order;
proxy_read_timeout 240s;
add_header 'Access-Control-Allow-Origin' '*';
}
location /api/orders/ {
proxy_pass http://seller:3001/api/orders/;
proxy_read_timeout 240s;
add_header 'Access-Control-Allow-Origin' '*';
}
location /rabbitmq/ {
proxy_pass http://rabbitmq:15672/;
proxy_read_timeout 240s;
add_header 'Access-Control-Allow-Origin' '*';
}
location /.well-known/acme-challenge/ {
root /var/www/certbot;
}
location /protocol/ {
proxy_pass http://bpp-protocol-webserver:5555/protocol/;
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;
}
location /api/product/ {
proxy_pass http://seller-client:3001/api/product/;
proxy_read_timeout 240s;
add_header 'Access-Control-Allow-Origin' '*';
}
location /api/v1/ {
proxy_pass http://seller:3019/api/v1/;
proxy_read_timeout 240s;
add_header 'Access-Control-Allow-Origin' '*';
}
}