-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx.conf
36 lines (25 loc) · 920 Bytes
/
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
server {
listen 80 default_server;
server_name fis-buyer-staging.ondc.org www.fis-buyer-staging.ondc.org ;
set $localhost 172.17.0.1;
# Redirect all HTTP requests to HTTPS
location / {
return 301 https://$host$request_uri;
}
}
server {
listen 443 ssl default_server;
server_name fis-buyer-staging.ondc.org www.fis-buyer-staging.ondc.org ;
set $localhost 172.17.0.1;
ssl_certificate /etc/nginx/ssl/live/fis-buyer-staging.ondc.org/fullchain.pem; # Path to your SSL certificate
ssl_certificate_key /etc/nginx/ssl/live/fis-buyer-staging.ondc.org/privkey.pem; # Path to your SSL private key
ssl_trusted_certificate /etc/nginx/ssl/live/fis-buyer-staging.ondc.org/chain.pem;
#sandbox ui
location / {
proxy_pass http://$localhost:3000;
}
#sandbox backend
location /api/ {
proxy_pass http://$localhost:4000;
}
}