Skip to content
This repository was archived by the owner on Jan 6, 2021. It is now read-only.

Commit b7f7cc3

Browse files
authored
Merge pull request #343 from linuxserver/http
enable http to https redirect by default
2 parents 4608e1d + 1434b6a commit b7f7cc3

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
257257

258258
## Versions
259259

260+
* **29.07.19:** - Enable http to https redirect by default (effective only for new installs).
260261
* **01.07.19:** - Patch geoip2 module until upstream is fixed.
261262
* **30.06.19:** - Add geoip2 module.
262263
* **28.06.19:** - Rebasing to alpine 3.10.

readme-vars.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ app_setup_nginx_reverse_proxy_block: ""
126126

127127
# changelog
128128
changelogs:
129+
- { date: "29.07.19:", desc: "Enable http to https redirect by default (effective only for new installs)." }
129130
- { date: "01.07.19:", desc: "Patch geoip2 module until upstream is fixed." }
130131
- { date: "30.06.19:", desc: "Add geoip2 module." }
131132
- { date: "28.06.19:", desc: "Rebasing to alpine 3.10." }

root/defaults/default

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
## Version 2018/12/05 - Changelog: https://github.com/linuxserver/docker-letsencrypt/commits/master/root/defaults/default
1+
## Version 2019/07/29 - Changelog: https://github.com/linuxserver/docker-letsencrypt/commits/master/root/defaults/default
22

3-
# listening on port 80 disabled by default, remove the "#" signs to enable
43
# redirect all traffic to https
5-
#server {
6-
# listen 80;
7-
# listen [::]:80;
8-
# server_name _;
9-
# return 301 https://$host$request_uri;
10-
#}
4+
server {
5+
listen 80;
6+
listen [::]:80;
7+
server_name _;
8+
return 301 https://$host$request_uri;
9+
}
1110

1211
# main server block
1312
server {

0 commit comments

Comments
 (0)