Added nginx configuration file

This commit is contained in:
Anon 2023-04-17 21:58:43 -07:00
parent c309554dd0
commit 32e0af576d

24
fedimusicplayer.nginx Normal file
View File

@ -0,0 +1,24 @@
server {
server_name example.tld;
listen 80;
listen [::]:80;
location / {
return 301 https://$server_naem$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;
}
}