main.yml 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. ---
  2. # defaults file for nextcloud
  3. NEXTCLOUD_VERSION: 24.0.5 # overload from the role
  4. NEXTCLOUD_TARBALL: "nextcloud-{{ NEXTCLOUD_VERSION }}.tar.bz2"
  5. NEXTCLOUD_URL: "https://download.nextcloud.com/server/releases/{{ NEXTCLOUD_TARBALL }}"
  6. NEXTCLOUD_GPG: "https://nextcloud.com/nextcloud.asc"
  7. GPG_FINGERPRINT: "28806A878AE423A28372792ED75899B9A724937A"
  8. # [PHP CONFIG AND EXTENSIONS]
  9. php_version: 8.1
  10. PHP_POST_LIMIT: 50G
  11. PHP_UPLOAD_LIMIT: 25G
  12. PHP_MAX_FILE: 200
  13. PHP_MAX_TIME: 3600
  14. PHP_MEMORY_LIMIT: 512M
  15. APC_SHM_SIZE: 128M
  16. OPCACHE_MEM_SIZE: 128M
  17. add_php_fpm: true
  18. nc_pm: "ondemand"
  19. nc_pm_max_children: 80
  20. nc_pm_start_servers: 2
  21. nc_pm_min_spare_servers: 1
  22. nc_pm_max_spare_servers: 3
  23. # [REDIS CONFIG]
  24. use_redis_server: false # overload from the role
  25. redis_host: "127.0.0.1" # overload from the role
  26. # [NEXTCLOUD CONFIG]
  27. nextcloud_trusted_domain: "nextcloud.test"
  28. nextcloud_ipv6: false
  29. debug_speed: false # overload from the role
  30. nextcloud_instance_name: "{{ nextcloud_trusted_domain }}"
  31. nextcloud_install_websrv: true
  32. nextcloud_websrv: "apache2" # "apache2" | "nginx"
  33. nextcloud_disable_websrv_default_site: false
  34. nextcloud_websrv_template: "templates/{{ nextcloud_websrv }}_nc.j2"
  35. nc_data_dir: "/srv/data"
  36. nc_admin_name: "pedro"
  37. nc_admin_pwd: "pedro"
  38. nc_loglevel: 2
  39. nc_log_rotate_size: 10485760
  40. nc_background_cron: true
  41. nc_cron_period: 10 # every <nc_cron_period> min
  42. ## Custom nextcloud settings
  43. ## https://docs.nextcloud.com/server/12/admin_manual/configuration_server/config_sample_php_parameters.html
  44. nextcloud_config_settings:
  45. - { name: 'default_phone_region', value: 'BE' } # set a country code using ISO 3166-1
  46. - { name: 'open_basedir', value: '/dev/urandom' }
  47. - { name: 'mysql.utf8mb4', value: 'true' }
  48. - { name: 'updater.release.channel', value: 'production' } # production | stable | daily | beta
  49. - { name: 'mail_smtpmode', value: 'smtp' }
  50. - { name: 'mail_domain', value: 'uclouvain.be' }
  51. - { name: 'mail_smtphost', value: 'smtp.sgsi.ucl.ac.be' }
  52. - { name: 'mail_smtpauthtype', value: 'LOGIN' }
  53. - { name: 'overwrite.cli.url', value: 'https://{{ nextcloud_trusted_domain }}' }
  54. - { name: 'overwritehost', value: 'nextcloud.test' }
  55. - { name: 'overwriteprotocol', value: 'https' }
  56. #php /var/www/html/occ config:system:set share_folder --value="/Shared"
  57. # [DATABASE]
  58. db_host: "127.0.0.1" # overload from the role
  59. nc_db_name: "nextcloudb"
  60. nc_db_user: "web"
  61. nc_db_password: "secret"
  62. # [APPS]
  63. nextcloud_apps:
  64. - twofactor_totp
  65. - deck
  66. - tasks
  67. - calendar
  68. - contacts
  69. - apporder
  70. nc_collabora: false