FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
nextcloud-docker-dev/scripts/enable-onlyoffice at master · nextcloud/nextcloud-docker-dev · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
nextcloud
/
nextcloud-docker-dev
Public
Notifications
You must be signed in to change notification settings
Fork
103
Star
189
Code
Issues
39
Pull requests
33
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
nextcloud-docker-dev
/
scripts
/
enable-onlyoffice
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
33 lines (26 loc) · 1.1 KB
Breadcrumbs
nextcloud-docker-dev
/
scripts
/
enable-onlyoffice
Copy path
File metadata and controls
executable file
·
33 lines (26 loc) · 1.1 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!
/usr/bin/env bash
set
-e
SCRIPT_DIR=
$(
cd
"
$(
dirname
"
${BASH_SOURCE[0]}
"
)
"
&
>
/dev/null
&&
pwd
)
#
shellcheck source=example.env
source
"
${SCRIPT_DIR}
/../.env
"
#
shellcheck source=scripts/functions.sh
source
"
${SCRIPT_DIR}
/functions.sh
"
if
[
-z
"
$1
"
]
then
CONTAINER=nextcloud
else
CONTAINER=
$1
fi
function
occ()
{
docker_compose
exec
"
$CONTAINER
"
sudo -E -u www-data
"
./occ
"
"
$@
"
}
echo
"
Setting up ONLYOFFICE with onlyoffice
$DOMAIN_SUFFIX
on
$CONTAINER
"
docker_compose up -d onlyoffice
occ app:enable onlyoffice --force
occ config:app:set onlyoffice DocumentServerUrl --value=
"
$PROTOCOL
://onlyoffice
$DOMAIN_SUFFIX
"
occ config:app:set onlyoffice jwt_secret --value=
"
secret
"
occ config:app:set onlyoffice DocumentServerInternalUrl --value=
"
http://onlyoffice/
"
occ config:app:set onlyoffice StorageUrl --value=
"
http://
${CONTAINER}${DOMAIN_SUFFIX}
/
"
occ onlyoffice:documentserver --check
docker_compose
exec
onlyoffice /var/www/onlyoffice/documentserver/npm/json -f /etc/onlyoffice/documentserver/local.json
'
services.CoAuthoring.secret.session.string
'
docker_compose
exec
onlyoffice supervisorctl start ds:example
Back
|
FazBrowse Home
|
New Git URL