41 lines
1.2 KiB
Plaintext
41 lines
1.2 KiB
Plaintext
|
server {
|
||
|
|
||
|
root /var/www/html/coconutmarketapp.in;
|
||
|
index index.html index.js index.htm index.nginx-debian.html;
|
||
|
|
||
|
server_name coconutmarketapp.in www.coconutmarketapp.in;
|
||
|
|
||
|
location / {
|
||
|
try_files $uri $uri/ =404;
|
||
|
proxy_set_header X-Forwarded-For $remote_addr;
|
||
|
proxy_set_header Host $http_host;
|
||
|
proxy_pass http://coconutmarketapp.in:3030;
|
||
|
}
|
||
|
|
||
|
|
||
|
access_log /var/log/nginx/coconutmarketapp.in.access.log;
|
||
|
error_log /var/log/nginx/coconutmarketapp.in.error.log;
|
||
|
|
||
|
|
||
|
listen [::]:443 ssl ipv6only=on; # managed by Certbot
|
||
|
listen 443 ssl; # managed by Certbot
|
||
|
ssl_certificate /etc/letsencrypt/live/coconutmarketapp.in/fullchain.pem; # managed by Certbot
|
||
|
ssl_certificate_key /etc/letsencrypt/live/coconutmarketapp.in/privkey.pem; # managed by Certbot
|
||
|
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
|
||
|
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
|
||
|
|
||
|
}
|
||
|
server {
|
||
|
if ($host = coconutmarketapp.in) {
|
||
|
return 301 https://$host$request_uri;
|
||
|
} # managed by Certbot
|
||
|
|
||
|
|
||
|
listen 80;
|
||
|
listen [::]:80;
|
||
|
|
||
|
server_name coconutmarketapp.in www.coconutmarketapp.in;
|
||
|
return 404; # managed by Certbot
|
||
|
|
||
|
|
||
|
}
|