summaryrefslogtreecommitdiffstats
path: root/theos
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2019-08-31 23:05:20 +0200
committerJohannes Löthberg <johannes@kyriasis.com>2019-08-31 23:05:20 +0200
commit4d01c4d75aafee4a0928daf8e8fa37c1857c31b6 (patch)
treeb0d9a7f6858e69b8df680bd24a7f0dbf0f52a66b /theos
parent53af9a2e061558cc129e666985ebea1683506481 (diff)
downloadfile-4d01c4d75aafee4a0928daf8e8fa37c1857c31b6.tar.xz
Install riot-web package and config
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
Diffstat (limited to 'theos')
-rw-r--r--theos/files/riot.config.json48
-rw-r--r--theos/init.sls3
-rw-r--r--theos/riot.sls14
3 files changed, 64 insertions, 1 deletions
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