FRITA-infra/roles/nextcloud/templates/nextcloud.conf.j2
Kris Lamoureux c914f93cdf
Set PHP memory limit to 512 MB for Nextcloud
Reformat Nextcloud's virtual host configuration and set it's PHP
memory limit to 512 MB
2020-01-29 22:26:42 -05:00

28 lines
591 B
Django/Jinja

<VirtualHost *:80>
ServerName {{ nc_domain }}
ServerAdmin {{ nc_admin_email }}
DocumentRoot {{ nc_dir }}/public_html
<Directory {{ nc_dir }}/public_html>
Options +FollowSymLinks
AllowOverride All
<IfModule mod_dav.c>
Dav off
</IfModule>
SetEnv HOME {{ nc_dir }}/public_html
SetEnv HTTP_HOME {{ nc_dir }}/public_html
# Nextcloud recommends 512MB
php_value memory_limit 512M
</Directory>
ErrorLog {{ nc_dir }}/logs/error.log
CustomLog {{ nc_dir }}/logs/access.log combined
</VirtualHost>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet