mirror of
https://github.com/yusufipk/OpenFrame.git
synced 2026-09-11 09:36:08 +00:00
fix: generate CSP from runtime storage env for self-hosted MinIO
Move Content-Security-Policy generation to proxy.ts so R2_PRESIGN_ENDPOINT is included at request time instead of being frozen at image build time. Document reverse-proxy layouts for Docker self-hosting and copy proxy.ts into the Docker image. Closes #17
This commit is contained in:
@@ -16,6 +16,7 @@ COPY scripts ./scripts
|
||||
COPY types ./types
|
||||
COPY components.json ./components.json
|
||||
COPY next.config.ts ./next.config.ts
|
||||
COPY proxy.ts ./proxy.ts
|
||||
COPY postcss.config.mjs ./postcss.config.mjs
|
||||
COPY prisma.config.ts ./prisma.config.ts
|
||||
COPY tsconfig.json ./tsconfig.json
|
||||
@@ -36,6 +37,7 @@ RUN apt-get update \
|
||||
COPY --from=build /app/package.json ./package.json
|
||||
COPY --from=build /app/bun.lock ./bun.lock
|
||||
COPY --from=build /app/next.config.ts ./next.config.ts
|
||||
COPY --from=build /app/proxy.ts ./proxy.ts
|
||||
COPY --from=build /app/public ./public
|
||||
COPY --from=build /app/prisma ./prisma
|
||||
COPY --from=build /app/scripts ./scripts
|
||||
|
||||
Reference in New Issue
Block a user