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
efc522c5
Commit
efc522c5
authored
6 years ago
by
Richard van der Hoff
Browse files
Options
Downloads
Patches
Plain Diff
Fix macaroon_secret_key fallback logic
parent
566947ff
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
synapse/config/key.py
+3
-3
3 additions, 3 deletions
synapse/config/key.py
with
3 additions
and
3 deletions
synapse/config/key.py
+
3
−
3
View file @
efc522c5
...
...
@@ -71,14 +71,14 @@ class KeyConfig(Config):
base_key_name
=
os
.
path
.
join
(
config_dir_path
,
server_name
)
if
is_generating_file
:
macaroon_secret_key
=
random_string_with_symbols
(
50
)
macaroon_secret_key
=
'"
%s
"'
%
random_string_with_symbols
(
50
)
form_secret
=
'"
%s
"'
%
random_string_with_symbols
(
50
)
else
:
macaroon_secret_key
=
None
macaroon_secret_key
=
'
null
'
form_secret
=
'
null
'
return
"""
\
macaroon_secret_key:
"
%(macaroon_secret_key)s
"
macaroon_secret_key: %(macaroon_secret_key)s
# Used to enable access token expiration.
expire_access_token: False
...
...
This diff is collapsed.
Click to expand it.
kaiyou
@kaiyou
mentioned in commit
ba41aeed
·
6 years ago
mentioned in commit
ba41aeed
mentioned in commit ba41aeed6a6565e3c5348aaa568f5fd30e42e97a
Toggle commit list
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