19 lines
626 B
Plaintext
19 lines
626 B
Plaintext
server {
|
|
listen 80;
|
|
server_name homaroma.shop www.homaroma.shop;
|
|
location /.well-known/acme-challenge/ { root /var/www/certbot; }
|
|
location / { return 301 https://$host$request_uri; }
|
|
}
|
|
server {
|
|
listen 443 ssl;
|
|
server_name homaroma.shop www.homaroma.shop;
|
|
ssl_certificate /etc/letsencrypt/live/homaroma.shop/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/homaroma.shop/privkey.pem;
|
|
location / {
|
|
proxy_pass http://192.168.1.167:3002;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection 'upgrade';
|
|
}
|
|
}
|