feat: support cors origin
Some checks failed
ci/woodpecker/push/woodpecker/1 Pipeline failed
ci/woodpecker/push/woodpecker/3 Pipeline was successful
ci/woodpecker/push/woodpecker/2 Pipeline was successful

This commit is contained in:
f 2023-12-14 16:41:11 -03:00
parent ed5fc1d33d
commit 03444f0960
No known key found for this signature in database
2 changed files with 3 additions and 1 deletions

View file

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

View file

@ -20,6 +20,7 @@ case $1 in
--migrationsDir /srv/pocketbase/migrations \
--publicDir /srv/pocketbase/public \
--hooksDir /srv/pocketbase/hooks \
--encryptionEnv POCKETBASE_SECRET
--encryptionEnv POCKETBASE_SECRET \
--origins "${POCKETBASE_ORIGINS:-*}"
;;
esac