HTTPS only

parent 6fd7f88a
......@@ -4,6 +4,8 @@ common_timezone: Etc/UTC
enable_tinc: False
enable_tor: False
https_only: false
enable_apple_health_influx: False
enable_bitwarden: False
enable_bulletnotes: False
......
......@@ -6,8 +6,10 @@ defaultEntryPoints = ["http", "https"]
[entryPoints]
[entryPoints.http]
address = ":80"
# [entryPoints.http.redirect]
# entryPoint = "https"
{% if https_only %}
[entryPoints.http.redirect]
entryPoint = "https"
{% endif %}
[entryPoints.https]
address = ":443"
[entryPoints.https.tls]
......
......@@ -35,6 +35,8 @@ admin_email: {{admin_email}}
enable_tinc: {{enable_tinc}}
enable_tor: {{enable_tor}}
https_only: {{https_only}}
# Services
# You can enable/disable services individually by changing False to True and vice versa.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment