FediMusicPlayer/installation/fedimusicplayer.nginx

41 lines
1.2 KiB
Plaintext
Raw Permalink Normal View History

2023-04-23 00:17:41 -07:00
# FediMusicPlayer - An HTML5 + Javascript Music Player
2023-04-24 20:52:13 -07:00
# Copyright (C) 2023 Anon <@Anon@yandere.cc>
2023-04-23 00:17:41 -07:00
#
# This program is free software: you can redistribute it and/or modify
2023-04-23 00:29:17 -07:00
# it under the terms of the GNU Affero General Public License as published by
2023-04-23 00:17:41 -07:00
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2023-04-23 00:29:17 -07:00
# GNU Affero General Public License for more details.
2023-04-23 00:17:41 -07:00
#
2023-04-23 00:29:17 -07:00
# You should have received a copy of the GNU Affero General Public License
2023-04-23 00:17:41 -07:00
# along with this program. If not, see <https://www.gnu.org/licenses/>.
2023-04-17 21:58:43 -07:00
server {
server_name example.tld;
listen 80;
listen [::]:80;
location / {
2023-04-17 22:08:39 -07:00
return 301 https://$server_name$request_uri;
2023-04-17 21:58:43 -07:00
}
}
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;
}
}