mirror of
https://github.com/bashclub/zamba-lxc-toolbox.git
synced 2025-04-21 20:59:47 +02:00
Update install-service.sh
This commit is contained in:
parent
f481a7a7f4
commit
26cef69e6b
@ -14,6 +14,7 @@ source /root/constants-service.conf
|
|||||||
NEXTCLOUD_ADMIN_PWD=$(random_password)
|
NEXTCLOUD_ADMIN_PWD=$(random_password)
|
||||||
NEXTCLOUD_REDIS_PWD=$(random_password)
|
NEXTCLOUD_REDIS_PWD=$(random_password)
|
||||||
HOSTNAME=$(hostname -f)
|
HOSTNAME=$(hostname -f)
|
||||||
|
HOST_IP=$(hostname -i)
|
||||||
|
|
||||||
#### Modify Nginx for Nextcloud ####
|
#### Modify Nginx for Nextcloud ####
|
||||||
mod_nginx() {
|
mod_nginx() {
|
||||||
@ -480,7 +481,7 @@ cat >> /var/www/nextcloud/config/config.php << EOF
|
|||||||
'overwritehost' => '$NEXTCLOUD_FQDN',
|
'overwritehost' => '$NEXTCLOUD_FQDN',
|
||||||
'trusted_domains' =>
|
'trusted_domains' =>
|
||||||
array (
|
array (
|
||||||
0 => '$LXC_IP',
|
0 => '$HOST_IP',
|
||||||
1 => '$NEXTCLOUD_FQDN',
|
1 => '$NEXTCLOUD_FQDN',
|
||||||
),
|
),
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user