transfert nginx data to share

This commit is contained in:
vincent 2020-11-07 15:51:33 +01:00
parent db32d9fddf
commit 4c92a919e8
2 changed files with 23 additions and 4 deletions

View File

@ -17,12 +17,14 @@ nextcloud_config_options: # additional options to set in config.php
value: "'2'"
- option: installed
value: "true"
- option: config_is_read_only
value: "false"
nginx_upstreams:
- name: PHP-handler
servers:
- unix:/var/run/php-fpm/php-fpm.sock
nginx_error_log: "/var/log/nginx/error.log debug"
nginx_vhosts:
- listen: "80"
server_name: "_"
@ -84,7 +86,7 @@ nginx_vhosts:
location /.well-known/acme-challenge { }
location ^~ /nextcloud {
root /usr/share/webapps/
# set max upload size
client_max_body_size 512M;
fastcgi_buffers 64 4K;
@ -150,4 +152,6 @@ nginx_vhosts:
access_log off;
}
}
nextcloud_datadirectory: /mnt/diskstation/nextcloud
nextcloud_data_directory_creation: false

View File

@ -57,6 +57,17 @@ systemd_mounts:
options:
- " "
automount: true
diskstation_nextcloud:
share: //diskstation/nextcloud
mount: /mnt/diskstation/nextcloud
type: cifs
options:
- credentials=/etc/creds/.diskstation_credentials
- uid=33
- gid=33
- vers=3.0
- dir_mode=0770
automount: true
systemd_mounts_enabled:
- diskstation_git
- diskstation_music
@ -66,6 +77,7 @@ systemd_mounts_enabled:
- diskstation_CardDav
- diskstation_media
- diskstation_ebook
- diskstation_nextcloud
credentials_files:
@ -364,7 +376,6 @@ nginx_realIP_Proxy: 192.168.1.40/24
PHP_ReadWritePaths:
- /usr/share/webapps/nextcloud/apps
- /etc/webapps/nextcloud/config
- /var/nextcloud
- /mnt/diskstation
php_memory_limit: 512M #need for nextcloud be carefull on low memory device
php_extention_enable:
@ -454,6 +465,10 @@ nextcloud_config_options: # additional options to set in config.php
value: "'2'"
- option: installed
value: "true"
- option: config_is_read_only
value: "false"
nextcloud_datadirectory: /mnt/diskstation/nextcloud
nextcloud_data_directory_creation: false
samba_shares:
- name: hassconfig