feat: encryption key
This commit is contained in:
parent
93022c2e6e
commit
9bf29b20dc
2 changed files with 3 additions and 1 deletions
|
@ -2,6 +2,7 @@ ARG ALPINE_VERSION=3.18.3
|
||||||
ARG BASE_IMAGE=gitea.nulo.in/sutty/monit
|
ARG BASE_IMAGE=gitea.nulo.in/sutty/monit
|
||||||
FROM ${BASE_IMAGE}:${ALPINE_VERSION}
|
FROM ${BASE_IMAGE}:${ALPINE_VERSION}
|
||||||
MAINTAINER "nulo <nulo@sutty.nl>"
|
MAINTAINER "nulo <nulo@sutty.nl>"
|
||||||
|
ENV POCKETBASE_SECRET 11111111111111111111111111111111
|
||||||
|
|
||||||
RUN apk add --no-cache pocketbase daemonize
|
RUN apk add --no-cache pocketbase daemonize
|
||||||
COPY ./pocketbased.sh /usr/local/bin/pocketbased
|
COPY ./pocketbased.sh /usr/local/bin/pocketbased
|
||||||
|
|
|
@ -19,6 +19,7 @@ case $1 in
|
||||||
--dir /srv/pocketbase/data \
|
--dir /srv/pocketbase/data \
|
||||||
--migrationsDir /srv/pocketbase/migrations \
|
--migrationsDir /srv/pocketbase/migrations \
|
||||||
--publicDir /srv/pocketbase/public \
|
--publicDir /srv/pocketbase/public \
|
||||||
--hooksDir /srv/pocketbase/hooks
|
--hooksDir /srv/pocketbase/hooks \
|
||||||
|
--encryptionEnv POCKETBASE_SECRET
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Reference in a new issue