From 497698ed7e315f50c516e2416c00555d5cef957e Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Thu, 20 Aug 2020 16:00:02 +0200 Subject: [PATCH] services: add Riot chat --- docker-compose.yml | 11 ++++ .../nginx/proxy-confs/chat.subdomain.conf | 39 +++++++++++++++ riot/config.json | 50 +++++++++++++++++++ 3 files changed, 100 insertions(+) create mode 100644 letsencrypt/nginx/proxy-confs/chat.subdomain.conf create mode 100644 riot/config.json diff --git a/docker-compose.yml b/docker-compose.yml index b644d39..369e41c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -352,6 +352,17 @@ services: expose: - 8008 + riot: + image: vectorim/riot-web:v1.7.4 + restart: unless-stopped + container_name: riot + volumes: + - ./riot/config.json:/app/config.json + expose: + - 80 + ports: + - 8080:80 + recipes: image: vabene1111/recipes restart: unless-stopped diff --git a/letsencrypt/nginx/proxy-confs/chat.subdomain.conf b/letsencrypt/nginx/proxy-confs/chat.subdomain.conf new file mode 100644 index 0000000..f0ba177 --- /dev/null +++ b/letsencrypt/nginx/proxy-confs/chat.subdomain.conf @@ -0,0 +1,39 @@ +# make sure that your dns has a cname set for riot and that your riot container is not using a base url + +server { + listen 443 ssl; + listen [::]:443 ssl; + + server_name chat.*; + + include /config/nginx/ssl.conf; + + client_max_body_size 0; + + # enable for ldap auth, fill in ldap details in ldap.conf + #include /config/nginx/ldap.conf; + + # enable for Authelia + #include /config/nginx/authelia-server.conf; + + location / { + # enable the next two lines for http auth + #auth_basic "Restricted"; + #auth_basic_user_file /config/nginx/.htpasswd; + + # enable the next two lines for ldap auth + #auth_request /auth; + #error_page 401 =200 /ldaplogin; + + # enable for Authelia + #include /config/nginx/authelia-location.conf; + + include /config/nginx/proxy.conf; + resolver 127.0.0.11 valid=30s; + set $upstream_app riot; + set $upstream_port 80; + set $upstream_proto http; + proxy_pass $upstream_proto://$upstream_app:$upstream_port; + + } +} diff --git a/riot/config.json b/riot/config.json new file mode 100644 index 0000000..4e77079 --- /dev/null +++ b/riot/config.json @@ -0,0 +1,50 @@ +{ + "default_server_config": { + "m.homeserver": { + "base_url": "https://matrix.belanyi.fr", + "server_name": "belanyi.fr" + }, + "m.identity_server": { + "base_url": "https://vector.im" + } + }, + "disable_custom_urls": false, + "disable_guests": false, + "disable_login_language_selector": false, + "disable_3pid_login": false, + "brand": "Element", + "integrations_ui_url": "https://scalar.vector.im/", + "integrations_rest_url": "https://scalar.vector.im/api", + "integrations_widgets_urls": [ + "https://scalar.vector.im/_matrix/integrations/v1", + "https://scalar.vector.im/api", + "https://scalar-staging.vector.im/_matrix/integrations/v1", + "https://scalar-staging.vector.im/api", + "https://scalar-staging.riot.im/scalar/api" + ], + "bug_report_endpoint_url": "https://riot.im/bugreports/submit", + "defaultCountryCode": "FR", + "showLabsSettings": true, + "features": { + "feature_new_spinner": "labs", + "feature_pinning": "labs", + "feature_custom_status": "labs", + "feature_custom_tags": "labs", + "feature_state_counters": "labs" + }, + "default_federate": true, + "default_theme": "dark", + "roomDirectory": { + "servers": [ + "matrix.org", + "mozilla.org" + ] + }, + "piwik": false, + "settingDefaults": { + "breadcrumbs": true + }, + "jitsi": { + "preferredDomain": "jitsi.riot.im" + } +}