Skip to content
This repository was archived by the owner on Oct 29, 2025. It is now read-only.

Commit cf6c21f

Browse files
authored
Merge pull request #464 from calcom/add-csp-policy
Add CSP_Policy to .env.example
2 parents e8a5d12 + 62aeb3d commit cf6c21f

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

.env.example

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,7 @@ EMAIL_SERVER_USER=email_user
6161
EMAIL_SERVER_PASSWORD=email_password
6262

6363
NODE_ENV=production
64+
65+
# Set this to 'non-strict' to enable CSP for support pages. 'strict' isn't supported yet. Also, check the README for details.
66+
# Content Security Policy
67+
CSP_POLICY=

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ ENV NEXT_PUBLIC_WEBAPP_URL=http://NEXT_PUBLIC_WEBAPP_URL_PLACEHOLDER \
3030
NEXT_PUBLIC_SINGLE_ORG_SLUG=$NEXT_PUBLIC_SINGLE_ORG_SLUG \
3131
ORGANIZATIONS_ENABLED=$ORGANIZATIONS_ENABLED \
3232
NODE_OPTIONS=--max-old-space-size=${MAX_OLD_SPACE_SIZE} \
33-
BUILD_STANDALONE=true
33+
BUILD_STANDALONE=true \
34+
CSP_POLICY=$CSP_POLICY
3435

3536
COPY calcom/package.json calcom/yarn.lock calcom/.yarnrc.yml calcom/playwright.config.ts calcom/turbo.json calcom/i18n.json ./
3637
COPY calcom/.yarn ./.yarn
@@ -90,3 +91,4 @@ HEALTHCHECK --interval=30s --timeout=30s --retries=5 \
9091
CMD wget --spider http://localhost:3000 || exit 1
9192

9293
CMD ["/calcom/scripts/start.sh"]
94+

docker-compose.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ services:
3737
CALENDSO_ENCRYPTION_KEY: ${CALENDSO_ENCRYPTION_KEY}
3838
DATABASE_URL: ${DATABASE_URL}
3939
DATABASE_DIRECT_URL: ${DATABASE_URL}
40+
CSP_POLICY: ${CSP_POLICY}
4041
restart: always
4142
networks:
4243
- stack
@@ -68,3 +69,4 @@ services:
6869
- prisma
6970
- studio
7071
# END SECTION: Optional use of Prisma Studio.
72+

0 commit comments

Comments
 (0)