crafty-controller: seed felhom-generated admin password (gokapi pattern) instead of Crafty's random one; app-page card reads default.json
This commit is contained in:
@@ -32,6 +32,13 @@ deploy_fields:
|
||||
locked_after_deploy: true
|
||||
description: "Az alkalmazás aldomainje"
|
||||
|
||||
- env_var: CRAFTY_PASSWORD
|
||||
label: "Admin jelszó"
|
||||
type: password
|
||||
generate: password:24
|
||||
locked_after_deploy: true
|
||||
description: "A Crafty admin felhasználó (admin) kezdeti jelszava — ezzel tudsz belépni a kezelőfelületre"
|
||||
|
||||
# --- App info (info page content) ---
|
||||
app_info:
|
||||
tagline: "Minecraft szerver kezelő - hozd létre a saját világodat"
|
||||
@@ -61,13 +68,13 @@ healthcheck:
|
||||
- type: tcp
|
||||
port: 8443
|
||||
|
||||
# --- Initial auto-generated login ---
|
||||
# Crafty writes a random admin password to this file on first boot (its built-in default is rejected
|
||||
# as "too short"). The controller reads + parses it live and shows it on the app page so customers
|
||||
# don't have to dig through the container logs.
|
||||
# --- Initial login (felhom-seeded) ---
|
||||
# The admin password is seeded into default.json by the compose entrypoint (CRAFTY_PASSWORD deploy
|
||||
# field). The controller reads it back from default.json and shows it on the app page under "Kezdeti
|
||||
# belépési adatok" — same value the customer set at deploy time.
|
||||
initial_credentials:
|
||||
file: /crafty/app/config/default-creds.txt
|
||||
file: /crafty/app/config/default.json
|
||||
format: json
|
||||
username_key: username
|
||||
password_key: password
|
||||
note: "Kezdeti, automatikusan generált jelszó. Az első belépés után változtasd meg a Crafty felületén (ez a fájl a régi jelszót mutatja, nem itt módosítható)."
|
||||
note: "Kezdeti admin jelszó (a telepítéskor beállított). Az első belépés után változtasd meg a Crafty felületén — ez a kártya továbbra is a kezdeti jelszót mutatja."
|
||||
|
||||
Reference in New Issue
Block a user