-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add application service support to blueprints (#74)
* Add application service support to blueprints Split out from #68 * Revert always showing logs * Add comment doc * Some nits and remove the volume paths - Seems like the `Volumes` syntax is to create an anonymous volume, https://stackoverflow.com/a/58916037/796832 - And lots of people not knowing what `Volumes` syntax is or what to do. Seems like Mounts is the thing to use - fsouza/go-dockerclient#155 - https://stackoverflow.com/questions/55718603/golang-docker-library-mounting-host-directory-volumes - https://stackoverflow.com/questions/48470194/defining-a-mount-point-for-volumes-in-golang-docker-sdk * Address review and add comment docs * Revert lint change already in other PR #73 * Path escape AS IDs to avoid directory traversal attacks Co-authored-by: Kegan Dougal <kegan@matrix.org>
- Loading branch information
1 parent
f089b60
commit 5d63375
Showing
7 changed files
with
242 additions
and
52 deletions.
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
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,25 @@ | ||
package b | ||
|
||
// BlueprintHSWithApplicationService who has an application service to interact with | ||
var BlueprintHSWithApplicationService = MustValidate(Blueprint{ | ||
Name: "alice", | ||
Homeservers: []Homeserver{ | ||
{ | ||
Name: "hs1", | ||
Users: []User{ | ||
{ | ||
Localpart: "@alice", | ||
DisplayName: "Alice", | ||
}, | ||
}, | ||
ApplicationServices: []ApplicationService{ | ||
{ | ||
ID: "my_as_id", | ||
URL: "http://localhost:9000", | ||
SenderLocalpart: "the-bridge-user", | ||
RateLimited: false, | ||
}, | ||
}, | ||
}, | ||
}, | ||
}) |
Oops, something went wrong.