webapps/nextcloud : Small enhancement on the vhost template to lock out data dir
gitea/ansible-roles/pipeline/head This commit looks good Details

This commit is contained in:
Ludovic Poujol 2023-01-13 11:05:55 +01:00
parent dcc378776c
commit c27551939d
2 changed files with 13 additions and 1 deletions

View File

@ -18,7 +18,8 @@ The **patch** part changes is incremented if multiple releases happen the same m
* Use systemd module instead of command
* Removed all "warn: False" args in command, shell and other modules as it's been deprecated and will give a hard fail in ansible-core 2.14.0.
* webapp/nextcloud : Change default data directory to be outside web root
* webapps/nextcloud : Change default data directory to be outside web root
* webapps/nextcloud : Small enhancement on the vhost template to lock out data dir
### Fixed

View File

@ -5,9 +5,11 @@
ServerAlias {{ domain_alias }}
{% endfor %}
# SSL
# SSLEngine on
# SSLCertificateFile /etc/letsencrypt/live/{{ nextcloud_instance_name }}/fullchain.pem
# SSLCertificateKeyFile /etc/letsencrypt/live/{{ nextcloud_instance_name }}/privkey.pem
# Header always set Strict-Transport-Security "max-age=15552000"
DocumentRoot {{ nextcloud_webroot }}/
@ -21,6 +23,15 @@
</IfModule>
</Directory>
<Directory {{ nextcloud_data }}/>
Require all denied
AllowOverride None
<IfModule mod_dav.c>
Dav off
</IfModule>
</Directory>
# SSL Redirect
# RewriteEngine On
# RewriteCond %{HTTPS} !=on