ch onlyoffice service name
This commit is contained in:
parent
176041124e
commit
897407f5b0
5 changed files with 39 additions and 52 deletions
|
|
@ -1,10 +0,0 @@
|
|||
# Nextcloud
|
||||
NEXTCLOUD_DOMAIN=
|
||||
NEXTCLOUD_ADMIN_PASSWORD=
|
||||
NEXTCLOUD_ADMIN_USER=
|
||||
NEXTCLOUD_DB_HOST=
|
||||
NEXTCLOUD_DB_NAME=
|
||||
NEXTCLOUD_DB_PASSWORD=
|
||||
NEXTCLOUD_DB_USER=
|
||||
NEXTCLOUD_TRUSTED_DOMAINS=
|
||||
ONLYOFFICE_JWT_SECRET=
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
source .env
|
||||
source ../core/.env
|
||||
|
||||
docker exec postgres psql -U $POSTGRES_USER -d postgres -c "CREATE USER $NEXTCLOUD_DB_USER WITH PASSWORD '$NEXTCLOUD_DB_PASSWORD';"
|
||||
docker exec postgres psql -U $POSTGRES_USER -d postgres -c "CREATE DATABASE $NEXTCLOUD_DB_NAME OWNER $NEXTCLOUD_DB_USER;"
|
||||
docker exec postgres psql -U $POSTGRES_USER -d $NEXTCLOUD_DB_NAME -c "GRANT ALL PRIVILEGES ON DATABASE $NEXTCLOUD_DB_NAME TO $NEXTCLOUD_DB_USER;"
|
||||
|
|
@ -23,7 +23,7 @@ php /var/www/html/occ --no-warnings app:install onlyoffice
|
|||
# Set the DocumentServerUrl to the path of the OnlyOffice Document Server
|
||||
php /var/www/html/occ --no-warnings config:system:set onlyoffice DocumentServerUrl --value="/ds-vpath/"
|
||||
# Set the DocumentServerInternalUrl to the URL of the OnlyOffice Document Server
|
||||
php /var/www/html/occ --no-warnings config:system:set onlyoffice DocumentServerInternalUrl --value="http://onlyoffice-document-server/"
|
||||
php /var/www/html/occ --no-warnings config:system:set onlyoffice DocumentServerInternalUrl --value="http://onlyoffice-documentserver/"
|
||||
# Set the StorageUrl to the URL of the Nextcloud Reverse Proxy
|
||||
php /var/www/html/occ --no-warnings config:system:set onlyoffice StorageUrl --value="http://nextcloud-reverse-proxy/"
|
||||
# Set the JWT secret
|
||||
|
|
|
|||
|
|
@ -92,7 +92,7 @@ http {
|
|||
|
||||
location ~* ^/ds-vpath/ {
|
||||
rewrite /ds-vpath/(.*) /$1 break;
|
||||
proxy_pass http://onlyoffice-document-server;
|
||||
proxy_pass http://onlyoffice-documentserver;
|
||||
proxy_redirect off;
|
||||
|
||||
client_max_body_size 100m;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue