Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Matrix
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Operate
Environments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Matrix
Commits
e511979f
Commit
e511979f
authored
7 years ago
by
kaiyou
Browse files
Options
Downloads
Patches
Plain Diff
Make SYNAPSE_MACAROON_SECRET_KEY a mandatory option
parent
a03c3829
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
contrib/docker/README.md
+2
-1
2 additions, 1 deletion
contrib/docker/README.md
contrib/docker/start.py
+2
-2
2 additions, 2 deletions
contrib/docker/start.py
with
4 additions
and
3 deletions
contrib/docker/README.md
+
2
−
1
View file @
e511979f
...
...
@@ -111,6 +111,8 @@ variables are available for configuration:
*
``SYNAPSE_SERVER_NAME``
(mandatory), the current server public hostname.
*
``SYNAPSE_REPORT_STATS``
, (mandatory,
``yes``
or
``no``
), enable anonymous
statistics reporting back to the Matrix project which helps us to get funding.
*
``SYNAPSE_MACAROON_SECRET_KEY``
(mandatory) secret for signing access tokens
to the server, set this to a proper random key.
*
``SYNAPSE_NO_TLS``
, set this variable to disable TLS in Synapse (use this if
you run your own TLS-capable reverse proxy).
*
``SYNAPSE_ENABLE_REGISTRATION``
, set this variable to enable registration on
...
...
@@ -130,7 +132,6 @@ Shared secrets, that will be initialized to random values if not set:
*
``SYNAPSE_REGISTRATION_SHARED_SECRET``
, secret for registrering users if
registration is disable.
*
``SYNAPSE_MACAROON_SECRET_KEY``
, secret for Macaroon.
Database specific values (will use SQLite if not set):
...
...
This diff is collapsed.
Click to expand it.
contrib/docker/start.py
+
2
−
2
View file @
e511979f
...
...
@@ -44,8 +44,8 @@ else:
if
"
SYNAPSE_CONFIG_PATH
"
in
environ
:
args
+=
[
"
--config-path
"
,
environ
[
"
SYNAPSE_CONFIG_PATH
"
]]
else
:
check_arguments
(
environ
,
(
"
SYNAPSE_SERVER_NAME
"
,
"
SYNAPSE_REPORT_STATS
"
))
generate_secrets
(
environ
,
(
"
SYNAPSE_REGISTRATION_SHARED_SECRET
"
,
"
SYNAPSE_MACAROON_SECRET_KEY
"
))
check_arguments
(
environ
,
(
"
SYNAPSE_SERVER_NAME
"
,
"
SYNAPSE_REPORT_STATS
"
,
"
SYNAPSE_MACAROON_SECRET_KEY
"
))
generate_secrets
(
environ
,
(
"
SYNAPSE_REGISTRATION_SHARED_SECRET
"
,))
environ
[
"
SYNAPSE_APPSERVICES
"
]
=
glob
.
glob
(
"
/data/appservices/*.yaml
"
)
if
not
os
.
path
.
exists
(
"
/compiled
"
):
os
.
mkdir
(
"
/compiled
"
)
convert
(
"
/conf/homeserver.yaml
"
,
"
/compiled/homeserver.yaml
"
,
environ
)
...
...
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