25 lines
481 B
Plaintext
25 lines
481 B
Plaintext
|
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;
|
||
|
}
|
||
|
}
|