You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
1.3 KiB

  1. ---
  2. # Copyright (C) 2014-2019 Maciej Delmanowski <drybjed@gmail.com>
  3. # Copyright (C) 2015-2019 DebOps <https://debops.org/>
  4. # SPDX-License-Identifier: GPL-3.0-only
  5. phpmyadmin_control_user: 'phpmyadmin'
  6. phpmyadmin_control_database: 'phpmyadmin'
  7. phpmyadmin_nginx_server:
  8. by_role: 'debops.phpmyadmin'
  9. enabled: True
  10. default: False
  11. type: 'php5'
  12. name: '{{ phpmyadmin_domain }}'
  13. root: '/usr/share/phpmyadmin'
  14. webroot_create: False
  15. options: |
  16. client_max_body_size {{ phpmyadmin_upload_size }};
  17. location:
  18. # Required for location_allow to work
  19. '/': 'try_files $uri $uri/ =404;'
  20. '~ ^/(setup|libraries)': 'deny all;'
  21. location_allow:
  22. '/': '{{ phpmyadmin_allow }}'
  23. php5: 'php5_phpmyadmin'
  24. php5_options: |
  25. {% if phpmyadmin_allow is defined and phpmyadmin_allow %}
  26. {% for address in phpmyadmin_allow %}
  27. allow {{ address }};
  28. {% endfor %}
  29. deny all;
  30. {% endif %}
  31. phpmyadmin_nginx_upstream_php5:
  32. enabled: True
  33. name: 'php5_phpmyadmin'
  34. type: 'php5'
  35. php5: 'phpmyadmin'
  36. phpmyadmin_php5_pool:
  37. enabled: True
  38. name: 'phpmyadmin'
  39. user: 'www-data'
  40. group: 'www-data'
  41. pm_max_children: '{{ phpmyadmin_php5_max_children }}'
  42. php_value:
  43. post_max_size: '{{ phpmyadmin_upload_size }}'
  44. upload_max_filesize: '{{ phpmyadmin_upload_size }}'