aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorNeil Alexander <neilalexander@users.noreply.github.com>2022-10-03 13:05:58 +0100
committerNeil Alexander <neilalexander@users.noreply.github.com>2022-10-03 13:05:58 +0100
commit50fa50a3430eed79ddf897d9841fe0b652a32341 (patch)
tree5ed003fa2a61fdea34575cbe64cff43f5642ddeb /cmd
parentfec3ee384bad7f05e13893a97f65590d2284438b (diff)
Update P2P base directories
Diffstat (limited to 'cmd')
-rw-r--r--cmd/dendrite-demo-pinecone/main.go3
-rw-r--r--cmd/dendrite-demo-yggdrasil/main.go3
2 files changed, 6 insertions, 0 deletions
diff --git a/cmd/dendrite-demo-pinecone/main.go b/cmd/dendrite-demo-pinecone/main.go
index fb988ebe..be34365b 100644
--- a/cmd/dendrite-demo-pinecone/main.go
+++ b/cmd/dendrite-demo-pinecone/main.go
@@ -143,6 +143,9 @@ func main() {
cfg.MSCs.Database.ConnectionString = config.DataSource(fmt.Sprintf("file:%s-mscs.db", filepath.Join(*instanceDir, *instanceName)))
cfg.ClientAPI.RegistrationDisabled = false
cfg.ClientAPI.OpenRegistrationWithoutVerificationEnabled = true
+ cfg.MediaAPI.BasePath = config.Path(*instanceDir)
+ cfg.SyncAPI.Fulltext.Enabled = true
+ cfg.SyncAPI.Fulltext.IndexPath = config.Path(*instanceDir)
if err := cfg.Derive(); err != nil {
panic(err)
}
diff --git a/cmd/dendrite-demo-yggdrasil/main.go b/cmd/dendrite-demo-yggdrasil/main.go
index cd006667..38c25cde 100644
--- a/cmd/dendrite-demo-yggdrasil/main.go
+++ b/cmd/dendrite-demo-yggdrasil/main.go
@@ -134,6 +134,9 @@ func main() {
cfg.MSCs.Database.ConnectionString = config.DataSource(fmt.Sprintf("file:%s-mscs.db", filepath.Join(*instanceDir, *instanceName)))
cfg.ClientAPI.RegistrationDisabled = false
cfg.ClientAPI.OpenRegistrationWithoutVerificationEnabled = true
+ cfg.MediaAPI.BasePath = config.Path(*instanceDir)
+ cfg.SyncAPI.Fulltext.Enabled = true
+ cfg.SyncAPI.Fulltext.IndexPath = config.Path(*instanceDir)
if err := cfg.Derive(); err != nil {
panic(err)
}