From 9bf29b20dc71fbd545cc18ff11aecb413c850f75 Mon Sep 17 00:00:00 2001 From: f Date: Tue, 12 Dec 2023 10:47:20 -0300 Subject: [PATCH] feat: encryption key --- Dockerfile | 1 + pocketbased.sh | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 2f8d923..3bf496e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 " +ENV POCKETBASE_SECRET 11111111111111111111111111111111 RUN apk add --no-cache pocketbase daemonize COPY ./pocketbased.sh /usr/local/bin/pocketbased diff --git a/pocketbased.sh b/pocketbased.sh index 7592873..5fcd92b 100755 --- a/pocketbased.sh +++ b/pocketbased.sh @@ -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