Updated nginx http
parent
e39e11b3fe
commit
d43880fbba
|
@ -1,17 +1,3 @@
|
||||||
# Copyright (C) 2020 Jef Roosens
|
# Ignore all local config
|
||||||
#
|
|
||||||
# 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/>.
|
|
||||||
|
|
||||||
|
|
||||||
*.env
|
*.env
|
||||||
|
docker-compose.override.yml
|
||||||
|
|
|
@ -20,6 +20,16 @@ http {
|
||||||
# ssl_ecdh_curve X25519:prime256v1:secp521r1:secp384r1;
|
# 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
|
# LOAD SITES
|
||||||
include sites_enabled/*.conf;
|
include sites_enabled/*.conf;
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue