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
Package registry
Container Registry
Model registry
Operate
Terraform modules
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
Timo Ley
synapse
Commits
f8c45d42
Commit
f8c45d42
authored
8 years ago
by
Richard van der Hoff
Browse files
Options
Downloads
Patches
Plain Diff
README: code quotes
Add some syntax highlighting
parent
153535fc
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.rst
+10
-10
10 additions, 10 deletions
README.rst
with
10 additions
and
10 deletions
README.rst
+
10
−
10
View file @
f8c45d42
...
@@ -558,14 +558,14 @@ time.
...
@@ -558,14 +558,14 @@ time.
URL Previews
URL Previews
============
============
Synapse 0.15.0 introduces a
n experimental
new API for previewing URLs at
Synapse 0.15.0 introduces a new API for previewing URLs at
/_matrix/media/r0/preview_url. This is disabled by default. To turn it on
``
/_matrix/media/r0/preview_url
``
. This is disabled by default. To turn it on
you must enable the `url_preview_enabled: True` config parameter and
explicitly
you must enable the
`
`url_preview_enabled: True`
`
config parameter and
specify the IP ranges that Synapse is not allowed to spider for
previewing in
explicitly
specify the IP ranges that Synapse is not allowed to spider for
the `url_preview_ip_range_blacklist` configuration parameter.
This is critical
previewing in
the
`
`url_preview_ip_range_blacklist`
`
configuration parameter.
from a security perspective to stop arbitrary Matrix users
spidering 'internal'
This is critical
from a security perspective to stop arbitrary Matrix users
URLs on your network. At the very least we recommend that
your loopback and
spidering 'internal'
URLs on your network. At the very least we recommend that
RFC1918 IP addresses are blacklisted.
your loopback and
RFC1918 IP addresses are blacklisted.
This also requires the optional lxml and netaddr python dependencies to be
This also requires the optional lxml and netaddr python dependencies to be
installed.
installed.
...
@@ -579,7 +579,7 @@ server, they can request a password-reset token via clients such as Vector.
...
@@ -579,7 +579,7 @@ server, they can request a password-reset token via clients such as Vector.
A manual password reset can be done via direct database access as follows.
A manual password reset can be done via direct database access as follows.
First calculate the hash of the new password:
First calculate the hash of the new password:
:
$ source ~/.synapse/bin/activate
$ source ~/.synapse/bin/activate
$ ./scripts/hash_password
$ ./scripts/hash_password
...
@@ -587,7 +587,7 @@ First calculate the hash of the new password:
...
@@ -587,7 +587,7 @@ First calculate the hash of the new password:
Confirm password:
Confirm password:
$2a$12$xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
$2a$12$xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Then update the `users` table in the database:
Then update the `users` table in the database:
:
UPDATE users SET password_hash='$2a$12$xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
UPDATE users SET password_hash='$2a$12$xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
WHERE name='@test:test.com';
WHERE name='@test:test.com';
...
...
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