mirror of
https://github.com/matrix-org/matrix-hookshot.git
synced 2025-03-10 21:19:13 +00:00
Configurable bridge store
This commit is contained in:
parent
8120f66405
commit
f6c7a2fe24
@ -23,6 +23,7 @@ bridge:
|
|||||||
mediaUrl: http://example.com/
|
mediaUrl: http://example.com/
|
||||||
port: 9993 # Port the appservice is binding to
|
port: 9993 # Port the appservice is binding to
|
||||||
bindAddress: 127.0.0.1 # Address to bind to
|
bindAddress: 127.0.0.1 # Address to bind to
|
||||||
|
store: "bridgestore.json"
|
||||||
queue:
|
queue:
|
||||||
monolithic: true # If this is false, use a Redis server as a queue.
|
monolithic: true # If this is false, use a Redis server as a queue.
|
||||||
port: 6379 # Port for the redis server, omit for 6379
|
port: 6379 # Port for the redis server, omit for 6379
|
||||||
|
@ -26,6 +26,7 @@ export interface BridgeConfig {
|
|||||||
mediaUrl: string;
|
mediaUrl: string;
|
||||||
port: number;
|
port: number;
|
||||||
bindAddress: string;
|
bindAddress: string;
|
||||||
|
store: string;
|
||||||
};
|
};
|
||||||
queue: {
|
queue: {
|
||||||
monolithic: boolean;
|
monolithic: boolean;
|
||||||
|
@ -46,7 +46,7 @@ export class GithubBridge {
|
|||||||
userAgent: "matrix-github v0.0.1",
|
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({
|
this.as = new Appservice({
|
||||||
homeserverName: this.config.bridge.domain,
|
homeserverName: this.config.bridge.domain,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user