feat: support cors origin
This commit is contained in:
parent
ed5fc1d33d
commit
03444f0960
2 changed files with 3 additions and 1 deletions
|
@ -3,6 +3,7 @@ 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
|
ENV POCKETBASE_SECRET 11111111111111111111111111111111
|
||||||
|
ENV POCKETBASE_ORIGINS ""
|
||||||
|
|
||||||
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
|
||||||
|
|
|
@ -20,6 +20,7 @@ case $1 in
|
||||||
--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
|
--encryptionEnv POCKETBASE_SECRET \
|
||||||
|
--origins "${POCKETBASE_ORIGINS:-*}"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Reference in a new issue