FediMusicPlayer/installation/fedimusicplayer.nginx
2023-04-19 22:33:37 -07:00

25 lines
481 B
Nginx Configuration File

server {
server_name example.tld;
listen 80;
listen [::]:80;
location / {
return 301 https://$server_name$request_uri;
}
}
server {
server_name example.tld;
listen 443 ssl;
listen [::]:443 ssl;
ssl_trusted_certificate /etc/letsencrypt/live/example.tld/chain.pem;
ssl_certificate /etc/letsencrypt/live/example.tld/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/example.tld/privkey.pem;
location / {
root /opt/FediMusicPlayer;
index index.html;
}
}