sunetdrive/templates/application/config.php.erb

201 lines
6.4 KiB
Plaintext
Raw Normal View History

2023-02-13 09:44:56 +00:00
<?php
$CONFIG = array (
'memcache.local' => '\\OC\\Memcache\\APCu',
'appstoreenabled' => false,
'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,
),
),
'memcache.distributed' => '\\OC\\Memcache\\Redis',
'memcache.locking' => '\\OC\\Memcache\\Redis',
<% if @location == 'sunet-test' -%>
'redis.cluster' => [
'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'
],
'timeout' => 1.1,
'read_timeout' => 0.0,
'password' => '<%= @redis_cluster_password %>',
'failover_mode' => \RedisCluster::FAILOVER_ERROR
],
<% elsif @environment == 'test' && ! @is_multinode && @location != 'gss-test' -%>
'redis.cluster' => [
'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'
],
'timeout' => 1.1,
'read_timeout' => 0.0,
'password' => '<%= @redis_cluster_password %>',
'failover_mode' => \RedisCluster::FAILOVER_ERROR
],
<% elsif @environment == 'prod' && ! @is_multinode && @location != 'gss-prod' -%>
'redis.cluster' => [
'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'
],
'timeout' => 1.1,
'read_timeout' => 0.0,
'password' => '<%= @redis_cluster_password %>',
'failover_mode' => \RedisCluster::FAILOVER_ERROR
],
<% else -%>
'redis' =>
array (
'host' => '<%= @redis_host %>',
'password' => '<%= @redis_host_password %>',
'port' => 6379,
),
<% end -%>
'forcessl' => true,
'overwriteprotocol' => 'https',
'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' => '',
'objectPrefix' => 'urn:oid:',
'autocreate' => false,
'use_ssl' => true,
'use_path_style' => true,
'legacy_auth' => false,
),
),
'csrf.disabled' => true,
'passwordsalt' => '<%= @passwordsalt %>',
'secret' => '<%= @secret %>',
'trusted_domains' =>
array (
<%- index = 0 -%>
<%- @trusted_domains.each do |item| -%>
<%= index %> => '<%= item %>',<% index += 1 %>
<%- end -%>
),
<%- unless @trusted_proxies.empty? -%>
'trusted_proxies' =>
array (
<%- index = 0 -%>
<%- @trusted_proxies.each do |item| -%>
<%= index %> => '<%= item %>',
<%- index += 1 -%>
<%- end -%>
),
<%- end -%>
'config_is_read_only' => true,
'datadirectory' => '/var/www/html/data',
'dbhost' => '<%= @dbhost %>',
'dbname' => 'nextcloud',
'dbpassword' => '<%= @mysql_user_password %>',
'dbport' => '3306',
'dbtableprefix' => 'oc_',
'dbtype' => 'mysql',
'dbuser' => 'nextcloud',
'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 %>',
'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',
'installed' => true,
'instanceid' => '<%= @instanceid %>',
'log_type' => 'file',
'loglevel' => 0,
'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',
'mysql.utf8mb4' => true,
'overwritehost' => '<%= @site_name %>',
'overwrite.cli.url' => 'https://<%= @site_name %>',
'templatedirectory' => '',
'skeletondirectory' => '<%= @skeletondirectory %>',
'twofactor_enforced' => 'true',
'twofactor_enforced_groups' =>
array (
0 => 'admin',
<%- index = 1 -%>
<%- @twofactor_enforced_groups.each do |item| -%>
<%= index %> => '<%= item %>',
<%- index += 1 -%>
<%- end -%>
),
'twofactor_enforced_excluded_groups' =>
array (
<%- index = 0 -%>
<%- @twofactor_enforced_excluded_groups.each do |item| -%>
<%= index %> => '<%= item %>',
<%- index += 1 -%>
<%- end -%>
),
'version' => '<%= @nextcloud_version_string %>',
'app_install_overwrite' =>
array (
0 => 'globalsiteselector',
),
);