titan-iac/services/nextcloud/configmap.yaml

65 lines
2.1 KiB
YAML
Raw Normal View History

2025-12-14 13:59:16 -03:00
# services/nextcloud/configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: nextcloud-config
namespace: nextcloud
data:
extra.config.php: |
<?php
$CONFIG = array_merge($CONFIG ?? array(), array (
2025-12-14 13:59:16 -03:00
'trusted_domains' =>
array (
0 => 'cloud.bstein.dev',
),
'overwritehost' => 'cloud.bstein.dev',
'overwriteprotocol' => 'https',
'overwrite.cli.url' => 'https://cloud.bstein.dev',
'default_phone_region' => 'US',
'mail_smtpmode' => 'smtp',
'mail_sendmailmode' => 'smtp',
'mail_smtphost' => 'mail.bstein.dev',
'mail_smtpport' => '587',
'mail_smtpsecure' => 'tls',
'mail_smtpauth' => true,
'mail_smtpauthtype' => 'LOGIN',
'mail_domain' => 'bstein.dev',
'mail_from_address' => 'no-reply',
2026-01-07 04:41:00 -03:00
'datadirectory' => '/var/www/html/data',
2026-01-06 21:51:19 -03:00
'apps_paths' =>
array (
0 =>
array (
'path' => '/var/www/html/apps',
'url' => '/apps',
'writable' => false,
),
1 =>
array (
'path' => '/var/www/html/custom_apps',
'url' => '/custom_apps',
'writable' => true,
),
),
2025-12-14 13:59:16 -03:00
'oidc_login_provider_url' => 'https://sso.bstein.dev/realms/atlas',
'oidc_login_client_id' => getenv('OIDC_CLIENT_ID'),
'oidc_login_client_secret' => getenv('OIDC_CLIENT_SECRET'),
2026-01-06 23:54:33 -03:00
'oidc_login_auto_redirect' => true,
2025-12-14 13:59:16 -03:00
'oidc_login_end_session_redirect' => true,
'oidc_login_button_text' => 'Login with Keycloak',
2026-01-06 23:54:33 -03:00
'oidc_login_hide_password_form' => true,
2025-12-14 13:59:16 -03:00
'oidc_login_attributes' =>
array (
'id' => 'preferred_username',
'mail' => 'email',
'name' => 'name',
),
'oidc_login_scope' => 'openid profile email',
'oidc_login_unique_id' => 'preferred_username',
'oidc_login_use_pkce' => true,
'oidc_login_disable_registration' => false,
2025-12-14 13:59:16 -03:00
'oidc_login_create_groups' => false,
# External storage for user data should be configured to Asteria via the External Storage app (admin UI),
# keeping the astreae PVC for app internals only.
));