|
||
---|---|---|
Dockerfile | ||
README.md |
README.md
pod-hedgedoc
Deploy
Dokku
dokku apps:create hedgedoc
dokku postgres:create hedgedoc
dokku postgres:link hedgedoc hedgedoc
dokku config:set --no-restart hedgedoc TZ=Europe/Rome
dokku config:set --no-restart hedgedoc CMD_DB_URL=<DATABASE_URL>
dokku config:unset --no-restart hedgedoc DATABASE_URL
dokku config:set --no-restart hedgedoc DOKKU_LETSENCRYPT_EMAIL=example@example.org
dokku config:set --no-restart hedgedoc CMD_DOMAIN=example.org
dokku config:set --no-restart hedgedoc CMD_PROTOCOL_USESSL=true
dokku config:set --no-restart hedgedoc CMD_ALLOW_ANONYMOUS=false
dokku config:set --no-restart hedgedoc CMD_ALLOW_ANONYMOUS_EDITS=false
dokku config:set --no-restart hedgedoc CMD_ALLOW_EMAIL_REGISTER=false
dokku config:set --no-restart hedgedoc CMD_DEFAULT_PERMISSION=limited
dokku storage:mount hedgedoc /var/lib/dokku/data/storage/hedgedoc:/hedgedoc/public/uploads
dokku proxy:ports-add hedgedoc http:80:3000
dokku proxy:ports-remove hedgedoc http:3000:3000
git push dokku main:main
dokku letsencrypt:enable hedgedoc
dokku letsencrypt:cron-job --add hedgedoc
NOTE: CMD_ALLOW_EMAIL_REGISTER=false
will disable registration so users must
be created using:
dokku run hedgedoc bin/manage_users --add example@example.org