Updated nginx http

pull/3/head
Jef Roosens 2021-01-05 16:21:11 +01:00
parent e39e11b3fe
commit d43880fbba
2 changed files with 12 additions and 16 deletions

18
.gitignore vendored
View File

@ -1,17 +1,3 @@
# Copyright (C) 2020 Jef Roosens
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# 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
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
# Ignore all local config
*.env
docker-compose.override.yml

View File

@ -20,6 +20,16 @@ http {
# ssl_ecdh_curve X25519:prime256v1:secp521r1:secp384r1;
# Auto-route all HTTP requests to HTTPS
server {
listen 80;
listen [::]:80;
server_name _;
return 301 https://$host:443$request_uri;
}
# LOAD SITES
include sites_enabled/*.conf;
}