Remove config.json from repo, move to gitignore. Change api_host to 10.0.1.2
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -21,3 +21,5 @@ Thumbs.db
|
|||||||
# Project-specific
|
# Project-specific
|
||||||
bridge-state.json
|
bridge-state.json
|
||||||
*.log
|
*.log
|
||||||
|
|
||||||
|
config.json
|
||||||
|
|||||||
23
config.json
23
config.json
@@ -1,23 +0,0 @@
|
|||||||
{
|
|
||||||
"matrix": {
|
|
||||||
"server": "matrix.daedalus706.de",
|
|
||||||
"user_id": "@lucy:matrix.daedalus706.de",
|
|
||||||
"room_id": "!8zLJacfaL2WYoYVp:matrix.daedalus706.de",
|
|
||||||
"credentials_file": "/home/admin/auth/matrix-credentials.txt"
|
|
||||||
},
|
|
||||||
"agent": {
|
|
||||||
"base_url": "http://10.0.1.2:8080"
|
|
||||||
},
|
|
||||||
"bridge": {
|
|
||||||
"poll_interval_seconds": 1,
|
|
||||||
"state_file": "/home/admin/agent-dir/bridge-state.json",
|
|
||||||
"matrix_poll_timeout": 0,
|
|
||||||
"agent_timeout_seconds": 30,
|
|
||||||
"agent_retries": 3,
|
|
||||||
"max_message_length": 40000,
|
|
||||||
"processed_ids_limit": 200,
|
|
||||||
"agent_response_timeout": 300,
|
|
||||||
"api_host": "127.0.0.1",
|
|
||||||
"api_port": 8082
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -37,7 +37,7 @@ class BridgeConfig:
|
|||||||
max_message_length: int = 40000
|
max_message_length: int = 40000
|
||||||
processed_ids_limit: int = 200
|
processed_ids_limit: int = 200
|
||||||
agent_response_timeout: int = 300
|
agent_response_timeout: int = 300
|
||||||
api_host: str = "127.0.0.1"
|
api_host: str = "10.0.1.2"
|
||||||
api_port: int = 8082
|
api_port: int = 8082
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user