add: nextcloud php config

This commit is contained in:
2024-12-23 12:23:58 +00:00
parent 3c3693d286
commit dcdb52c047
4 changed files with 62 additions and 0 deletions

View File

@@ -11,6 +11,12 @@ code_server_password: HISTORY_PURGED_SECRET
nextcloud_ssl_enabled: false nextcloud_ssl_enabled: false
nextcloud_cert_name: nextcloud.atlantishq.de nextcloud_cert_name: nextcloud.atlantishq.de
nextcloud_instance_id: HISTORY_PURGED_SECRET
nextcloud_password_salt: HISTORY_PURGED_SECRET
nextcloud_instance_secret: HISTORY_PURGED_SECRET
nextcloud_master_domain: nextcloud.atlantishq.de
nextcloud_db_password: HISTORY_PURGED_SECRET
tor_bridge_name: HISTORY_PURGED_SECRET tor_bridge_name: HISTORY_PURGED_SECRET
tor_bridge_email: nobody@HISTORY_PURGED_SECRET.com tor_bridge_email: nobody@HISTORY_PURGED_SECRET.com
@@ -93,6 +99,7 @@ opensearch_manager_nodes:
extra_root_keys: extra_root_keys:
- "# no extra keys" - "# no extra keys"
smtp_user_domain: atlantishq.de
smtp_internal_host: mail.atlantishq.de smtp_internal_host: mail.atlantishq.de
smtp_internal_host_port: 8025 smtp_internal_host_port: 8025
smtp_service_user: noreply smtp_service_user: noreply

View File

@@ -1,4 +1,9 @@
--- ---
nextcloud_nginx_ssl_enabled: false nextcloud_nginx_ssl_enabled: false
nextcloud_instance_id: HISTORY_PURGED_SECRET
nextcloud_password_salt: HISTORY_PURGED_SECRET
nextcloud_instance_secret: HISTORY_PURGED_SECRET
nextcloud_master_domain: ths.atlantishq.de
nextcloud_db_password: HISTORY_PURGED_SECRET
checks : checks :
- { user : sheppy, name : irc, cmd : ""} - { user : sheppy, name : irc, cmd : ""}

View File

@@ -11,6 +11,13 @@
job: /usr/bin/sudo -u www-data /usr/bin/php -f /var/www/nextcloud/cron.php job: /usr/bin/sudo -u www-data /usr/bin/php -f /var/www/nextcloud/cron.php
user: root user: root
- name: Template nextcloud php conf
template:
src: "nextcloud-config.php"
dest: "/var/www/nextcloud/config/config.php"
owner: www-data
group: www-data
- name: Template nginx base conf - name: Template nginx base conf
template: template:
src: "{{ item }}" src: "{{ item }}"

View File

@@ -0,0 +1,43 @@
<?php
$CONFIG = array (
'instanceid' => '{{ nextcloud_instance_id }}',
'passwordsalt' => '{{ nextcloud_password_salt }}',
'secret' => '{{ nextcloud_instance_secret }}',
'trusted_domains' =>
array (
0 => '{{ nextcloud_master_domain }}',
),
'datadirectory' => '/var/www/nextcloud/data',
'dbtype' => 'pgsql',
'version' => '30.0.4.1',
'overwrite.cli.url' => 'https://{{ nextcloud_master_domain }}',
'dbname' => 'nextcloud',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'dbuser' => 'nextcloud',
'dbpassword' => '{{ nextcloud_db_password }}',
'installed' => true,
'mail_domain' => '{{ smtp_user_domain }}',
'mail_from_address' => 'noreply',
'mail_smtpmode' => 'smtp',
'mail_sendmailmode' => 'smtp',
'mail_smtphost' => '{{ smtp_internal_host }}',
'mail_smtpport' => '{{ smtp_internal_host_port }}',
'default_phone_region' => 'DE',
'app_install_overwrite' =>
array (
0 => 'twofactor_rcdevsopenotp',
1 => 'calendar',
),
'maintenance' => false,
'theme' => '',
'loglevel' => 0,
'encryption.legacy_format_support' => false,
'encryption.key_storage_migrated' => false,
'mail_smtpauth' => 1,
'mail_smtpname' => '{{ smtp_service_user }}@{{ smtp_user_domain }}',
'mail_smtppassword' => '{{ smtp_service_pass }}',
'maintenance_window_start' => 100,
'memcache.local' => '\OC\Memcache\APCu',
);