Add ChillNet matterbridge #42

Merged
Georg merged 2 commits from chillnet into production 2023-04-09 21:24:25 +02:00
2 changed files with 39 additions and 6 deletions

View File

@ -224,6 +224,36 @@ profile:
irc.chillnet: '#music' irc.chillnet: '#music'
irc.stardust: '#music' irc.stardust: '#music'
chillnet:
general:
MediaDownloadSize: 1000000000
MediaDownloadPath: {{ mediapath }}chillnet
MediaServerDownload: https://uploads.chillnet.org
accounts:
irc.chillnet:
Server: irc.chillnet.org:6697
UseTLS: 'true'
UseSASL: 'true'
Nick: viaduct
NickServNick: viaduct
NickServPassword: ${'secret_matterbridge:chillnet:accounts:irc.chillnet:NickServPassword'}
ColorNicks: 'true'
Charset: utf8
MessageSplit: 'true'
MessageQueue: 60
UseRelayMsg: 'true'
RemoteNickFormat: '{NICK}/{LABEL}'
telegram.chillnet:
Token: ${'secret_matterbridge:chillnet:accounts:telegram.chillnet:Token'}
RemoteNickFormat: '<{NICK}> '
MessageFormat: HTMLNick
Label: tg
DisableWebPagePreview: 'true'
gateways:
fightclub:
irc.chillnet: '#fightclub'
telegram.chillnet: '-1001932699309'
lighttpd: lighttpd:
vhosts: vhosts:
matterbridge-general: matterbridge-general:
@ -232,6 +262,9 @@ profile:
matterbridge-irc: matterbridge-irc:
host: 'libertacasa-irc\.matterbridge\.dericom02\.rigel\.lysergic\.dev' host: 'libertacasa-irc\.matterbridge\.dericom02\.rigel\.lysergic\.dev'
root: {{ mediapath }}libertacasa-irc root: {{ mediapath }}libertacasa-irc
matterbridge-chillnet:
host: 'chillnet\.matterbridge\.dericom02\.rigel\.lysergic\.dev'
root: {{ mediapath }}chill
firewalld: firewalld:
zones: zones:

View File

@ -44,15 +44,15 @@
- proxy_set_header: Host $http_host - proxy_set_header: Host $http_host
- resolver: '{{ resolver }} ipv4=off valid=24h' - resolver: '{{ resolver }} ipv4=off valid=24h'
{%- endmacro -%} {%- endmacro -%}
{%- macro matterbridge_media(name) -%} {%- macro matterbridge_media(domain, name) -%}
- server: - server:
- include: - include:
- snippets/listen - snippets/listen
- snippets/tls_load - snippets/tls_load
- snippets/tls - snippets/tls
- server_name: {% if name == 'general' %}load.casa{%- else %}{{ name ~ '.load.casa' }}{%- endif %} - server_name: {{ domain }}
- location /: - location /:
- proxy_pass: http://libertacasa-{{ name }}.matterbridge.dericom02.rigel.lysergic.dev - proxy_pass: http://{{ name }}.matterbridge.dericom02.rigel.lysergic.dev
{%- endmacro -%} {%- endmacro -%}
nginx: nginx:
@ -316,9 +316,9 @@ nginx:
matterbridge.conf: matterbridge.conf:
config: config:
{{ matterbridge_media('general') }} {{ matterbridge_media('load.casa', 'libertacasa-general') }}
{{ matterbridge_media('irc') }} {{ matterbridge_media('irc.load.casa', 'libertacasa-irc') }}
{{ matterbridge_media('uploads.chillnet.org', 'chillnet') }}
Review

Could have left the empty line before meet.conf, but it’s no problem. ;-)

Could have left the empty line before `meet.conf`, but it's no problem. ;-)
meet.conf: meet.conf:
config: config:
- server: - server: