Files
homaroma/serverinfo/homaroma.shop.conf
T

22 lines
658 B
Plaintext

server {
listen 80;
server_name homaroma.shop www.homaroma.shop;
location ~ /.well-known/acme-challenge {
allow all;
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';
}
}