diff --git a/.gitignore b/.gitignore index 5603bd0..7de4081 100644 --- a/.gitignore +++ b/.gitignore @@ -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 . - - +# Ignore all local config *.env +docker-compose.override.yml diff --git a/nginx/conf.d/http.conf b/nginx/conf.d/http.conf index cc88b33..c92194d 100644 --- a/nginx/conf.d/http.conf +++ b/nginx/conf.d/http.conf @@ -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; }