Merge pull request 'Matterbridge media' (#15) from matterbridge-media into production
All checks were successful
ci/lysergic/push/pipeline Pipeline was successful
All checks were successful
ci/lysergic/push/pipeline Pipeline was successful
Reviewed-on: #15
This commit is contained in:
commit
c9a157833b
@ -1,3 +1,5 @@
|
|||||||
|
{%- set mediapath = '/srv/matterbridge/' -%}
|
||||||
|
|
||||||
{%- macro discord_common() -%}
|
{%- macro discord_common() -%}
|
||||||
AutoWebhooks: true
|
AutoWebhooks: true
|
||||||
EditSuffix: '(edited)'
|
EditSuffix: '(edited)'
|
||||||
@ -10,7 +12,7 @@ profile:
|
|||||||
libertacasa-general:
|
libertacasa-general:
|
||||||
general:
|
general:
|
||||||
MediaDownloadSize: 1000000000
|
MediaDownloadSize: 1000000000
|
||||||
MediaDownloadPath: /srv/matterbridge/libertacasa-general/media
|
MediaDownloadPath: {{ mediapath }}libertacasa-general
|
||||||
MediaServerDownload: https://load.casa
|
MediaServerDownload: https://load.casa
|
||||||
accounts:
|
accounts:
|
||||||
irc.libertacasa:
|
irc.libertacasa:
|
||||||
@ -88,7 +90,7 @@ profile:
|
|||||||
IgnoreFailureOnStart: true
|
IgnoreFailureOnStart: true
|
||||||
MessageSplit: true
|
MessageSplit: true
|
||||||
MediaDownloadSize: 1000000000
|
MediaDownloadSize: 1000000000
|
||||||
MediaDownloadPath: /srv/matterbridge/libertacasa-irc/media
|
MediaDownloadPath: {{ mediapath }}libertacasa-irc
|
||||||
MediaServerDownload: https://irc.load.casa
|
MediaServerDownload: https://irc.load.casa
|
||||||
accounts:
|
accounts:
|
||||||
irc.libertacasa:
|
irc.libertacasa:
|
||||||
@ -219,3 +221,12 @@ profile:
|
|||||||
irc.libertacasa: '#music'
|
irc.libertacasa: '#music'
|
||||||
irc.chillnet: '#music'
|
irc.chillnet: '#music'
|
||||||
irc.stardust: '#music'
|
irc.stardust: '#music'
|
||||||
|
|
||||||
|
lighttpd:
|
||||||
|
vhosts:
|
||||||
|
matterbridge-general:
|
||||||
|
host: 'libertacasa-general\.matterbridge\.dericom02\.rigel\.lysergic\.dev'
|
||||||
|
root: {{ mediapath }}libertacasa-general
|
||||||
|
matterbridge-irc:
|
||||||
|
host: 'libertacasa-irc\.matterbridge\.dericom02\.rigel\.lysergic\.dev'
|
||||||
|
root: {{ mediapath }}libertacasa-irc
|
||||||
|
@ -37,6 +37,17 @@ matterbridge_files:
|
|||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
|
|
||||||
{%- for instance in instances %}
|
{%- for instance in instances %}
|
||||||
|
{%- if 'general' in instances[instance] and 'MediaDownloadPath' in instances[instance]['general'] %}
|
||||||
|
matterbridge_{{ instance }}_mediadir:
|
||||||
|
file.directory:
|
||||||
|
- name: {{ instances[instance]['general']['MediaDownloadPath'] }}
|
||||||
|
- user: matterbridge
|
||||||
|
{#- to-do: implement some shared group #}
|
||||||
|
- group: lighttpd
|
||||||
|
- mode: 750
|
||||||
|
- makedirs: True
|
||||||
|
{%- endif %}
|
||||||
|
|
||||||
matterbridge_{{ instance }}_service:
|
matterbridge_{{ instance }}_service:
|
||||||
service.running:
|
service.running:
|
||||||
- name: matterbridge@{{ instance }}.service
|
- name: matterbridge@{{ instance }}.service
|
||||||
|
Loading…
Reference in New Issue
Block a user