Browse Source

Add files

master
BBaoVanC 7 months ago
parent
commit
cf2aca6b7b
  1. 2
      .gitignore
  2. 32
      docker-compose.yml
  3. 9
      manage.sh

2
.gitignore vendored

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

32
docker-compose.yml

@ -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

@ -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
Loading…
Cancel
Save