feat: zentrale selfhost-dienste bereitstellen

This commit is contained in:
2026-08-02 16:34:10 +02:00
parent d3ad53bcf0
commit 8b8e0c97d3
30 changed files with 1818 additions and 74 deletions

View File

@@ -325,6 +325,10 @@ write_env() {
local dokubox_secure="${34}"
local dokubox_user="${35}"
local dokubox_password="${36}"
local central_services_enabled="${37}"
local central_services_url="${38}"
local central_instance_id="${39}"
local central_instance_secret="${40}"
cat >"$ENV_FILE" <<EOF
# FEDEO Selfhosting
@@ -384,6 +388,10 @@ DOKUBOX_IMAP_PASSWORD=$(env_quote "$dokubox_password")
OPENAI_API_KEY=$(env_quote "$openai_key")
STIRLING_API_KEY=$(env_quote "$stirling_key")
FEDEO_CENTRAL_SERVICES_ENABLED=$(env_quote "$central_services_enabled")
PUSH_SERVER_URL=$(env_quote "$central_services_url")
PUSH_SERVER_INSTANCE_ID=$(env_quote "$central_instance_id")
PUSH_SERVER_SECRET=$(env_quote "$central_instance_secret")
NUXT_PUBLIC_PDF_LICENSE=$(env_quote "$pdf_license")
NODE_EXPORTER_URL=$(env_quote "http://node-exporter:9100")
@@ -561,6 +569,10 @@ main() {
local dokubox_secure="true"
local dokubox_user="dokubox@example.com"
local dokubox_password="change-this-imap-password"
local central_services_enabled="false"
local central_services_url="https://services.fedeo.de"
local central_instance_id=""
local central_instance_secret=""
if [[ "$MODE" == "advanced" ]]; then
echo
@@ -584,6 +596,12 @@ main() {
echo "Advanced: Banking und Dokubox"
gocardless_secret_id="$(prompt "GoCardless Secret ID" "$gocardless_secret_id")"
gocardless_secret_key="$(prompt_secret "GoCardless Secret Key" "$gocardless_secret_key")"
central_services_enabled="$(prompt "Zentrale FEDEO-Dienste verwenden true/false" "$central_services_enabled")"
if [[ "$central_services_enabled" == "true" ]]; then
central_services_url="$(prompt "Zentrale FEDEO-Service-URL" "$central_services_url")"
central_instance_id="$(prompt "FEDEO Instanz-ID" "$central_instance_id")"
central_instance_secret="$(prompt_secret "FEDEO Instanzschlüssel" "$central_instance_secret")"
fi
dokubox_host="$(prompt "Dokubox IMAP Host" "$dokubox_host")"
dokubox_port="$(prompt "Dokubox IMAP Port" "$dokubox_port")"
dokubox_secure="$(prompt "Dokubox IMAP Secure true/false" "$dokubox_secure")"
@@ -600,7 +618,9 @@ main() {
"$mailer_ssl" "$mailer_user" "$mailer_pass" "$mailer_from" "$web_push_public" \
"$web_push_private" "$pdf_license" "$openai_key" "$stirling_key" \
"$gocardless_secret_id" "$gocardless_secret_key" "$dokubox_host" \
"$dokubox_port" "$dokubox_secure" "$dokubox_user" "$dokubox_password"
"$dokubox_port" "$dokubox_secure" "$dokubox_user" "$dokubox_password" \
"$central_services_enabled" "$central_services_url" "$central_instance_id" \
"$central_instance_secret"
prepare_directories