feat: encryption key

This commit is contained in:
f 2023-12-12 10:47:20 -03:00
parent 93022c2e6e
commit 9bf29b20dc
No known key found for this signature in database
2 changed files with 3 additions and 1 deletions

View file

@ -2,6 +2,7 @@ ARG ALPINE_VERSION=3.18.3
ARG BASE_IMAGE=gitea.nulo.in/sutty/monit
FROM ${BASE_IMAGE}:${ALPINE_VERSION}
MAINTAINER "nulo <nulo@sutty.nl>"
ENV POCKETBASE_SECRET 11111111111111111111111111111111
RUN apk add --no-cache pocketbase daemonize
COPY ./pocketbased.sh /usr/local/bin/pocketbased

View file

@ -19,6 +19,7 @@ case $1 in
--dir /srv/pocketbase/data \
--migrationsDir /srv/pocketbase/migrations \
--publicDir /srv/pocketbase/public \
--hooksDir /srv/pocketbase/hooks
--hooksDir /srv/pocketbase/hooks \
--encryptionEnv POCKETBASE_SECRET
;;
esac