services: add Riot chat

This commit is contained in:
Bruno BELANYI 2020-08-20 16:00:02 +02:00
parent ffe635354c
commit 497698ed7e
3 changed files with 100 additions and 0 deletions

View file

@ -352,6 +352,17 @@ services:
expose: expose:
- 8008 - 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: recipes:
image: vabene1111/recipes image: vabene1111/recipes
restart: unless-stopped restart: unless-stopped

View file

@ -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;
}
}

50
riot/config.json Normal file
View file

@ -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"
}
}