From 4d01c4d75aafee4a0928daf8e8fa37c1857c31b6 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Sat, 31 Aug 2019 23:05:20 +0200 Subject: Install riot-web package and config MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Johannes Löthberg --- theos/files/riot.config.json | 48 ++++++++++++++++++++++++++++++++++++++++++++ theos/init.sls | 3 ++- theos/riot.sls | 14 +++++++++++++ 3 files changed, 64 insertions(+), 1 deletion(-) create mode 100644 theos/files/riot.config.json create mode 100644 theos/riot.sls (limited to 'theos') diff --git a/theos/files/riot.config.json b/theos/files/riot.config.json new file mode 100644 index 0000000..f6dd2df --- /dev/null +++ b/theos/files/riot.config.json @@ -0,0 +1,48 @@ +{ + "default_server_config": { + "m.homeserver": { + "base_url": "https://matrix.kyriasis.com", + "server_name": "kyriasis.com" + }, + "m.identity_server": { + "base_url": "https://vector.im" + } + }, + "disable_custom_urls": false, + "disable_guests": true, + "disable_login_language_selector": false, + "disable_3pid_login": false, + "brand": "Riot", + "integrations_ui_url": "https://scalar.vector.im/", + "integrations_rest_url": "https://scalar.vector.im/api", + "integrations_jitsi_widget_url": "https://scalar.vector.im/api/widgets/jitsi.html", + "bug_report_endpoint_url": "https://riot.im/bugreports/submit", + "defaultCountryCode": "GB", + "showLabsSettings": false, + "features": { + "feature_pinning": "labs", + "feature_custom_status": "labs", + "feature_custom_tags": "labs", + "feature_state_counters": "labs" + }, + "default_federate": true, + "default_theme": "light", + "roomDirectory": { + "servers": [ + "kyriasis.com", + "matrix.org" + ] + }, + "welcomeUserId": "@riot-bot:matrix.org", + "piwik": { + "url": "https://piwik.riot.im/", + "whitelistedHSUrls": ["https://matrix.org"], + "whitelistedISUrls": ["https://vector.im", "https://matrix.org"], + "siteId": 1 + }, + "enable_presence_by_hs_url": { + "https://matrix.org": false, + "https://archlinux.org": true, + "https://kyriasis.com": true + } +} diff --git a/theos/init.sls b/theos/init.sls index 43f88b7..14185ce 100644 --- a/theos/init.sls +++ b/theos/init.sls @@ -1,4 +1,5 @@ include: - - theos.nginx - theos.certs + - theos.nginx + - theos.riot - opensmtpd diff --git a/theos/riot.sls b/theos/riot.sls new file mode 100644 index 0000000..eb13836 --- /dev/null +++ b/theos/riot.sls @@ -0,0 +1,14 @@ +include: + - nginx + +riot-web: + pkg.installed: ~ + +config.json: + file.managed: + - name: /etc/webapps/riot/config.json + - source: salt://theos/files/riot.config.json + - require_in: + - service: nginx_service + - watch_in: + - service: nginx_service -- cgit v1.2.3-70-g09d2