Compare commits
No commits in common. "master" and "v1.1.0" have entirely different histories.
@ -14,8 +14,6 @@ nextcloud_www_path: '/var/www/nextcloud/'
|
|||||||
nextcloud_ssl: true
|
nextcloud_ssl: true
|
||||||
nextcloud_ssl_certificate_path: "/etc/ssl/certs/ssl-cert-snakeoil.pem"
|
nextcloud_ssl_certificate_path: "/etc/ssl/certs/ssl-cert-snakeoil.pem"
|
||||||
nextcloud_ssl_key_path: "/etc/ssl/private/ssl-cert-snakeoil.key"
|
nextcloud_ssl_key_path: "/etc/ssl/private/ssl-cert-snakeoil.key"
|
||||||
nextcloud_hsts: true
|
|
||||||
nextcloud_hsts_preload: false
|
|
||||||
|
|
||||||
# Apache configuration
|
# Apache configuration
|
||||||
|
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
---
|
---
|
||||||
galaxy_info:
|
galaxy_info:
|
||||||
role_name: nextcloud
|
|
||||||
author: Corbin Bartsch
|
author: Corbin Bartsch
|
||||||
description: Configure a Debian host for Nextcloud installation
|
description: Configure a Debian host for Nextcloud installation
|
||||||
license: MIT
|
license: MIT
|
||||||
|
@ -1,13 +1,8 @@
|
|||||||
# {{ ansible_managed }}
|
# {{ ansible_managed }}
|
||||||
|
|
||||||
<IfModule mod_ssl.c>
|
<IfModule mod_ssl.c>
|
||||||
<VirtualHost *:80>
|
|
||||||
ServerName {{ nextcloud_subdomain }}.{{ domain_name }}
|
|
||||||
Redirect permanent / https://{{ nextcloud_subdomain }}.{{ domain_name }}/
|
|
||||||
</VirtualHost>
|
|
||||||
|
|
||||||
<VirtualHost *:443>
|
<VirtualHost *:443>
|
||||||
ServerName {{ nextcloud_subdomain }}.{{ domain_name }}
|
ServerName {{ ansible_hostname }}.{{ domain_name }}
|
||||||
|
|
||||||
DocumentRoot {{ nextcloud_www_path }}
|
DocumentRoot {{ nextcloud_www_path }}
|
||||||
|
|
||||||
@ -31,12 +26,6 @@
|
|||||||
<FilesMatch "\.php$">
|
<FilesMatch "\.php$">
|
||||||
SSLOptions +StdEnvVars
|
SSLOptions +StdEnvVars
|
||||||
</FilesMatch>
|
</FilesMatch>
|
||||||
|
|
||||||
{% if nextcloud_hsts %}
|
|
||||||
<IfModule mod_headers.c>
|
|
||||||
Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains{% if nextcloud_hsts_preload %}; preload{% endif %}"
|
|
||||||
</IfModule>
|
|
||||||
{% endif %}
|
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
</IfModule>
|
</IfModule>
|
||||||
|
|
||||||
|
@ -1,28 +0,0 @@
|
|||||||
<?php
|
|
||||||
$CONFIG = array (
|
|
||||||
'instanceid' => '',
|
|
||||||
'passwordsalt' => '',
|
|
||||||
'secret' => '',
|
|
||||||
'trusted_domains' =>
|
|
||||||
array (
|
|
||||||
0 => '{{ nextcloud_subdomain }}.{{ domain_name }}',
|
|
||||||
),
|
|
||||||
'datadirectory' => '{{ nextcloud_data_directory }}',
|
|
||||||
'dbtype' => '{{ nextcloud_db_type }}',
|
|
||||||
'version' => '23.0.3.2',
|
|
||||||
'overwrite.cli.url' => 'http://{{ nextcloud_subdomain }}.{{ domain_name }}',
|
|
||||||
'dbname' => 'nextcloud',
|
|
||||||
'dbhost' => '{{ nextcloud_db_host }}:{{ nextcloud_db_port }}',
|
|
||||||
'dbport' => '',
|
|
||||||
'dbtableprefix' => 'oc_',
|
|
||||||
'dbuser' => '{{ nextcloud_db_user }}',
|
|
||||||
'dbpassword' => '{{ nextcloud_db_pass }}',
|
|
||||||
'installed' => true,
|
|
||||||
'twofactor_enforced' => 'true',
|
|
||||||
'twofactor_enforced_groups' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'twofactor_enforced_excluded_groups' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
);
|
|
Loading…
x
Reference in New Issue
Block a user