cleanup nextcloud role

This commit is contained in:
ace 2021-02-12 17:03:39 +03:00
parent 5d916e2223
commit a1210f7406
No known key found for this signature in database
GPG Key ID: 2E47CC17BA7F8CF0

View File

@ -60,27 +60,6 @@ nextcloud_default_values:
authtype: LOGIN authtype: LOGIN
name: "{{ nexcloud_mail_user | default('nextcloud') }}" name: "{{ nexcloud_mail_user | default('nextcloud') }}"
password: "{{ nextcloud_mail_pass | default(nextcloud_mail_password) }}" password: "{{ nextcloud_mail_pass | default(nextcloud_mail_password) }}"
# PHP Configuration files
# Will be injected in /usr/local/etc/php/conf.d
phpConfigs: {}
# Default config files
# IMPORTANT: Will be used only if you put extra configs, otherwise default will come from nextcloud itself
# Default confgurations can be found here: https://github.com/nextcloud/docker/tree/master/16.0/apache/config
defaultConfigs:
# To protect /var/www/html/config
.htaccess: true
# Redis default configuration
redis.config.php: false
# Apache configuration for rewrite urls
apache-pretty-urls.config.php: true
# Define APCu as local cache
apcu.config.php: true
# Apps directory configs
apps.config.php: true
# Used for auto configure database
autoconfig.php: true
# SMTP default configuration
smtp.config.php: true
# Extra config files created in /var/www/html/config/ # Extra config files created in /var/www/html/config/
# ref: https://docs.nextcloud.com/server/15/admin_manual/configuration_server/config_sample_php_parameters.html#multiple-config-php-file # ref: https://docs.nextcloud.com/server/15/admin_manual/configuration_server/config_sample_php_parameters.html#multiple-config-php-file
configs: configs:
@ -89,19 +68,6 @@ nextcloud_default_values:
$CONFIG = array ( $CONFIG = array (
"mail_smtptimeout" => 60, "mail_smtptimeout" => 60,
); );
fix.redis.config.php: |-
<?php
if (getenv('REDIS_HOST')) {
$CONFIG = array (
'memcache.distributed' => '\OC\Memcache\Redis',
'memcache.locking' => '\OC\Memcache\Redis',
'redis' => array(
'host' => getenv('REDIS_HOST'),
'port' => getenv('REDIS_HOST_PORT') ?: 6379,
'password' => getenv('REDIS_HOST_PASSWORD'),
),
);
}
fix.config.php: |- fix.config.php: |-
<?php <?php
$CONFIG = array ( $CONFIG = array (
@ -129,8 +95,7 @@ nextcloud_default_values:
# Enable Redis # Enable Redis
redis: redis:
enabled: true enabled: true
usePassword: true usePassword: false
password: "{{ nextcloud_pass | default(nextcloud_password) | hash('md5') }}"
cluster: cluster:
enabled: false enabled: false
## External database configuration ## External database configuration