Added nginx configuration file
This commit is contained in:
parent
c309554dd0
commit
32e0af576d
24
fedimusicplayer.nginx
Normal file
24
fedimusicplayer.nginx
Normal 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;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user