Configurable bridge store

This commit is contained in:
Half-Shot 2019-08-08 15:42:56 +01:00
parent 8120f66405
commit f6c7a2fe24
3 changed files with 3 additions and 1 deletions

View File

@ -23,6 +23,7 @@ bridge:
mediaUrl: http://example.com/
port: 9993 # Port the appservice is binding to
bindAddress: 127.0.0.1 # Address to bind to
store: "bridgestore.json"
queue:
monolithic: true # If this is false, use a Redis server as a queue.
port: 6379 # Port for the redis server, omit for 6379

View File

@ -26,6 +26,7 @@ export interface BridgeConfig {
mediaUrl: string;
port: number;
bindAddress: string;
store: string;
};
queue: {
monolithic: boolean;

View File

@ -46,7 +46,7 @@ export class GithubBridge {
userAgent: "matrix-github v0.0.1",
});
const storage = new SimpleFsStorageProvider("bridgestore.js");
const storage = new SimpleFsStorageProvider(this.config.bridge.store || "bridgestore.json");
this.as = new Appservice({
homeserverName: this.config.bridge.domain,