This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Clean-up demo scripts & documentation #12143
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
c60bc86
Rewrite documentation.
clokep 8da3c67
Ensure servers are stopped before cleaning up.
clokep fc908c6
Clarify some more information about the demo scripts.
clokep a7be9eb
Add some documentation to the start script.
clokep 3cbe228
Remove reference to an old option.
clokep 16389ba
Minor tweaks to the config file.
clokep f5c682b
Remove the /etc dir and consistenly refer to servers by non-TLS port.
clokep 0ddb5f5
Cross-link to the demo docs.
clokep 96bd5b1
Newsfragment
clokep d46c39b
Do not use short-notation for ports.
clokep File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Improve documentation for demo scripts. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
*.db | ||
*.log | ||
*.log.* | ||
*.pid | ||
|
||
/media_store.* | ||
/etc | ||
# Ignore all the temporary files from the demo servers. | ||
8080/ | ||
8081/ | ||
8082/ |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Synapse demo setup | ||
|
||
**DO NOT USE THESE DEMO SERVERS IN PRODUCTION** | ||
|
||
Requires you to have a [Synapse development environment setup](https://matrix-org.github.io/synapse/develop/development/contributing_guide.html#4-install-the-dependencies). | ||
|
||
The demo setup allows running three federation Synapse servers, with server | ||
names `localhost:8080`, `localhost:8081`, and `localhost:8082`. | ||
|
||
You can access them via any Matrix client over HTTP at `localhost:8080`, | ||
`localhost:8081`, and `localhost:8082` or over HTTPS at `localhost:8480`, | ||
`localhost:8481`, and `localhost:8482`. | ||
|
||
To enable the servers to communicate, self-signed SSL certificates are generated | ||
and the servers are configured in a highly insecure way, including: | ||
|
||
* Not checking certificates over federation. | ||
* Not verifying keys. | ||
|
||
The servers are configured to store their data under `demo/8080`, `demo/8081`, and | ||
`demo/8082`. This includes configuration, logs, SQLite databases, and media. | ||
|
||
Note that when joining a public room on a different HS via "#foo:bar.net", then | ||
you are (in the current impl) joining a room with room_id "foo". This means that | ||
it won't work if your HS already has a room with that name. | ||
|
||
## Using the demo scripts | ||
|
||
There's three main scripts with straightforward purposes: | ||
|
||
* `start.sh` will start the Synapse servers, generating any missing configuration. | ||
* This accepts a single parameter `--no-rate-limit` to "disable" rate limits | ||
(they actually still exist, but are very high). | ||
* `stop.sh` will stop the Synapse servers. | ||
* `clean.sh` will delete the configuration, databases, log files, etc. | ||
|
||
To start a completely new set of servers, run: | ||
|
||
```sh | ||
./demo/stop.sh; ./demo/clean.sh && ./demo/start.sh | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Heads up that this should be under
development/testing/demo.md
according to the doc docs.The fact many things in this file don't yet follow that convention is tracked at #11274.