Skip to content

Commit 377d11b

Browse files
tremor021MickLesk
andauthored
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 <[email protected]>
1 parent 42ad683 commit 377d11b

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

install/authelia-install.sh

+2-4
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,13 @@ wget -q "https://github.com/authelia/authelia/releases/download/${RELEASE}/authe
2626
$STD dpkg -i "authelia_${RELEASE}_amd64.deb"
2727
msg_ok "Install Authelia completed"
2828

29+
read -p "Enter your domain (ex. example.com): " DOMAIN
30+
2931
msg_info "Setting Authelia up"
3032
touch /etc/authelia/emails.txt
3133
JWT_SECRET=$(openssl rand -hex 64)
3234
SESSION_SECRET=$(openssl rand -hex 64)
3335
STORAGE_KEY=$(openssl rand -hex 64)
34-
DOMAIN=$(hostname -d)
35-
if [ -z "$DOMAIN" ]; then
36-
DOMAIN=$(hostname)
37-
fi
3836
cat <<EOF >/etc/authelia/users.yml
3937
users:
4038
authelia:

json/authelia.json

+6-1
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,10 @@
3030
"username": "authelia",
3131
"password": "authelia"
3232
},
33-
"notes": []
33+
"notes": [
34+
{
35+
"text": "During installation, you will have to input your domain (ex. domain.com). Authelia will use auth.domain.com",
36+
"type": "info"
37+
}
38+
]
3439
}

0 commit comments

Comments
 (0)