forked from coracle/zooid
26 lines
616 B
Nginx Configuration File
26 lines
616 B
Nginx Configuration File
server {
|
|
listen 443 ssl;
|
|
server_name *.yourdomain.com;
|
|
|
|
ssl_certificate /etc/letsencrypt/live/yourdomain.com/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/yourdomain.com/privkey.pem;
|
|
|
|
ssl_protocols TLSv1.2 TLSv1.3;
|
|
ssl_prefer_server_ciphers on;
|
|
|
|
location / {
|
|
proxy_pass http://127.0.0.1:3334;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "Upgrade";
|
|
proxy_set_header Host $host;
|
|
}
|
|
}
|
|
|
|
server {
|
|
listen 80;
|
|
server_name *.yourdomain.com;
|
|
|
|
return 301 https://$host$request_uri;
|
|
}
|