Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
docker-onlyoffice-documentserver
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TO
docker-onlyoffice-documentserver
Commits
ad4b4961
Commit
ad4b4961
authored
6 years ago
by
Alexey Golubev
Committed by
Alexey Golubev
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Rename AMQP_SERVER_ENGINE->AMQP_SERVER_TYPE
parent
88f33c5d
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+1
-1
1 addition, 1 deletion
README.md
activemq.yml
+1
-1
1 addition, 1 deletion
activemq.yml
run-document-server.sh
+3
-3
3 additions, 3 deletions
run-document-server.sh
with
5 additions
and
5 deletions
README.md
+
1
−
1
View file @
ad4b4961
...
@@ -168,7 +168,7 @@ Below is the complete list of parameters that can be set using environment varia
...
@@ -168,7 +168,7 @@ Below is the complete list of parameters that can be set using environment varia
-
**POSTGRESQL_SERVER_USER**
: The new user name with superuser permissions for the PostgreSQL account.
-
**POSTGRESQL_SERVER_USER**
: The new user name with superuser permissions for the PostgreSQL account.
-
**POSTGRESQL_SERVER_PASS**
: The password set for the PostgreSQL account.
-
**POSTGRESQL_SERVER_PASS**
: The password set for the PostgreSQL account.
-
**AMQP_SERVER_URL**
: The
[
AMQP URL
](
http://www.rabbitmq.com/uri-spec.html
"RabbitMQ URI Specification"
)
to connect to message broker server.
-
**AMQP_SERVER_URL**
: The
[
AMQP URL
](
http://www.rabbitmq.com/uri-spec.html
"RabbitMQ URI Specification"
)
to connect to message broker server.
-
**AMQP_SERVER_
ENGIN
E**
: The message broker engine. Supported values are 'rabbitmq' or 'activemq'. Defaults to 'rabbitmq'.
-
**AMQP_SERVER_
TYP
E**
: The message broker engine. Supported values are 'rabbitmq' or 'activemq'. Defaults to 'rabbitmq'.
-
**REDIS_SERVER_HOST**
: The IP address or the name of the host where the Redis server is running.
-
**REDIS_SERVER_HOST**
: The IP address or the name of the host where the Redis server is running.
-
**REDIS_SERVER_PORT**
: The Redis server port number.
-
**REDIS_SERVER_PORT**
: The Redis server port number.
-
**NGINX_WORKER_PROCESSES**
: Defines the number of nginx worker processes.
-
**NGINX_WORKER_PROCESSES**
: Defines the number of nginx worker processes.
...
...
This diff is collapsed.
Click to expand it.
activemq.yml
+
1
−
1
View file @
ad4b4961
...
@@ -5,7 +5,7 @@ services:
...
@@ -5,7 +5,7 @@ services:
image
:
onlyoffice/4testing-documentserver-ie:latest
image
:
onlyoffice/4testing-documentserver-ie:latest
environment
:
environment
:
-
AMQP_SERVER_URL=amqp://guest:guest@onlyoffice-activemq
-
AMQP_SERVER_URL=amqp://guest:guest@onlyoffice-activemq
-
AMQP_SERVER_
ENGIN
E=activemq
-
AMQP_SERVER_
TYP
E=activemq
stdin_open
:
true
stdin_open
:
true
restart
:
always
restart
:
always
ports
:
ports
:
...
...
This diff is collapsed.
Click to expand it.
run-document-server.sh
+
3
−
3
View file @
ad4b4961
...
@@ -64,7 +64,7 @@ read_setting(){
...
@@ -64,7 +64,7 @@ read_setting(){
RABBITMQ_SERVER_URL
=
${
RABBITMQ_SERVER_URL
:-
$(
${
JSON
}
rabbitmq.url
)
}
RABBITMQ_SERVER_URL
=
${
RABBITMQ_SERVER_URL
:-
$(
${
JSON
}
rabbitmq.url
)
}
AMQP_SERVER_URL
=
${
AMQP_SERVER_URL
:-${
RABBITMQ_SERVER_URL
}}
AMQP_SERVER_URL
=
${
AMQP_SERVER_URL
:-${
RABBITMQ_SERVER_URL
}}
AMQP_SERVER_
ENGIN
E
=
${
AMQP_SERVER_
ENGIN
E
:-
rabbitmq
}
AMQP_SERVER_
TYP
E
=
${
AMQP_SERVER_
TYP
E
:-
rabbitmq
}
parse_rabbitmq_url
${
AMQP_SERVER_URL
}
parse_rabbitmq_url
${
AMQP_SERVER_URL
}
REDIS_SERVER_HOST
=
${
REDIS_SERVER_HOST
:-
$(
${
JSON
}
services.CoAuthoring.redis.host
)
}
REDIS_SERVER_HOST
=
${
REDIS_SERVER_HOST
:-
$(
${
JSON
}
services.CoAuthoring.redis.host
)
}
...
@@ -144,12 +144,12 @@ update_postgresql_settings(){
...
@@ -144,12 +144,12 @@ update_postgresql_settings(){
}
}
update_rabbitmq_setting
(){
update_rabbitmq_setting
(){
if
[
"
${
AMQP_SERVER_
ENGIN
E
}
"
==
"rabbitmq"
]
;
then
if
[
"
${
AMQP_SERVER_
TYP
E
}
"
==
"rabbitmq"
]
;
then
${
JSON
}
-I
-e
"this.rabbitmq.url = '
${
RABBITMQ_SERVER_URL
}
'"
${
JSON
}
-I
-e
"this.rabbitmq.url = '
${
RABBITMQ_SERVER_URL
}
'"
sed
's/\(exports\.USE_RABBIT_MQ = \).*\(;\)/'
"
\1
true
\2
"
'/'
-i
${
APP_DIR
}
/server/Common/sources/constants.js
sed
's/\(exports\.USE_RABBIT_MQ = \).*\(;\)/'
"
\1
true
\2
"
'/'
-i
${
APP_DIR
}
/server/Common/sources/constants.js
fi
fi
if
[
"
${
AMQP_SERVER_
ENGIN
E
}
"
==
"activemq"
]
;
then
if
[
"
${
AMQP_SERVER_
TYP
E
}
"
==
"activemq"
]
;
then
${
JSON
}
-I
-e
"if(this.activemq===undefined)this.activemq={};"
${
JSON
}
-I
-e
"if(this.activemq===undefined)this.activemq={};"
${
JSON
}
-I
-e
"if(this.activemq.connectOptions===undefined)this.activemq.connectOptions={};"
${
JSON
}
-I
-e
"if(this.activemq.connectOptions===undefined)this.activemq.connectOptions={};"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment