add password
This commit is contained in:
parent
a62af21905
commit
cffcb36b2a
@ -3,3 +3,6 @@ PUBLIC_WORKER_URL=https://r2-upload-worker.YOUR_SUBDOMAIN.workers.dev
|
|||||||
|
|
||||||
# A random secret string — must match UPLOAD_SECRET set in the Worker
|
# A random secret string — must match UPLOAD_SECRET set in the Worker
|
||||||
PUBLIC_UPLOAD_SECRET=change-me-to-something-random
|
PUBLIC_UPLOAD_SECRET=change-me-to-something-random
|
||||||
|
|
||||||
|
# Password visitors must enter to access the upload page
|
||||||
|
PUBLIC_UPLOAD_PASSWORD=change-me-to-a-password
|
||||||
|
|||||||
@ -11,8 +11,10 @@ COPY . .
|
|||||||
|
|
||||||
ARG PUBLIC_WORKER_URL
|
ARG PUBLIC_WORKER_URL
|
||||||
ARG PUBLIC_UPLOAD_SECRET
|
ARG PUBLIC_UPLOAD_SECRET
|
||||||
|
ARG PUBLIC_UPLOAD_PASSWORD
|
||||||
ENV PUBLIC_WORKER_URL=$PUBLIC_WORKER_URL
|
ENV PUBLIC_WORKER_URL=$PUBLIC_WORKER_URL
|
||||||
ENV PUBLIC_UPLOAD_SECRET=$PUBLIC_UPLOAD_SECRET
|
ENV PUBLIC_UPLOAD_SECRET=$PUBLIC_UPLOAD_SECRET
|
||||||
|
ENV PUBLIC_UPLOAD_PASSWORD=$PUBLIC_UPLOAD_PASSWORD
|
||||||
|
|
||||||
RUN pnpm run build
|
RUN pnpm run build
|
||||||
|
|
||||||
|
|||||||
@ -7,6 +7,7 @@
|
|||||||
args:
|
args:
|
||||||
PUBLIC_WORKER_URL: ${PUBLIC_WORKER_URL}
|
PUBLIC_WORKER_URL: ${PUBLIC_WORKER_URL}
|
||||||
PUBLIC_UPLOAD_SECRET: ${PUBLIC_UPLOAD_SECRET}
|
PUBLIC_UPLOAD_SECRET: ${PUBLIC_UPLOAD_SECRET}
|
||||||
|
PUBLIC_UPLOAD_PASSWORD: ${PUBLIC_UPLOAD_PASSWORD}
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- "3001:80"
|
- "3001:80"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user