-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx.conf
37 lines (28 loc) · 1017 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
37
server {
listen 80 default_server;
server_name fis-buyer-staging.ondc.org www.fis-buyer-staging.ondc.org ;
# Redirect all HTTP requests to HTTPS
location / {
return 301 https://$host$request_uri;
}
location ~ /.well-known/acme-challenge/ {
alias /usr/share/nginx/html/;
try_files $uri =404;
}
}
server {
listen 443 ssl default_server;
server_name _;
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;
# Redirect all HTTP requests to HTTPS
location / {
proxy_pass http://172.17.0.1:3000;
# proxy_pass http://host.docker.internal:3000;
}
location /api/ {
proxy_pass http://172.17.0.1:4000/;
# proxy_pass http://host.docker.internal:4000/;
}
}