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
|
2026-01-07 09:20:22 -03:00
|
|
|
$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',
|
2026-01-15 03:58:03 -03:00
|
|
|
'mail_smtphost' => 'mailu-front.mailu-mailserver.svc.cluster.local',
|
2025-12-14 13:59:16 -03:00
|
|
|
'mail_smtpport' => '587',
|
|
|
|
|
'mail_smtpsecure' => 'tls',
|
|
|
|
|
'mail_smtpauth' => true,
|
|
|
|
|
'mail_smtpauthtype' => 'LOGIN',
|
|
|
|
|
'mail_domain' => 'bstein.dev',
|
2026-01-14 10:07:31 -03:00
|
|
|
'mail_from_address' => 'no-reply-nextcloud',
|
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,
|
2026-01-07 00:12:21 -03:00
|
|
|
'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.
|
2026-01-07 09:20:22 -03:00
|
|
|
));
|