parent
94697fe755
commit
9c52986d76
|
@ -25,8 +25,8 @@ const test = base.extend<{
|
||||||
.withLogConsumer(logger.getConsumer("sliding-sync-proxy"))
|
.withLogConsumer(logger.getConsumer("sliding-sync-proxy"))
|
||||||
.withEnvironment({
|
.withEnvironment({
|
||||||
SYNCV3_SECRET: "bwahahaha",
|
SYNCV3_SECRET: "bwahahaha",
|
||||||
SYNCV3_DB: `user=postgres dbname=postgres password=${postgres.getPassword()} host=${postgres.getHost()} sslmode=disable`,
|
SYNCV3_DB: `user=postgres dbname=postgres password=${postgres.getPassword()} host=postgres sslmode=disable`,
|
||||||
SYNCV3_SERVER: `http://${homeserver.getNetworkNames()[0]}:8008`,
|
SYNCV3_SERVER: `http://homeserver:8008`,
|
||||||
})
|
})
|
||||||
.start();
|
.start();
|
||||||
|
|
||||||
|
|
|
@ -94,7 +94,7 @@ const DEFAULT_CONFIG = {
|
||||||
burst_count: 10000,
|
burst_count: 10000,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
media_store_path: "/data/media_store",
|
media_store_path: "/tmp/media_store",
|
||||||
max_upload_size: "50M",
|
max_upload_size: "50M",
|
||||||
max_image_pixels: "32M",
|
max_image_pixels: "32M",
|
||||||
dynamic_thumbnails: false,
|
dynamic_thumbnails: false,
|
||||||
|
@ -144,8 +144,6 @@ export class SynapseContainer extends GenericContainer {
|
||||||
|
|
||||||
const signingKey = randB64Bytes(32);
|
const signingKey = randB64Bytes(32);
|
||||||
this.withWaitStrategy(Wait.forHttp("/health", 8008)).withCopyContentToContainer([
|
this.withWaitStrategy(Wait.forHttp("/health", 8008)).withCopyContentToContainer([
|
||||||
// Create an empty file with permissive permissions to allow the container to write to it
|
|
||||||
{ target: "/data/media_store/.gitkeep", content: "", mode: 0o777 },
|
|
||||||
{ target: "/data/localhost.signing.key", content: `ed25519 x ${signingKey}` },
|
{ target: "/data/localhost.signing.key", content: `ed25519 x ${signingKey}` },
|
||||||
{
|
{
|
||||||
target: "/data/log.config",
|
target: "/data/log.config",
|
||||||
|
|
Loading…
Reference in New Issue