initial ansible code
This commit is contained in:
60
roles/webserver/vars/main.yml
Normal file
60
roles/webserver/vars/main.yml
Normal file
@@ -0,0 +1,60 @@
|
||||
---
|
||||
# Volume
|
||||
hcloud_webserver_volume_name: "WEB"
|
||||
hcloud_webserver_volume_path: "/mnt/web"
|
||||
|
||||
# Dependency variables
|
||||
# php_old_version: "8.1"
|
||||
php_version: "8.1"
|
||||
php_modules:
|
||||
- "fpm"
|
||||
- "common"
|
||||
- "curl"
|
||||
- "gd"
|
||||
- "gmp"
|
||||
- "intl"
|
||||
- "mbstring"
|
||||
- "xml"
|
||||
- "zip"
|
||||
- "bz2"
|
||||
- "bcmath"
|
||||
- "imagick"
|
||||
- "smbclient"
|
||||
- "opcache"
|
||||
- "apcu"
|
||||
- "redis"
|
||||
- "pgsql"
|
||||
|
||||
# Main
|
||||
webserver_user: "www-data"
|
||||
webserver_group: "www-data"
|
||||
webserver_domain: "twirling.de"
|
||||
|
||||
# Nginx
|
||||
webserver_nginx_cert_path: "/etc/nginx/ssl/{{ webserver_domain }}"
|
||||
webserver_nginx_worker_processes: "auto"
|
||||
webserver_nginx_worker_rlimit_nofile: "100000"
|
||||
|
||||
# PHP
|
||||
php_fpm_ini_options:
|
||||
- {option: post_max_size, value: 512M}
|
||||
- {option: upload_max_filesize, value: 512M}
|
||||
- {option: memory_limit, value: 512M}
|
||||
- {section: opcache, option: opcache.enable, value: 1}
|
||||
- {section: opcache, option: opcache.interned_strings_buffer, value: 32}
|
||||
- {section: opcache, option: opcache.max_accelerated_files, value: 10000}
|
||||
- {section: opcache, option: opcache.memory_consumption, value: 256}
|
||||
- {section: opcache, option: opcache.save_comments, value: 1}
|
||||
- {section: opcache, option: opcache.revalidate_freq, value: 1}
|
||||
- {section: opcache, option: opcache.validate_timestamps, value: 0}
|
||||
- {section: redis, option: redis.session.locking_enabled, value: 1}
|
||||
- {section: redis, option: redis.session.lock_retries, value: -1}
|
||||
- {section: redis, option: redis.session.lock_wait_time, value: 10000}
|
||||
|
||||
php_fpm_pool_options:
|
||||
- {option: pm, value: dynamic}
|
||||
- {option: pm.max_children, value: 60}
|
||||
- {option: pm.start_servers, value: 20}
|
||||
- {option: pm.min_spare_servers, value: 10}
|
||||
- {option: pm.max_spare_servers, value: 30}
|
||||
- {option: pm.max_requests, value: 1000}
|
||||
Reference in New Issue
Block a user