2023-02-13 09:44:56 +00:00
|
|
|
<?php
|
|
|
|
$CONFIG = array (
|
2023-04-04 12:29:20 +00:00
|
|
|
'app_install_overwrite' =>
|
|
|
|
array (
|
|
|
|
0 => 'globalsiteselector',
|
|
|
|
),
|
|
|
|
|
2023-02-13 09:44:56 +00: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,
|
|
|
|
),
|
|
|
|
),
|
2023-04-04 12:29:20 +00:00
|
|
|
'appstoreenabled' => false,
|
|
|
|
'config_is_read_only' => true,
|
|
|
|
'csrf.disabled' => true,
|
|
|
|
'datadirectory' => '/var/www/html/data',
|
2024-04-17 14:38:09 +00:00
|
|
|
'davstorage.request_timeout' => 86401,
|
2024-04-24 18:44:41 +00:00
|
|
|
<%- if @hostnet -%>
|
|
|
|
'dbhost' => '127.0.0.1',
|
|
|
|
<%- else -%>
|
2023-04-04 12:29:20 +00:00
|
|
|
'dbhost' => '<%= @dbhost %>',
|
2024-04-24 18:44:41 +00:00
|
|
|
<%- end -%>
|
2023-04-04 12:29:20 +00:00
|
|
|
'dbname' => '<%= @dbname %>',
|
|
|
|
'dbpassword' => '<%= @mysql_user_password %>',
|
|
|
|
'dbport' => '3306',
|
|
|
|
'dbtableprefix' => 'oc_',
|
|
|
|
'dbtype' => 'mysql',
|
|
|
|
'dbuser' => '<%= @dbuser %>',
|
|
|
|
'default_phone_region' => 'SE',
|
|
|
|
'drive_email_template_text_left' => '<%= @drive_email_template_text_left %>',
|
|
|
|
'drive_email_template_plain_text_left' => '<%= @drive_email_template_plain_text_left %>',
|
|
|
|
'drive_email_template_url_left' => '<%= @drive_email_template_url_left %>',
|
2023-04-27 14:44:06 +00:00
|
|
|
<% if @location == 'sunet-test' -%>
|
|
|
|
'filelocking.debug' => true,
|
|
|
|
<% end -%>
|
2024-04-22 09:08:41 +00:00
|
|
|
'files_external_allow_create_new_local' => false,
|
2023-04-04 12:29:20 +00:00
|
|
|
'forcessl' => true,
|
|
|
|
'gs.enabled' => '<%= @gs_enabled %>',
|
|
|
|
'gs.federation' => '<%= @gs_federation %>',
|
|
|
|
'gs.trustedHosts' => ['*.sunet.se'],
|
|
|
|
'gss.discovery.manual.mapping.file' => '/var/www/html/mappingfile.json',
|
|
|
|
'gss.discovery.manual.mapping.parameter' => 'urn:oid:1.3.6.1.4.1.5923.1.1.1.6',
|
|
|
|
'gss.discovery.manual.mapping.regex' => true,
|
|
|
|
'gss.jwt.key' => '<%= @gss_jwt_key %>',
|
|
|
|
'gss.master.admin' =>
|
|
|
|
array (
|
|
|
|
<%- index = 0 -%>
|
|
|
|
<%- @gss_master_admin.each do |item| -%>
|
|
|
|
<%= index %> => '<%= item %>',
|
|
|
|
<%- index += 1 -%>
|
|
|
|
<%- end -%>
|
|
|
|
),
|
|
|
|
'gss.master.url' => '<%= @gss_master_url %>',
|
|
|
|
'gss.mode' => '<%= @gss_mode %>',
|
|
|
|
'gss.user.discovery.module' => '\\OCA\\GlobalSiteSelector\\UserDiscoveryModules\\ManualUserMapping',
|
2023-07-06 12:50:47 +00:00
|
|
|
'gss.username_format' => 'sanitize',
|
2023-04-04 12:29:20 +00:00
|
|
|
'installed' => true,
|
|
|
|
'instanceid' => '<%= @instanceid %>',
|
|
|
|
'integrity.check.disabled' => true,
|
|
|
|
'log_type' => 'file',
|
2024-06-28 08:57:13 +00:00
|
|
|
'loglevel' => 1,
|
2023-04-04 12:29:20 +00:00
|
|
|
'lookup_server' => '<%= @lookup_server %>',
|
|
|
|
'mail_domain' => '<%= @mail_domain %>',
|
|
|
|
'mail_from_address' => '<%= @mail_from_address %>',
|
|
|
|
'mail_sendmailmode' => 'smtp',
|
|
|
|
'mail_smtpauth' => 1,
|
|
|
|
'mail_smtpauthtype' => 'LOGIN',
|
|
|
|
'mail_smtphost' => '<%= @mail_smtphost %>',
|
|
|
|
'mail_smtpmode' => 'smtp',
|
|
|
|
'mail_smtpname' => '<%= @smtpuser %>',
|
|
|
|
'mail_smtppassword' => '<%= @smtppassword %>',
|
|
|
|
'mail_smtpport' => '587',
|
|
|
|
'mail_smtpsecure' => 'tls',
|
|
|
|
'mail_template_class' => 'OCA\DriveEmailTemplate\EMailTemplate',
|
2023-02-13 09:44:56 +00:00
|
|
|
'memcache.distributed' => '\\OC\\Memcache\\Redis',
|
2023-04-04 12:29:20 +00:00
|
|
|
'memcache.local' => '\\OC\\Memcache\\APCu',
|
2023-02-13 09:44:56 +00:00
|
|
|
'memcache.locking' => '\\OC\\Memcache\\Redis',
|
2023-04-04 12:29:20 +00:00
|
|
|
'mysql.utf8mb4' => true,
|
|
|
|
'objectstore' =>
|
|
|
|
array (
|
|
|
|
'class' => '\\OC\\Files\\ObjectStore\\S3',
|
|
|
|
'arguments' =>
|
|
|
|
array (
|
|
|
|
'bucket' => '<%= @s3_bucket %>',
|
|
|
|
'key' => '<%= @s3_key %>',
|
|
|
|
'secret' => '<%= @s3_secret %>',
|
|
|
|
'region' => 'us-east-1',
|
|
|
|
'hostname' => '<%= @s3_host %>',
|
|
|
|
'port' => '',
|
2024-05-08 11:31:22 +00:00
|
|
|
'useMultipartCopy' => false,
|
2023-04-04 12:29:20 +00:00
|
|
|
'objectPrefix' => 'urn:oid:',
|
|
|
|
'autocreate' => false,
|
|
|
|
'use_ssl' => true,
|
|
|
|
'use_path_style' => true,
|
|
|
|
'legacy_auth' => false,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
'overwrite.cli.url' => 'https://<%= @site_name %>',
|
|
|
|
'overwritehost' => '<%= @site_name %>',
|
|
|
|
'overwriteprotocol' => 'https',
|
|
|
|
'passwordsalt' => '<%= @passwordsalt %>',
|
2023-02-15 11:04:05 +00:00
|
|
|
<% if @location == 'gss-test' -%>
|
2023-02-13 09:44:56 +00:00
|
|
|
'redis.cluster' => [
|
2023-04-04 12:29:20 +00:00
|
|
|
'failover_mode' => \RedisCluster::FAILOVER_ERROR,
|
|
|
|
'password' => '<%= @redis_cluster_password %>',
|
|
|
|
'read_timeout' => 0.0,
|
2023-02-13 09:44:56 +00:00
|
|
|
'seeds' => [
|
|
|
|
'redis1.drive.test.sunet.se:6379',
|
|
|
|
'redis2.drive.test.sunet.se:6379',
|
|
|
|
'redis3.drive.test.sunet.se:6379',
|
|
|
|
'redis1.drive.test.sunet.se:6380',
|
|
|
|
'redis2.drive.test.sunet.se:6380',
|
|
|
|
'redis3.drive.test.sunet.se:6380',
|
|
|
|
'redis1.drive.test.sunet.se:6381',
|
|
|
|
'redis2.drive.test.sunet.se:6381',
|
|
|
|
'redis3.drive.test.sunet.se:6381'
|
|
|
|
],
|
2023-04-04 12:29:20 +00:00
|
|
|
'timeout' => 1.1
|
2023-02-13 09:44:56 +00:00
|
|
|
],
|
2024-05-21 15:11:43 +00:00
|
|
|
<% elsif @location == 'gss-prod' -%>
|
|
|
|
'redis.cluster' => [
|
|
|
|
'failover_mode' => \RedisCluster::FAILOVER_ERROR,
|
|
|
|
'password' => '<%= @redis_cluster_password %>',
|
|
|
|
'read_timeout' => 0.0,
|
|
|
|
'seeds' => [
|
|
|
|
'redis1.drive.sunet.se:6379',
|
|
|
|
'redis2.drive.sunet.se:6379',
|
|
|
|
'redis3.drive.sunet.se:6379',
|
|
|
|
'redis1.drive.sunet.se:6380',
|
|
|
|
'redis2.drive.sunet.se:6380',
|
|
|
|
'redis3.drive.sunet.se:6380',
|
|
|
|
'redis1.drive.sunet.se:6381',
|
|
|
|
'redis2.drive.sunet.se:6381',
|
|
|
|
'redis3.drive.sunet.se:6381'
|
|
|
|
],
|
|
|
|
'timeout' => 1.1
|
|
|
|
],
|
2023-02-15 11:04:05 +00:00
|
|
|
<% elsif @environment == 'test' && ! @is_multinode -%>
|
2023-02-13 09:44:56 +00:00
|
|
|
'redis.cluster' => [
|
2023-04-04 12:29:20 +00:00
|
|
|
'failover_mode' => \RedisCluster::FAILOVER_ERROR,
|
|
|
|
'password' => '<%= @redis_cluster_password %>',
|
|
|
|
'read_timeout' => 0.0,
|
2023-02-13 09:44:56 +00:00
|
|
|
'seeds' => [
|
|
|
|
'redis1.<%= @customer %>.drive.test.sunet.se:6379',
|
|
|
|
'redis2.<%= @customer %>.drive.test.sunet.se:6379',
|
|
|
|
'redis3.<%= @customer %>.drive.test.sunet.se:6379',
|
|
|
|
'redis1.<%= @customer %>.drive.test.sunet.se:6380',
|
|
|
|
'redis2.<%= @customer %>.drive.test.sunet.se:6380',
|
|
|
|
'redis3.<%= @customer %>.drive.test.sunet.se:6380',
|
|
|
|
'redis1.<%= @customer %>.drive.test.sunet.se:6381',
|
|
|
|
'redis2.<%= @customer %>.drive.test.sunet.se:6381',
|
|
|
|
'redis3.<%= @customer %>.drive.test.sunet.se:6381'
|
|
|
|
],
|
2023-04-04 12:29:20 +00:00
|
|
|
'timeout' => 1.1
|
2023-02-13 09:44:56 +00:00
|
|
|
],
|
|
|
|
<% elsif @environment == 'prod' && ! @is_multinode && @location != 'gss-prod' -%>
|
|
|
|
'redis.cluster' => [
|
2023-04-04 12:29:20 +00:00
|
|
|
'failover_mode' => \RedisCluster::FAILOVER_ERROR,
|
|
|
|
'password' => '<%= @redis_cluster_password %>',
|
|
|
|
'read_timeout' => 0.0,
|
2023-02-13 09:44:56 +00:00
|
|
|
'seeds' => [
|
|
|
|
'redis1.<%= @customer %>.drive.sunet.se:6379',
|
|
|
|
'redis2.<%= @customer %>.drive.sunet.se:6379',
|
|
|
|
'redis3.<%= @customer %>.drive.sunet.se:6379',
|
|
|
|
'redis1.<%= @customer %>.drive.sunet.se:6380',
|
|
|
|
'redis2.<%= @customer %>.drive.sunet.se:6380',
|
|
|
|
'redis3.<%= @customer %>.drive.sunet.se:6380',
|
|
|
|
'redis1.<%= @customer %>.drive.sunet.se:6381',
|
|
|
|
'redis2.<%= @customer %>.drive.sunet.se:6381',
|
|
|
|
'redis3.<%= @customer %>.drive.sunet.se:6381'
|
|
|
|
],
|
2023-04-04 12:29:20 +00:00
|
|
|
'timeout' => 1.1
|
2023-02-13 09:44:56 +00:00
|
|
|
],
|
|
|
|
<% else -%>
|
|
|
|
'redis' =>
|
|
|
|
array (
|
2023-04-04 12:29:20 +00:00
|
|
|
'host' => '<%= @redis_host %>',
|
|
|
|
'password' => '<%= @redis_host_password %>',
|
|
|
|
'port' => 6379,
|
2023-02-13 09:44:56 +00:00
|
|
|
),
|
2023-04-04 12:29:20 +00:00
|
|
|
<% end -%>
|
2023-02-13 09:44:56 +00:00
|
|
|
'secret' => '<%= @secret %>',
|
2023-04-04 12:29:20 +00:00
|
|
|
'skeletondirectory' => '<%= @skeletondirectory %>',
|
|
|
|
'templatedirectory' => '',
|
2023-02-13 09:44:56 +00:00
|
|
|
'trusted_domains' =>
|
2023-04-04 12:29:20 +00:00
|
|
|
array (
|
|
|
|
<%- index = 0 -%>
|
|
|
|
<%- @trusted_domains.each do |item| -%>
|
|
|
|
<%= index %> => '<%= item %>',<% index += 1 %>
|
|
|
|
<%- end -%>
|
|
|
|
),
|
2023-02-13 09:44:56 +00:00
|
|
|
<%- unless @trusted_proxies.empty? -%>
|
|
|
|
'trusted_proxies' =>
|
2023-04-04 12:29:20 +00:00
|
|
|
array (
|
|
|
|
<%- index = 0 -%>
|
|
|
|
<%- @trusted_proxies.each do |item| -%>
|
|
|
|
<%= index %> => '<%= item %>',
|
|
|
|
<%- index += 1 -%>
|
|
|
|
<%- end -%>
|
|
|
|
),
|
2023-02-13 09:44:56 +00:00
|
|
|
<%- end -%>
|
|
|
|
'twofactor_enforced' => 'true',
|
|
|
|
'twofactor_enforced_groups' =>
|
2023-04-04 12:29:20 +00:00
|
|
|
array (
|
|
|
|
0 => 'admin',
|
2023-12-17 22:18:02 +00:00
|
|
|
1 => 'forcemfa',
|
|
|
|
<%- index = 2 -%>
|
2023-04-04 12:29:20 +00:00
|
|
|
<%- @twofactor_enforced_groups.each do |item| -%>
|
|
|
|
<%= index %> => '<%= item %>',
|
|
|
|
<%- index += 1 -%>
|
|
|
|
<%- end -%>
|
|
|
|
),
|
2023-02-13 09:44:56 +00:00
|
|
|
'twofactor_enforced_excluded_groups' =>
|
2023-04-04 12:29:20 +00:00
|
|
|
array (
|
|
|
|
<%- index = 0 -%>
|
|
|
|
<%- @twofactor_enforced_excluded_groups.each do |item| -%>
|
|
|
|
<%= index %> => '<%= item %>',
|
|
|
|
<%- index += 1 -%>
|
|
|
|
<%- end -%>
|
|
|
|
),
|
|
|
|
'updatechecker' => false,
|
2023-02-13 09:44:56 +00:00
|
|
|
'version' => '<%= @nextcloud_version_string %>',
|
|
|
|
);
|