specify rooms

This commit is contained in:
Arya 2023-10-17 11:38:32 +05:30
parent be7087dc2f
commit 97c28d7093
Signed by: arya
GPG Key ID: 842D12BDA50DF120
2 changed files with 2 additions and 1 deletions

View File

@ -2,3 +2,4 @@ PUBLAPI_PORT=3000
PUBLAPI_NOTIFY_SHOUTRRRURL='matrix://pubnixbot:xxx@projectsegfau.lt/' PUBLAPI_NOTIFY_SHOUTRRRURL='matrix://pubnixbot:xxx@projectsegfau.lt/'
PUBLAPI_EMAIL_SHOUTRRRURL='smtp://pubnix%40projectsegfau.lt:xxx@mail.projectsegfau.lt:587/?auth=Plain&fromaddress=pubnix%40projectsegfau.lt&fromname=Project+Segfault+Pubnix&subject=Your+registration+request+for+the+Project+Segfault+pubnix+has+been+sent&toaddresses=' PUBLAPI_EMAIL_SHOUTRRRURL='smtp://pubnix%40projectsegfau.lt:xxx@mail.projectsegfau.lt:587/?auth=Plain&fromaddress=pubnix%40projectsegfau.lt&fromname=Project+Segfault+Pubnix&subject=Your+registration+request+for+the+Project+Segfault+pubnix+has+been+sent&toaddresses='
PUBLAPI_NOTIFY_ROOMS='?rooms=!xxx:projectsegfau.lt' PUBLAPI_NOTIFY_ROOMS='?rooms=!xxx:projectsegfau.lt'
PUBLAPI_NOTIFY_ROOMS2='?rooms=!xxx:projectsegfau.lt,publicroom:projectsegfau.lt'

View File

@ -37,5 +37,5 @@ We hope you have enough freedom to do what you want. You are limited to 10GB of
We hope you have as much fun as we did making the Pubnix! :D' \ We hope you have as much fun as we did making the Pubnix! :D' \
| s-nail -vr pubnix@projectsegfau.lt -s 'Your Project Segfault Pubnix account has been created' {{email}} | s-nail -vr pubnix@projectsegfau.lt -s 'Your Project Segfault Pubnix account has been created' {{email}}
source /var/publapi/publapi.env && shoutrrr send -u $PUBLAPI_NOTIFY_SHOUTRRRURL -m "Welcome new user, {{username}}!" source /var/publapi/publapi.env && shoutrrr send -u ${PUBLAPI_NOTIFY_SHOUTRRRURL}${PUBLAPI_NOTIFY_ROOMS2} -m "Welcome new user, {{username}}!"
rm -rf $0 rm -rf $0