roundcube/defaults/main.yml
meaz 1ed1adecc4 Upgrade Roundcube to 1.6.0 (#6)
Co-authored-by: meaz <meaz@disroot.org>
Reviewed-on: #6
Reviewed-by: muppeth <muppeth@no-reply@disroot.org>
2022-09-06 14:59:03 +00:00

181 lines
5.1 KiB
YAML

---
rcube_release_dir_path: '/var/www/roundcube_releases'
rcube_version: '1.6.0'
rcube_latest_path: '/var/www/roundcube_latest'
rcube_app_username: 'www-data'
rcube_app_group: 'www-data'
rcube_db_plugin: 'mysql'
rcube_db_username: 'roundcube'
rcube_db_passwd: 'changeme'
rcube_db_hostname: 'localhost'
rcube_db_name: 'roundcube'
rcube_smpt_log: 'false'
rcube_ldap_debug: 'false'
rcube_default_host: 'ssl://example.org:993'
rcube_security_proto: 'tls'
rcube_smtp_server: 'example.com'
rcube_smpt_port: '587'
rcube_smtp_user: '%u'
rcube_smtp_passwd: '%p'
rcube_support_url: 'https://roundcube.net/'
rcube_logdir: 'logs/'
rcube_temp_dir: 'temp/'
rcube_des_key: 'WxCpB7ZKU8x01erIxwO9wBGi' #exactly 24 chars
rcube_product_name: 'My webmail'
rcube_config_file: 'config.inc.php.dist'
rcube_default_lang: 'en_US'
rcube_spellcheck_engine: 'atd'
rcube_enable_spellcheck: 'false'
rcube_htmleditor: '1'
rcube_default_skin: 'elastic'
rcube_custom_themes: #add you custom theme
- name: ''
repo: ''
branch: ''
#PHP Vars
php_version: '8.0'
php_etc_path: '/etc/php'
install_php: 'true'
pool_listen: '/var/run/php/php{{ php_version }}-fpm.sock'
php_pkgs:
- php{{ php_version }}-fpm
- php{{ php_version }}-apcu
- php{{ php_version }}-bz2
- php{{ php_version }}-cgi
- php{{ php_version }}-cli
- php{{ php_version }}-common
- php{{ php_version }}-curl
- php{{ php_version }}-dev
- php{{ php_version }}-gd
- php{{ php_version }}-gmp
- php{{ php_version }}-igbinary
- php{{ php_version }}-interbase
- php{{ php_version }}-intl
- php{{ php_version }}-ldap
- php{{ php_version }}-mbstring
- php{{ php_version }}-memcached
- php{{ php_version }}-msgpack
- php{{ php_version }}-mysql
- php{{ php_version }}-opcache
- php{{ php_version }}-pspell
- php{{ php_version }}-readline
- php{{ php_version }}-xml
- php{{ php_version }}-xsl
- php{{ php_version }}-zip
#nginx
nginx_default_vhost: 'roundcube'
nginx_default_vhost_ssl: 'roundcube'
nginx_www_dir: '/var/www/'
nginx_vhosts:
- name: 'roundcube'
template: 'roundcube'
proto: 'http'
listen: '80'
root: 'roundcube_latest'
index: 'index.php'
use_access_log: 'true'
use_error_log: 'true'
nginx_error_log_level: 'warn'
fastcgi_pass: 'unix:{{ pool_listen }}'
upstream_params:
- 'fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;'
- 'fastcgi_index index.php;'
- 'include /etc/nginx/fastcgi_params;'
- 'fastcgi_pass unix:{{ pool_listen }};'
state: 'enable'
letsencrypt: 'false'
# MARIADB CONFIG
mariadb_root_password: 'changeme'
mariadb_default_config:
- name: 'client'
config:
- port = '{{ mariadb_client_port }}'
- socket = /var/run/mysqld/mysqld.sock
- default-character-set = utf8mb4
- name: 'mysqld_safe'
config:
- safe_socket = /var/run/mysqld/mysqld.sock
- safe_nice = 0
- name: 'mysqld'
config:
- user = mysql
- pid_file = /var/run/mysqld/mysqld.pid
- socket = /var/run/mysqld/mysqld.sock
- port = 3306
- basedir = /usr
- datadir = "{{mariadb_datadir}}"
- tmpdir = /tmp
- init_connect ='SET collation_connection = utf8mb4_unicode_ci'
- init_connect ='SET NAMES utf8mb4'
- character-set-server = utf8mb4
- collation-server = utf8mb4_unicode_ci
- skip_external_locking = True
- bind_address = {{ rcube_db_hostname }}
- key_buffer = 16M
- max_allowed_packet = 16M
- thread_stack = 192K
- thread_cache_size = 16
- myisam_recover = BACKUP
- max_connections = 1000
- query_cache_limit = 1M
- query_cache_size = 16M
- general_log_file = /var/log/mysql/mysql.log
- general_log = 0
- slow_query_log = 1
- slow_query_log_file = /var/log/mysql/mysql-slow.log
- long_query_time = 1
- log_queries_not_using_indexes = False
- default_storage_engine = InnoDB
- innodb_buffer_pool_size = 1024M
- innodb_log_file_size = 128M
- innodb_log_buffer_size = 8M
- innodb_thread_concurrency = 64
- innodb_read_io_threads = 16
- innodb_write_io_threads = 16
- innodb_file_per_table = 1
- innodb_open_files = 400
- innodb_io_capacity = 600
- innodb_lock_wait_timeout = 60
- innodb_flush_method = O_DIRECT
- innodb_doublewrite = 0
- innodb_use_native_aio = 0
- innodb_large_prefix = on
- server_id = 1
- log_bin = /var/log/mysql/mysql-bin.log
- expire_logs_days = 2
- max_binlog_size = 10M
- binlog_format = row
- query_cache_type = 1
- query_cache_limit = 256K
- query_cache_min_res_unit = 2k
- query_cache_size = 300M
- tmp_table_size= 64M
- max_heap_table_size= 64M
- name: 'mysqldump'
config:
- quick
#- quotes-names
- max_allowed_packet = 16M
- name: 'isamchk'
config:
- key_buffer = 16M
mariadb_databases:
- name: '{{ rcube_db_name }}'
collation: 'utf8mb4_unicode_ci'
encoding: 'utf8mb4'
mariadb_users:
- name: '{{ rcube_db_username }}'
host: '{{ rcube_db_hostname }}'
password: '{{ rcube_db_passwd }}'
priv: '{{ rcube_db_name }}.*:ALL'