From 0fd1d45e9bd43ad6fb9de98994e02474343d45da Mon Sep 17 00:00:00 2001 From: Hillebrand van de Groep Date: Sat, 8 Oct 2016 18:08:59 +0200 Subject: [PATCH] added example configuration --- asconfig.yaml.example | 15 +++++++++++++++ config.json.example | 20 ++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 asconfig.yaml.example create mode 100644 config.json.example diff --git a/asconfig.yaml.example b/asconfig.yaml.example new file mode 100644 index 0000000..f405716 --- /dev/null +++ b/asconfig.yaml.example @@ -0,0 +1,15 @@ +url: "http://localhost:5000" + +as_token: "AS_TOKEN_HERE" +hs_token: "HS_TOKEN_HERE" +id: "telematrix" + +sender_localpart: telegram +namespaces: + users: + - exclusive: true + regex: '@telegram_.*' + rooms: [] + aliases: + - exclusive: false + regex: '#telegram_.*' diff --git a/config.json.example b/config.json.example new file mode 100644 index 0000000..d07eaba --- /dev/null +++ b/config.json.example @@ -0,0 +1,20 @@ +{ + "tokens": { + "hs": "HS_KEY", + "as": "AS_KEY", + "telegram": "TELEGRAM_BOT_API_KEY", + "google": "GOOGLE_API_KEY" + }, + + "hosts": { + "internal": "http://127.0.0.1:PORT/", + "external": "https://DOMAIN.TLD/" + }, + + "chats": { + "-TELEGRAM_ID": "!INTERNAL_ID:DOMAIN.TLD" + }, + + "user_id_format": "@telegram_{}:DOMAIN.TLD" +} +