Nginx HTTP configuration file
server {
listen 80;
server_name www.penguintechnology.in;
return 301 https://www.penguintechnology.in;
}
server {
listen 80;
server_name penguintechnology.in;
return 301 https://www.penguintechnology.in;
}
Nginx HTTPS configuration file
server {
listen 443 ssl;
server_name www.penguintechnology.in penguintechnology.in;
ssl_certificate fullchain.crt; # (Cert + bundle )
ssl_certificate_key private.key;
#...
}
Nginx Proxy configuration
server {
listen 443;
server_name www.penguintechnology.in penguintechnology.in;
location /{
proxy_pass http://localhost:3001;
}
ssl on;
ssl_certificate /var/ssl/fullchain.crt;
ssl_certificate_key /var/ssl/private.key;
}
Ref page:
https://docs.nginx.com/nginx/admin-guide/security-controls/terminating-ssl-http/
0 comments:
Post a Comment