From cd0dd91ab93653631904f2ea0e574ccde6d60339 Mon Sep 17 00:00:00 2001 From: Chia Date: Wed, 5 Aug 2026 14:48:00 +1200 Subject: add passkey, totp. --- config.control.example.json | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) (limited to 'config.control.example.json') diff --git a/config.control.example.json b/config.control.example.json index 2cad589..2b05636 100644 --- a/config.control.example.json +++ b/config.control.example.json @@ -1,6 +1,6 @@ { "server": { - "address": ":8080", + "address_env": "AIGW_SERVER_ADDRESS", "max_body_bytes": 16777216, "read_header_timeout_seconds": 10, "idle_timeout_seconds": 120, @@ -24,7 +24,23 @@ "token_env": "AIGW_ADMIN_TOKEN", "base_path": "/admin", "registration_enabled": true, - "session_ttl_hours": 12 + "session_ttl_hours": 12, + "public_url_env": "AIGW_PUBLIC_URL", + "mail": { + "enabled": true, + "from_name": "AIGW", + "from_address_env": "AIGW_SMTP_FROM_ADDRESS", + "smtp_address_env": "AIGW_SMTP_ADDRESS", + "smtp_username_env": "AIGW_SMTP_USERNAME", + "smtp_password_env": "AIGW_SMTP_PASSWORD", + "tls_mode": "none" + }, + "webauthn": { + "enabled": true, + "rp_display_name": "AIGW Console", + "rp_id_env": "AIGW_WEBAUTHN_RP_ID", + "origins_env": "AIGW_WEBAUTHN_ORIGINS" + } }, "billing": { "enabled": true, @@ -36,8 +52,8 @@ "enabled": true, "api_key_env": "AIGW_STRIPE_API_KEY", "webhook_secret_env": "AIGW_STRIPE_WEBHOOK_SECRET", - "success_url": "http://127.0.0.1:8080/admin/?topup=success", - "cancel_url": "http://127.0.0.1:8080/admin/?topup=cancel" + "success_url_env": "AIGW_STRIPE_SUCCESS_URL", + "cancel_url_env": "AIGW_STRIPE_CANCEL_URL" } }, "upstream_http": { -- cgit v1.2.3