From 377d11bf48dbfe19ba697a3d51c100f534c5bddd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Slavi=C5=A1a=20Are=C5=BEina?= <58952836+tremor021@users.noreply.github.com> Date: Mon, 24 Feb 2025 16:19:41 +0100 Subject: [PATCH] Fix: Authelia - Make user enter their domain manually (#2618) * Make user enter domain manually * Update json to remind user * Update authelia.json --------- Co-authored-by: CanbiZ <47820557+MickLesk@users.noreply.github.com> --- install/authelia-install.sh | 6 ++---- json/authelia.json | 7 ++++++- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/install/authelia-install.sh b/install/authelia-install.sh index 514894e2..2ea34521 100644 --- a/install/authelia-install.sh +++ b/install/authelia-install.sh @@ -26,15 +26,13 @@ wget -q "https://github.com/authelia/authelia/releases/download/${RELEASE}/authe $STD dpkg -i "authelia_${RELEASE}_amd64.deb" msg_ok "Install Authelia completed" +read -p "Enter your domain (ex. example.com): " DOMAIN + msg_info "Setting Authelia up" touch /etc/authelia/emails.txt JWT_SECRET=$(openssl rand -hex 64) SESSION_SECRET=$(openssl rand -hex 64) STORAGE_KEY=$(openssl rand -hex 64) -DOMAIN=$(hostname -d) -if [ -z "$DOMAIN" ]; then - DOMAIN=$(hostname) -fi cat </etc/authelia/users.yml users: authelia: diff --git a/json/authelia.json b/json/authelia.json index d8f2d1c0..95ed5dbf 100644 --- a/json/authelia.json +++ b/json/authelia.json @@ -30,5 +30,10 @@ "username": "authelia", "password": "authelia" }, - "notes": [] + "notes": [ + { + "text": "During installation, you will have to input your domain (ex. domain.com). Authelia will use auth.domain.com", + "type": "info" + } + ] }