feature: HTTPS is always on, for wan.local_fqdn or, without it, the host name and its mDNS name, optionally also for the server's addresses, and the redirect to HTTPS covers the status page by name.
Release / release (push) Successful in 23s
Release / release (push) Successful in 23s
This commit is contained in:
1 parent
7efacfa3bb
commit
64c3ae4c36
18 files changed
+317
-187
No files matched your search
@@ -67,7 +67,6 @@ fi
|
||||
db_go || true
|
||||
|
||||
db_input high linux-manager/local_fqdn || true
|
||||
db_input high linux-manager/https_enabled || true
|
||||
if [ "$ROUTER" = "true" ] || [ "$VPN" = "true" ]; then
|
||||
db_input high linux-manager/local_cidrs || true
|
||||
fi
|
||||
@@ -85,11 +84,8 @@ if [ "$VPN" = "true" ]; then
|
||||
fi
|
||||
db_go || true
|
||||
|
||||
db_get linux-manager/https_enabled
|
||||
if [ "$RET" = "true" ]; then
|
||||
db_input high linux-manager/https_disable_auto_redirect || true
|
||||
db_go || true
|
||||
fi
|
||||
db_input high linux-manager/https_disable_auto_redirect || true
|
||||
db_go || true
|
||||
|
||||
db_get linux-manager/pki_root
|
||||
if [ "$RET" = "local" ]; then
|
||||
|
||||
@@ -25,6 +25,7 @@ Depends: ${misc:Depends},
|
||||
python3-prometheus-client,
|
||||
python3-requests,
|
||||
caddy,
|
||||
avahi-daemon,
|
||||
postgresql,
|
||||
slapd,
|
||||
nslcd,
|
||||
|
||||
@@ -24,7 +24,6 @@ case "$1" in
|
||||
answer linux-manager/external_interface; LINUX_MANAGER_EXTERNAL_INTERFACE="$ANSWER"
|
||||
answer linux-manager/internal_interface; LINUX_MANAGER_INTERNAL_INTERFACE="$ANSWER"
|
||||
answer linux-manager/local_fqdn; LINUX_MANAGER_LOCAL_FQDN="$ANSWER"
|
||||
answer linux-manager/https_enabled; LINUX_MANAGER_HTTPS_ENABLED="$ANSWER"
|
||||
answer linux-manager/https_disable_auto_redirect; LINUX_MANAGER_HTTPS_DISABLE_AUTO_REDIRECT="$ANSWER"
|
||||
answer linux-manager/local_id_mode; LINUX_MANAGER_LOCAL_ID_MODE="$ANSWER"
|
||||
answer linux-manager/local_cidrs; LINUX_MANAGER_LOCAL_CIDRS="$ANSWER"
|
||||
@@ -46,7 +45,7 @@ case "$1" in
|
||||
LINUX_MANAGER_ROUTER_ENABLED LINUX_MANAGER_VPN_ENABLED \
|
||||
LINUX_MANAGER_EXTERNAL_INTERFACE \
|
||||
LINUX_MANAGER_INTERNAL_INTERFACE LINUX_MANAGER_LOCAL_FQDN \
|
||||
LINUX_MANAGER_HTTPS_ENABLED LINUX_MANAGER_HTTPS_DISABLE_AUTO_REDIRECT \
|
||||
LINUX_MANAGER_HTTPS_DISABLE_AUTO_REDIRECT \
|
||||
LINUX_MANAGER_LOCAL_ID_MODE LINUX_MANAGER_LOCAL_CIDRS \
|
||||
LINUX_MANAGER_INT_GATEWAY_IP \
|
||||
LINUX_MANAGER_REMOTE_ADDRS LINUX_MANAGER_REMOTE_ID \
|
||||
|
||||
@@ -95,22 +95,15 @@ Description: Local router FQDN:
|
||||
router.example.com). Used as the IKEv2 server identity and
|
||||
certificate common name.
|
||||
|
||||
Template: linux-manager/https_enabled
|
||||
Type: boolean
|
||||
Default: true
|
||||
Description: Serve the status page and the Manager over HTTPS?
|
||||
If enabled, Caddy serves the status page and the Manager over HTTPS for the
|
||||
router FQDN, with a certificate of the Servers Issuing CA when the server
|
||||
creates its root CA, and a self-signed one otherwise. The status page stays
|
||||
available over plain HTTP either way.
|
||||
|
||||
Template: linux-manager/https_disable_auto_redirect
|
||||
Type: boolean
|
||||
Default: false
|
||||
Description: Keep the Manager available over plain HTTP?
|
||||
If enabled, the Manager answers on its plain HTTP port. Otherwise, while
|
||||
HTTPS is on, it redirects there to its HTTPS address. The status page never
|
||||
redirects.
|
||||
Description: Keep the status page and the Manager available over plain HTTP?
|
||||
Caddy always serves the status page and the Manager over HTTPS, for the
|
||||
router FQDN or, without one, for the host name and <host name>.local. If
|
||||
enabled, both also answer on their plain HTTP ports by name. Otherwise a
|
||||
request by name on those ports is redirected to HTTPS; the status page stays
|
||||
available over plain HTTP by address.
|
||||
|
||||
Template: linux-manager/local_id_mode
|
||||
Type: select
|
||||
|
||||
Reference in new issue
Block a user