Add files

This commit is contained in:
BBaoVanC 2021-10-23 23:33:28 -05:00
parent ab54d9e8cd
commit cf2aca6b7b
3 changed files with 43 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
.env
data/

32
docker-compose.yml Normal file
View File

@ -0,0 +1,32 @@
version: '3'
services:
remark:
image: umputun/remark42:master
restart: always
environment:
- REMARK_URL=https://remark.boba.best
- SITE=bbaovanc.com,boba.best,remark
- SECRET
- STORE_BOLT_PATH=/srv/var/db
- BACKUP_PATH=/srv/var/backup
- ADMIN_SHARED_ID=github_4cb43a41df2719c23f1aafc06d7a844288354217,email_3a84cbdb570d38d183c1d046e08974e15a2a156a
- ADMIN_PASSWD
- ADMIN_SHARED_EMAIL=bbaovanc@bbaovanc.com
- AUTH_ANON=true
- AUTH_GITHUB_CID
- AUTH_GITHUB_CSEC
- AUTH_EMAIL_ENABLE=true
- AUTH_EMAIL_FROM=remark@boba.best
- SMTP_HOST=mail.boba.best
- SMTP_PORT=465
- SMTP_TLS=true
- SMTP_USERNAME=remark@boba.best
- SMTP_PASSWORD
- NOTIFY_EMAIL_FROM=remark@boba.best
- NOTIFY_ADMINS=email
- NOTIFY_USERS=email
volumes:
- ./data/remark/var:/srv/var
ports:
- 127.0.0.1:86:8080

9
manage.sh Executable file
View File

@ -0,0 +1,9 @@
#!/bin/sh
case "$1" in
remap)
shift
echo "Running remap command for \`data/remark/var/rules\` for site \"$1\""
docker-compose exec remark remark42 remap --admin-passwd "$(grep -Po '(?<=ADMIN_PASSWD=).*$' .env)" -f var/rules -s "$1"
;;
esac