From 1aacd3f3403cb8643204a7ea235ea40f7de56de5 Mon Sep 17 00:00:00 2001 From: Georg Pfuetzenreuter Date: Sun, 12 Feb 2023 00:51:59 +0100 Subject: dericom02: manage matterbridge media - move base media directory to variable - add lighttpd vhosts to pillar Signed-off-by: Georg Pfuetzenreuter --- pillar/id/dericom02_rigel_lysergic_dev.sls | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/pillar/id/dericom02_rigel_lysergic_dev.sls b/pillar/id/dericom02_rigel_lysergic_dev.sls index 16792f1..61dcbc4 100644 --- a/pillar/id/dericom02_rigel_lysergic_dev.sls +++ b/pillar/id/dericom02_rigel_lysergic_dev.sls @@ -1,3 +1,5 @@ +{%- set mediapath = '/srv/matterbridge/' -%} + {%- macro discord_common() -%} AutoWebhooks: true EditSuffix: '(edited)' @@ -10,7 +12,7 @@ profile: libertacasa-general: general: MediaDownloadSize: 1000000000 - MediaDownloadPath: /srv/matterbridge/libertacasa-general/media + MediaDownloadPath: {{ mediapath }}libertacasa-general MediaServerDownload: https://load.casa accounts: irc.libertacasa: @@ -88,7 +90,7 @@ profile: IgnoreFailureOnStart: true MessageSplit: true MediaDownloadSize: 1000000000 - MediaDownloadPath: /srv/matterbridge/libertacasa-irc/media + MediaDownloadPath: {{ mediapath }}libertacasa-irc MediaServerDownload: https://irc.load.casa accounts: irc.libertacasa: @@ -219,3 +221,12 @@ profile: irc.libertacasa: '#music' irc.chillnet: '#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 -- cgit v1.2.3