Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
synapse
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
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
Maunium
synapse
Commits
8b9ade8c
Commit
8b9ade8c
authored
5 years ago
by
Erik Johnston
Browse files
Options
Downloads
Patches
Plain Diff
Default to censoring redactions after seven days
parent
e7184a43
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
docs/sample_config.yaml
+5
-3
5 additions, 3 deletions
docs/sample_config.yaml
synapse/config/server.py
+6
-4
6 additions, 4 deletions
synapse/config/server.py
with
11 additions
and
7 deletions
docs/sample_config.yaml
+
5
−
3
View file @
8b9ade8c
...
@@ -306,10 +306,12 @@ listeners:
...
@@ -306,10 +306,12 @@ listeners:
#
#
#allow_per_room_profiles: false
#allow_per_room_profiles: false
# How long to keep redacted events in unredacted form in the database.
# How long to keep redacted events in unredacted form in the database.
After
#
By default redactions are kept indefinitely
.
#
this period redacted events get replaced with their redacted form in the DB
.
#
#
#redaction_retention_period: 30d
# Defaults to `7d`. Set to `null` to disable.
#
redaction_retention_period
:
7d
## TLS ##
## TLS ##
...
...
This diff is collapsed.
Click to expand it.
synapse/config/server.py
+
6
−
4
View file @
8b9ade8c
...
@@ -164,7 +164,7 @@ class ServerConfig(Config):
...
@@ -164,7 +164,7 @@ class ServerConfig(Config):
# How long to keep redacted events in the database in unredacted form
# How long to keep redacted events in the database in unredacted form
# before redacting them.
# before redacting them.
redaction_retention_period
=
config
.
get
(
"
redaction_retention_period
"
)
redaction_retention_period
=
config
.
get
(
"
redaction_retention_period
"
,
"
7d
"
)
if
redaction_retention_period
is
not
None
:
if
redaction_retention_period
is
not
None
:
self
.
redaction_retention_period
=
self
.
parse_duration
(
self
.
redaction_retention_period
=
self
.
parse_duration
(
redaction_retention_period
redaction_retention_period
...
@@ -729,10 +729,12 @@ class ServerConfig(Config):
...
@@ -729,10 +729,12 @@ class ServerConfig(Config):
#
#
#allow_per_room_profiles: false
#allow_per_room_profiles: false
# How long to keep redacted events in unredacted form in the database.
# How long to keep redacted events in unredacted form in the database.
After
#
By default redactions are kept indefinitely
.
#
this period redacted events get replaced with their redacted form in the DB
.
#
#
#redaction_retention_period: 30d
# Defaults to `7d`. Set to `null` to disable.
#
redaction_retention_period: 7d
"""
"""
%
locals
()
%
locals
()
)
)
...
...
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