feat: use wss:// if https
This commit is contained in:
28
nginx.conf
Normal file
28
nginx.conf
Normal file
@@ -0,0 +1,28 @@
|
||||
# Backend
|
||||
server {
|
||||
listen 4000 ssl http2;
|
||||
listen [::]:4000 ssl http2;
|
||||
server_name achievements.ajb.dk;
|
||||
|
||||
ssl_certificate /etc/letsencrypt/live/ajb.dk/fullchain.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/ajb.dk/privkey.pem;
|
||||
|
||||
location / {
|
||||
proxy_pass http://localhost:4001/;
|
||||
}
|
||||
}
|
||||
|
||||
# Frontend (serve yew app static files)
|
||||
server {
|
||||
listen 443 ssl http2;
|
||||
listen [::]:443 ssl http2;
|
||||
server_name achievements.ajb.dk;
|
||||
|
||||
ssl_certificate /etc/letsencrypt/live/ajb.dk/fullchain.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/ajb.dk/privkey.pem;
|
||||
|
||||
location / {
|
||||
alias /var/www/achievements/;
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user