An Ansible Playbook to deploy OpenLDAP and FusionDirectory
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.

43 lines
1.5KB

  1. <IfModule mod_ssl.c>
  2. <VirtualHost *:443>
  3. ServerName auth.{{ domain }}
  4. ServerAdmin webmaster@{{ domain }}
  5. DocumentRoot /usr/share/fusiondirectory/html
  6. ErrorLog ${APACHE_LOG_DIR}/fd-error.log
  7. CustomLog ${APACHE_LOG_DIR}/fd-access.log combined
  8. <IfModule mod_php5.c>
  9. <Location />
  10. php_admin_flag engine on
  11. php_admin_flag register_globals off
  12. php_admin_flag allow_call_time_pass_reference off
  13. php_admin_flag expose_php off
  14. php_admin_flag zend.ze1_compatibility_mode off
  15. php_admin_flag register_long_arrays off
  16. php_admin_value upload_tmp_dir /var/spool/fusiondirectory/
  17. php_admin_value session.cookie_lifetime 0
  18. #Include /etc/fusiondirectory/fusiondirectory.secrets
  19. </Location>
  20. </IfModule>
  21. <Directory /usr/share/fusiondirectory/html/>
  22. Order Allow,Deny
  23. # Insert your public IPs here
  24. {% for ip_address in allowed_ips %}
  25. Allow from {{ ip_address }}
  26. {% endfor %}
  27. </Directory>
  28. Alias /.well-known/acme-challenge/ "/var/www/html/.well-known/acme-challenge/"
  29. <Directory "/var/www/html/">
  30. AllowOverride None
  31. Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
  32. Require method GET POST OPTIONS
  33. </Directory>
  34. SSLCertificateFile /etc/letsencrypt/live/auth.{{ domain }}/fullchain.pem
  35. SSLCertificateKeyFile /etc/letsencrypt/live/auth.{{ domain }}/privkey.pem
  36. Include /etc/letsencrypt/options-ssl-apache.conf
  37. </VirtualHost>
  38. </IfModule>