Compare commits
262 Commits
example/lo
...
arm-option
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3a030784b6 | ||
|
|
32e3bd8de9 | ||
|
|
27821a9299 | ||
|
|
6d7ce07be7 | ||
|
|
306cf408c0 | ||
|
|
a9726a7f07 | ||
|
|
2cfd6bc5d3 | ||
|
|
566bf106ee | ||
|
|
db1791a827 | ||
|
|
b0c52392f9 | ||
|
|
8b23568c4b | ||
|
|
35cdfa1d5a | ||
|
|
6134a66c2d | ||
|
|
6091f121f7 | ||
|
|
049bdcb02b | ||
|
|
db89df9e20 | ||
|
|
0e50ceaaba | ||
|
|
0109dbba14 | ||
|
|
1933beb5da | ||
|
|
294d8e31f7 | ||
|
|
25dbb33e92 | ||
|
|
2449ae5150 | ||
|
|
8da9ae1b1b | ||
|
|
adc3884458 | ||
|
|
40185b75b6 | ||
|
|
25f6e0e417 | ||
|
|
fd0e00e1ac | ||
|
|
653ca5fd21 | ||
|
|
af336f8293 | ||
|
|
ad98a1da40 | ||
|
|
b56b94ed62 | ||
|
|
c283a92614 | ||
|
|
9e6cc5d7f8 | ||
|
|
1ac3e4870f | ||
|
|
d87f0ef683 | ||
|
|
50aed20cc3 | ||
|
|
09ee6ff398 | ||
|
|
a345e83d60 | ||
|
|
c8c8a6b1be | ||
|
|
a7937f8b9f | ||
|
|
120b9cf3c9 | ||
|
|
19e95414ec | ||
|
|
5b4bd44810 | ||
|
|
34e8bd6749 | ||
|
|
7ede5e02e0 | ||
|
|
a31b9282ff | ||
|
|
808cd2e5ea | ||
|
|
1da04ab487 | ||
|
|
319d2bd5c7 | ||
|
|
bd197b4e33 | ||
|
|
f74b638c98 | ||
|
|
6ee82e4275 | ||
|
|
4726af439b | ||
|
|
f6f6289578 | ||
|
|
10c0247a15 | ||
|
|
5a9b65e0d5 | ||
|
|
0de4e2a0ca | ||
|
|
03c15c8c30 | ||
|
|
66207073fd | ||
|
|
2044d462a3 | ||
|
|
7d46413f2a | ||
|
|
323bff9f28 | ||
|
|
9229e0dcec | ||
|
|
deb3cafa38 | ||
|
|
757e41040e | ||
|
|
20abf2d6dc | ||
|
|
a853f3570d | ||
|
|
f10b76835c | ||
|
|
036ab05a93 | ||
|
|
1206d39845 | ||
|
|
351cee52fb | ||
|
|
ec2ef498e7 | ||
|
|
002ec4f566 | ||
|
|
93d8908606 | ||
|
|
dedc1b9ab6 | ||
|
|
4e66fd6de9 | ||
|
|
91459e9301 | ||
|
|
51106874d4 | ||
|
|
76f812d897 | ||
|
|
1a344b1e74 | ||
|
|
46185c869b | ||
|
|
4c1e9f389f | ||
|
|
a08ccae05e | ||
|
|
2cd6d307d1 | ||
|
|
9d17d76695 | ||
|
|
ef164c371f | ||
|
|
23db2b1ecc | ||
|
|
4004acaee2 | ||
|
|
4ee8207f15 | ||
|
|
5b6b7dbee0 | ||
|
|
b34cda8d70 | ||
|
|
4aa444241d | ||
|
|
b6a59d30d1 | ||
|
|
e41ff005c0 | ||
|
|
ac52781a2e | ||
|
|
7ed164ff72 | ||
|
|
77cc30ff6f | ||
|
|
f81c5c94ce | ||
|
|
0825606ab0 | ||
|
|
9c51263310 | ||
|
|
0775b95d90 | ||
|
|
22c83c85fc | ||
|
|
1edb9195db | ||
|
|
b5104c0c89 | ||
|
|
ceb6bc55d8 | ||
|
|
ce1c466480 | ||
|
|
58ad666150 | ||
|
|
02df3c7449 | ||
|
|
a030c32b8b | ||
|
|
abe8664c56 | ||
|
|
14663be364 | ||
|
|
f1881230ab | ||
|
|
56139e9908 | ||
|
|
78daad84a0 | ||
|
|
0b84707351 | ||
|
|
6de505cc90 | ||
|
|
f7ea2cfef4 | ||
|
|
fd3f83bb00 | ||
|
|
00f74b0bd7 | ||
|
|
fc2feee502 | ||
|
|
b5236c3ffc | ||
|
|
a9bdde108b | ||
|
|
c3eeb3cfdf | ||
|
|
d7e2497bd8 | ||
|
|
ea9bb0c0cf | ||
|
|
20535e8b04 | ||
|
|
5a813f8683 | ||
|
|
9b3c781605 | ||
|
|
51f0c2c287 | ||
|
|
11fdd9ac86 | ||
|
|
b3923207e6 | ||
|
|
08a3caeb35 | ||
|
|
679a7ef89e | ||
|
|
2c955b8d16 | ||
|
|
f0672aa3f2 | ||
|
|
3bbe19427b | ||
|
|
2e85d98650 | ||
|
|
869d729e02 | ||
|
|
e05a9caa03 | ||
|
|
f7955a6aad | ||
|
|
2f66070106 | ||
|
|
f843f997be | ||
|
|
c5a4b03d66 | ||
|
|
89fa6b3d27 | ||
|
|
0bbff68c65 | ||
|
|
7fd09ede40 | ||
|
|
89e7aafeac | ||
|
|
c6ee520d85 | ||
|
|
83387bea9f | ||
|
|
05ebcc826e | ||
|
|
e35c759b55 | ||
|
|
eb7d4eafa4 | ||
|
|
dc48f38dda | ||
|
|
1d5268f756 | ||
|
|
685aa6b11c | ||
|
|
f78d40d2e7 | ||
|
|
6f47b367a0 | ||
|
|
94d5893c4e | ||
|
|
73640fe382 | ||
|
|
ec19812e77 | ||
|
|
da59afd476 | ||
|
|
020f0cbdab | ||
|
|
7ff182f0ed | ||
|
|
24730e2193 | ||
|
|
f85a68515e | ||
|
|
a29e342492 | ||
|
|
139f8f4f0e | ||
|
|
8b14ee6ffd | ||
|
|
2c38c97501 | ||
|
|
d2b65080ae | ||
|
|
7d174536d4 | ||
|
|
5959bc1fd3 | ||
|
|
994d5e1ba1 | ||
|
|
f64e6406c1 | ||
|
|
f72731aa62 | ||
|
|
5c5ef9ba0b | ||
|
|
fb8d9248f7 | ||
|
|
5259bc3faf | ||
|
|
29f1c5704a | ||
|
|
fb99616960 | ||
|
|
fbfa063d9e | ||
|
|
c0a33233ae | ||
|
|
623ddeb74c | ||
|
|
f65f82ab78 | ||
|
|
392afd77db | ||
|
|
97f7b356cf | ||
|
|
0bd59bf2ac | ||
|
|
09220c2134 | ||
|
|
e9b9ce423c | ||
|
|
c944050d9c | ||
|
|
5641dce2bd | ||
|
|
99e92dc4b8 | ||
|
|
e041b53b97 | ||
|
|
0f939dcf85 | ||
|
|
ceabd8f781 | ||
|
|
d76176123b | ||
|
|
0670f1e674 | ||
|
|
d721066f9e | ||
|
|
45da95bdb7 | ||
|
|
079faf0ee3 | ||
|
|
ff84aa98ad | ||
|
|
42f995d430 | ||
|
|
332735182e | ||
|
|
f4fd5878e1 | ||
|
|
6a453b2465 | ||
|
|
abbcf8daac | ||
|
|
b39fc8d1f9 | ||
|
|
01a7d467e5 | ||
|
|
b2a9072e42 | ||
|
|
56365d0982 | ||
|
|
433ee87c84 | ||
|
|
fdd6be12c7 | ||
|
|
b7c5f15d08 | ||
|
|
30722960fb | ||
|
|
8139d21f47 | ||
|
|
af714cfa43 | ||
|
|
cdb45c8fe3 | ||
|
|
86f8c4e9c9 | ||
|
|
60557d31fd | ||
|
|
a13e5d22df | ||
|
|
05560ff1a3 | ||
|
|
8e9aad3ea2 | ||
|
|
f3942ca6f5 | ||
|
|
0e4f565b27 | ||
|
|
1158d0905c | ||
|
|
12b1e8509f | ||
|
|
ca0370b497 | ||
|
|
9f0800d5ce | ||
|
|
4bccd8ae31 | ||
|
|
effb54c40c | ||
|
|
fbe1c51d35 | ||
|
|
2c515f242c | ||
|
|
053a7be054 | ||
|
|
1c8d5c5262 | ||
|
|
2ec81b77b9 | ||
|
|
c1109ddb7e | ||
|
|
d05bda8d6a | ||
|
|
95c24cbfea | ||
|
|
2ade716849 | ||
|
|
c7f648374e | ||
|
|
f20ec45ad3 | ||
|
|
2616fd41fe | ||
|
|
cc54572d3c | ||
|
|
74017a7bdf | ||
|
|
df747440d7 | ||
|
|
e902854330 | ||
|
|
3bf2494a17 | ||
|
|
4fc097778c | ||
|
|
48bc17d743 | ||
|
|
b168630314 | ||
|
|
584a77082c | ||
|
|
4864052c68 | ||
|
|
c50be8725c | ||
|
|
048fd21982 | ||
|
|
666b6d433d | ||
|
|
9789112fda | ||
|
|
247dbb4fb6 | ||
|
|
178dfc90ec | ||
|
|
3eed25e732 | ||
|
|
256c3fc3cf | ||
|
|
0e8f152200 | ||
|
|
66ca622a92 |
3
.dockerignore
Normal file
3
.dockerignore
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
.git
|
||||||
|
.github
|
||||||
|
.env.example
|
||||||
27
.env.example
27
.env.example
@@ -8,8 +8,21 @@
|
|||||||
NEXT_PUBLIC_LICENSE_CONSENT=
|
NEXT_PUBLIC_LICENSE_CONSENT=
|
||||||
LICENSE=
|
LICENSE=
|
||||||
|
|
||||||
BASE_URL=http://localhost:3000
|
# BASE_URL and NEXT_PUBLIC_APP_URL are both deprecated. Both are replaced with one variable, NEXT_PUBLIC_WEBAPP_URL
|
||||||
NEXT_PUBLIC_APP_URL=http://localhost:3000
|
# BASE_URL=http://localhost:3000
|
||||||
|
# NEXT_PUBLIC_APP_URL=http://localhost:3000
|
||||||
|
|
||||||
|
NEXT_PUBLIC_WEBAPP_URL=http://localhost:3000
|
||||||
|
|
||||||
|
# It is highly recommended that the NEXTAUTH_SECRET must be overridden and very unique
|
||||||
|
# Use `openssl rand -base64 32` to generate a key
|
||||||
|
NEXTAUTH_SECRET=secret
|
||||||
|
|
||||||
|
# Encryption key that will be used to encrypt CalDAV credentials, choose a random string, for example with `dd if=/dev/urandom bs=1K count=1 | md5sum`
|
||||||
|
CALENDSO_ENCRYPTION_KEY=secret
|
||||||
|
|
||||||
|
# Deprecation note: JWT_SECRET is no longer used
|
||||||
|
# JWT_SECRET=secret
|
||||||
|
|
||||||
POSTGRES_USER=unicorn_user
|
POSTGRES_USER=unicorn_user
|
||||||
POSTGRES_PASSWORD=magical_password
|
POSTGRES_PASSWORD=magical_password
|
||||||
@@ -18,8 +31,8 @@ DATABASE_HOST=database:5432
|
|||||||
DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${DATABASE_HOST}/${POSTGRES_DB}
|
DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${DATABASE_HOST}/${POSTGRES_DB}
|
||||||
GOOGLE_API_CREDENTIALS={}
|
GOOGLE_API_CREDENTIALS={}
|
||||||
|
|
||||||
# Remove this var if you don't want Calendso to collect anonymous usage
|
# Set this to '1' if you don't want Cal to collect anonymous usage
|
||||||
NEXT_PUBLIC_TELEMETRY_KEY=js.2pvs2bbpqq1zxna97wcml.oi2jzirnbj1ev4tc57c5r
|
CALCOM_TELEMETRY_DISABLED=
|
||||||
|
|
||||||
# Used for the Office 365 / Outlook.com Calendar integration
|
# Used for the Office 365 / Outlook.com Calendar integration
|
||||||
MS_GRAPH_CLIENT_ID=
|
MS_GRAPH_CLIENT_ID=
|
||||||
@@ -39,10 +52,4 @@ EMAIL_SERVER_PORT=587
|
|||||||
EMAIL_SERVER_USER=email_user
|
EMAIL_SERVER_USER=email_user
|
||||||
EMAIL_SERVER_PASSWORD=email_password
|
EMAIL_SERVER_PASSWORD=email_password
|
||||||
|
|
||||||
# Encryption key that will be used to encrypt CalDAV credentials, choose a random string, for example with `dd if=/dev/urandom bs=1K count=1 | md5sum`
|
|
||||||
CALENDSO_ENCRYPTION_KEY=
|
|
||||||
|
|
||||||
# It is highly recommended that the JWT secret must be overridden and very unique
|
|
||||||
JWT_SECRET=secret
|
|
||||||
|
|
||||||
NODE_ENV=production
|
NODE_ENV=production
|
||||||
|
|||||||
@@ -33,9 +33,12 @@ jobs:
|
|||||||
# Steps represent a sequence of tasks that will be executed as part of the job
|
# Steps represent a sequence of tasks that will be executed as part of the job
|
||||||
steps:
|
steps:
|
||||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||||
- uses: actions/checkout@v2
|
- name: checkout
|
||||||
with:
|
uses: actions/checkout@v2
|
||||||
submodules: true
|
|
||||||
|
- name: Git submodule update
|
||||||
|
run: |
|
||||||
|
git submodule update --init
|
||||||
|
|
||||||
- name: Docker Login
|
- name: Docker Login
|
||||||
# You may pin to the exact commit or the version.
|
# You may pin to the exact commit or the version.
|
||||||
@@ -52,19 +55,51 @@ jobs:
|
|||||||
- name: Set up Docker builder
|
- name: Set up Docker builder
|
||||||
id: buildx
|
id: buildx
|
||||||
uses: docker/setup-buildx-action@v1.6.0
|
uses: docker/setup-buildx-action@v1.6.0
|
||||||
|
|
||||||
|
- name: Copy env
|
||||||
|
run: |
|
||||||
|
grep -o '^[^#]*' .env.example > .env
|
||||||
|
cat .env >> $GITHUB_ENV
|
||||||
|
echo "DATABASE_HOST=localhost:5432" >> $GITHUB_ENV
|
||||||
|
eval $(sed -e '/^#/d' -e 's/^/export /' -e 's/$/;/' .env) ;
|
||||||
|
|
||||||
|
- name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v2
|
||||||
|
|
||||||
|
- name: Start database
|
||||||
|
run: |
|
||||||
|
docker compose up -d database
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v2
|
||||||
|
with:
|
||||||
|
driver-opts: |
|
||||||
|
network=container:database
|
||||||
|
buildkitd-flags: |
|
||||||
|
--allow-insecure-entitlement security.insecure --allow-insecure-entitlement network.host
|
||||||
|
|
||||||
- name: Build and push image
|
- name: Build and push image
|
||||||
id: docker_build
|
id: docker_build
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v3
|
||||||
with:
|
with:
|
||||||
context: ./
|
context: ./
|
||||||
file: ./Dockerfile
|
file: ./Dockerfile
|
||||||
push: true
|
push: true
|
||||||
# The test image is /docker and is private. final image will be /calendso and public
|
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
||||||
tags: docker.io/${{ secrets.DOCKER_HUB_USERNAME }}/calendso:latest
|
tags: docker.io/${{ secrets.DOCKER_HUB_USERNAME }}/calendso:canary
|
||||||
build-args: |
|
build-args: |
|
||||||
BASE_URL=http://localhost:3000
|
NEXT_PUBLIC_WEBAPP_URL=${{ env.NEXT_PUBLIC_WEBAPP_URL }}
|
||||||
NEXT_PUBLIC_APP_URL=http://localhost:3000
|
NEXT_PUBLIC_LICENSE_CONSENT=${{ env.NEXT_PUBLIC_LICENSE_CONSENT }}
|
||||||
|
NEXT_PUBLIC_TELEMETRY_KEY=${{ env.NEXT_PUBLIC_TELEMETRY_KEY }}
|
||||||
|
DATABASE_URL=postgresql://${{ env.POSTGRES_USER }}:${{ env.POSTGRES_PASSWORD }}@${{ env.DATABASE_HOST }}/${{ env.POSTGRES_DB }}
|
||||||
|
|
||||||
|
# - name: Build with docker compose
|
||||||
|
# run: |
|
||||||
|
# DOCKER_BUILDKIT=0 docker compose build --build-arg DATABASE_URL=postgresql://${{ env.POSTGRES_USER }}:${{ env.POSTGRES_PASSWORD }}@${{ env.DATABASE_HOST }}/${{ env.POSTGRES_DB }} calcom
|
||||||
|
|
||||||
|
- name: Cleanup
|
||||||
|
run: |
|
||||||
|
docker compose down
|
||||||
|
|
||||||
- name: Image digest
|
- name: Image digest
|
||||||
run: echo ${{ steps.docker_build.outputs.digest }}
|
run: echo ${{ steps.docker_build.outputs.digest }}
|
||||||
|
|||||||
2
.github/workflows/update-submodules.yml
vendored
2
.github/workflows/update-submodules.yml
vendored
@@ -17,7 +17,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Git submodule update
|
- name: Git submodule update
|
||||||
run: |
|
run: |
|
||||||
git submodule update --recursive --remote --init
|
git submodule update --remote --init
|
||||||
|
|
||||||
- name: Commit
|
- name: Commit
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
6
.gitmodules
vendored
6
.gitmodules
vendored
@@ -1,4 +1,4 @@
|
|||||||
[submodule "calendso"]
|
[submodule "calcom"]
|
||||||
path = calendso
|
path = calcom
|
||||||
url = https://github.com/calendso/calendso.git
|
url = https://github.com/calcom/cal.com.git
|
||||||
branch = main
|
branch = main
|
||||||
|
|||||||
89
Dockerfile
89
Dockerfile
@@ -1,40 +1,49 @@
|
|||||||
FROM node:14 as deps
|
FROM node:16 as builder
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /calcom
|
||||||
COPY calendso/package.json calendso/yarn.lock ./
|
ARG NEXT_PUBLIC_WEBAPP_URL=http://localhost:3000
|
||||||
COPY calendso/prisma prisma
|
ARG NEXT_PUBLIC_APP_URL
|
||||||
RUN yarn install --frozen-lockfile
|
ARG NEXT_PUBLIC_LICENSE_CONSENT
|
||||||
|
ARG CALCOM_TELEMETRY_DISABLED
|
||||||
FROM node:14 as builder
|
ARG DATABASE_URL
|
||||||
|
ARG NEXTAUTH_SECRET=secret
|
||||||
WORKDIR /app
|
ARG CALENDSO_ENCRYPTION_KEY=secret
|
||||||
ARG BASE_URL
|
ARG MAX_OLD_SPACE_SIZE=4096
|
||||||
ARG NEXT_PUBLIC_APP_URL
|
|
||||||
ARG NEXT_PUBLIC_LICENSE_CONSENT
|
ENV NEXT_PUBLIC_WEBAPP_URL=$NEXT_PUBLIC_WEBAPP_URL \
|
||||||
ARG NEXT_PUBLIC_TELEMETRY_KEY
|
NEXT_PUBLIC_APP_URL=$NEXT_PUBLIC_APP_URL \
|
||||||
ENV BASE_URL=$BASE_URL \
|
NEXT_PUBLIC_LICENSE_CONSENT=$NEXT_PUBLIC_LICENSE_CONSENT \
|
||||||
NEXT_PUBLIC_APP_URL=$NEXT_PUBLIC_APP_URL \
|
CALCOM_TELEMETRY_DISABLED=$CALCOM_TELEMETRY_DISABLED \
|
||||||
NEXT_PUBLIC_LICENSE_CONSENT=$NEXT_PUBLIC_LICENSE_CONSENT \
|
DATABASE_URL=$DATABASE_URL \
|
||||||
NEXT_PUBLIC_TELEMETRY_KEY=$NEXT_PUBLIC_TELEMETRY_KEY
|
NEXTAUTH_SECRET=${NEXTAUTH_SECRET} \
|
||||||
|
CALENDSO_ENCRYPTION_KEY=${CALENDSO_ENCRYPTION_KEY} \
|
||||||
COPY calendso .
|
NODE_OPTIONS=--max-old-space-size=${MAX_OLD_SPACE_SIZE}
|
||||||
|
|
||||||
COPY --from=deps /app/node_modules ./node_modules
|
COPY calcom/package.json calcom/yarn.lock calcom/turbo.json ./
|
||||||
RUN yarn build && yarn install --production --ignore-scripts --prefer-offline
|
COPY calcom/apps/web ./apps/web
|
||||||
|
COPY calcom/packages ./packages
|
||||||
FROM node:14 as runner
|
|
||||||
WORKDIR /app
|
RUN yarn config set network-timeout 1000000000 -g && \
|
||||||
ENV NODE_ENV production
|
yarn install --frozen-lockfile
|
||||||
|
|
||||||
COPY --from=builder /app/node_modules ./node_modules
|
RUN yarn build
|
||||||
COPY --from=builder /app/prisma ./prisma
|
|
||||||
COPY --from=builder /app/scripts ./scripts
|
FROM node:16 as runner
|
||||||
COPY --from=builder /app/next.config.js ./
|
|
||||||
COPY --from=builder /app/next-i18next.config.js ./
|
WORKDIR /calcom
|
||||||
COPY --from=builder /app/public ./public
|
ENV NODE_ENV production
|
||||||
COPY --from=builder /app/.next ./.next
|
|
||||||
COPY --from=builder /app/package.json ./package.json
|
RUN apt-get update && \
|
||||||
COPY scripts scripts
|
apt-get -y install netcat && \
|
||||||
|
rm -rf /var/lib/apt/lists/* && \
|
||||||
EXPOSE 3000
|
npm install --global prisma
|
||||||
CMD ["/app/scripts/start.sh"]
|
|
||||||
|
COPY calcom/package.json calcom/yarn.lock calcom/turbo.json ./
|
||||||
|
COPY --from=builder /calcom/node_modules ./node_modules
|
||||||
|
COPY --from=builder /calcom/packages ./packages
|
||||||
|
COPY --from=builder /calcom/apps/web ./apps/web
|
||||||
|
COPY --from=builder /calcom/packages/prisma/schema.prisma ./prisma/schema.prisma
|
||||||
|
COPY scripts scripts
|
||||||
|
|
||||||
|
EXPOSE 3000
|
||||||
|
CMD ["/calcom/scripts/start.sh"]
|
||||||
|
|||||||
38
LICENSE
38
LICENSE
@@ -1,19 +1,19 @@
|
|||||||
Copyright (c) 2021 Calendso
|
Copyright (c) 2021 Calendso
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
in the Software without restriction, including without limitation the rights
|
in the Software without restriction, including without limitation the rights
|
||||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
copies of the Software, and to permit persons to whom the Software is
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
furnished to do so, subject to the following conditions:
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in all
|
The above copyright notice and this permission notice shall be included in all
|
||||||
copies or substantial portions of the Software.
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||||
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
||||||
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
||||||
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
|
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
|
||||||
OR OTHER DEALINGS IN THE SOFTWARE.
|
OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|||||||
235
README.md
235
README.md
@@ -1,87 +1,148 @@
|
|||||||
<!-- PROJECT LOGO -->
|
<!-- PROJECT LOGO -->
|
||||||
<div align="right">
|
<div align="right">
|
||||||
<a href="https://github.com/calendso/calendso">
|
<a href="https://github.com/calcom/cal.com">
|
||||||
<img src="https://cal.com/logo.svg" alt="Logo" width="160" height="65">
|
<img src="https://cal.com/logo.svg" alt="Logo" width="160" height="65">
|
||||||
</a><br/>
|
</a><br/>
|
||||||
<a href="https://cal.com">Website</a>
|
<a href="https://cal.com">Website</a>
|
||||||
·
|
·
|
||||||
<a href="https://github.com/calendso/calendso-docker/issues">Community Support</a>
|
<a href="https://github.com/calcom/docker/issues">Community Support</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
# Docker
|
# Docker
|
||||||
|
|
||||||
This image can be found on DockerHub at [https://hub.docker.com/repository/docker/calendso/calendso](https://hub.docker.com/repository/docker/calendso/calendso)
|
NOTE: DockerHub organization has not yet been renamed.
|
||||||
|
|
||||||
The Docker configuration for Calendso is an effort powered by people within the community. Calendso does not provide official support for Docker, but we will accept fixes and documentation. Use at your own risk.
|
This image can be found on DockerHub at [https://hub.docker.com/r/calendso/calendso](https://hub.docker.com/r/calendso/calendso)
|
||||||
|
|
||||||
## Important Notes
|
The Docker configuration for Cal.com is an effort powered by people within the community. Cal.com, Inc. does not yet provide official support for Docker, but we will accept fixes and documentation at this time. Use at your own risk.
|
||||||
|
|
||||||
This Docker Image is managed by the Calendso Community. Support for this image can be found via the repository, located at [https://github.com/calendso/docker](https://github.com/calendso/docker)
|
## Important Notes
|
||||||
|
|
||||||
Currently, this image is intended for local development/evaluation use only, as there are specific requirements for providing environmental variables at build-time in order to specify a non-localhost BASE_URL. (this is due to the nature of the static site compilation, which embeds the variable values). The ability to update these variables at runtime is in-progress and will be available in the future.
|
This Docker Image is managed by the Cal.com Community. Join the team [here](https://github.com/calcom/docker/discussions/32). Support for this image can be found via the repository, located at [https://github.com/calcom/docker](https://github.com/calcom/docker)
|
||||||
|
|
||||||
For Production, for the time being, please checkout the repository and build/push your own image privately.
|
Currently, this image is intended for local development/evaluation use only, as there are specific requirements for providing environmental variables at build-time in order to specify a non-localhost BASE_URL. (this is due to the nature of the static site compilation, which embeds the variable values). The ability to update these variables at runtime is in-progress and will be available in the future.
|
||||||
|
|
||||||
## Requirements
|
For Production, for the time being, please checkout the repository and build/push your own image privately.
|
||||||
|
|
||||||
Make sure you have `docker` & `docker-compose` installed on the server / system.
|
## Requirements
|
||||||
|
|
||||||
## Getting Started
|
Make sure you have `docker` & `docker compose` installed on the server / system. Both are installed by most docker utilities, including Docker Desktop and Rancher Desktop.
|
||||||
|
|
||||||
1. Clone calendso-docker
|
Note: `docker compose` without the hyphen is now the primary method of using docker-compose, per the Docker documentation.
|
||||||
|
|
||||||
```bash
|
## Getting Started
|
||||||
git clone --recursive https://github.com/calendso/docker.git calendso-docker
|
|
||||||
```
|
1. Clone calcom-docker
|
||||||
|
|
||||||
2. Change into the directory
|
```bash
|
||||||
|
git clone https://github.com/calcom/docker.git calcom-docker
|
||||||
```bash
|
```
|
||||||
cd calendso-docker
|
|
||||||
```
|
2. Change into the directory
|
||||||
|
|
||||||
3. Rename `.env.example` to `.env` and update `.env` if needed.
|
```bash
|
||||||
|
cd calcom-docker
|
||||||
4. Build and start calendso
|
```
|
||||||
|
|
||||||
```bash
|
3. Update the calcom submodule.
|
||||||
docker-compose up --build
|
|
||||||
```
|
```bash
|
||||||
|
git submodule update --remote --init
|
||||||
5. Start prisma studio
|
```
|
||||||
|
|
||||||
```bash
|
Note: DO NOT use recursive submodule update, otherwise you will receive a git authentication error.
|
||||||
docker-compose exec calendso npx prisma studio
|
|
||||||
```
|
4. Rename `.env.example` to `.env` and then update `.env`
|
||||||
|
|
||||||
6. Open a browser to [http://localhost:5555](http://localhost:5555) to look at or modify the database content.
|
5. Build the Cal.com docker image:
|
||||||
|
|
||||||
7. Click on the `User` model to add a new user record.
|
Note: Due to application configuration requirements, an available database is currently required during the build process.
|
||||||
|
|
||||||
8. Fill out the fields (remembering to encrypt your password with [BCrypt](https://bcrypt-generator.com/)) and click `Save 1 Record` to create your first user.
|
a) If hosting elsewhere, configure the `DATABASE_URL` in the .env file, and skip the next step
|
||||||
|
|
||||||
9. Open a browser to [http://localhost:3000](http://localhost:3000) and login with your just created, first user.
|
b) If a local or temporary database is required, start a local database via docker compose.
|
||||||
|
|
||||||
## Git Submodules
|
```bash
|
||||||
|
docker compose up -d database
|
||||||
This repository uses a git submodule.
|
```
|
||||||
|
|
||||||
If you cloned the repository without using `--recursive`, then you can initialize and clone the submodule with the following steps.
|
6. Build Cal.com via docker compose (DOCKER_BUILDKIT=0 must be provided to allow a network bridge to be used at build time. This requirement will be removed in the future)
|
||||||
|
|
||||||
1. Init the submodule
|
```bash
|
||||||
|
DOCKER_BUILDKIT=0 docker compose build calcom
|
||||||
```bash
|
```
|
||||||
git submodule init
|
|
||||||
```
|
7. Start Cal.com via docker compose
|
||||||
|
|
||||||
2. Update the submodule
|
(Most basic users, and for First Run) To run the complete stack, which includes a local Postgres database, Cal.com web app, and Prisma Studio:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git submodule update --remote
|
docker compose up -d
|
||||||
```
|
```
|
||||||
|
|
||||||
For more advanced usage, please refer to the git documentation: [https://git-scm.com/book/en/v2/Git-Tools-Submodules](https://git-scm.com/book/en/v2/Git-Tools-Submodules)
|
To run Cal.com web app and Prisma Studio against a remote database, ensure that DATABASE_URL is configured for an available database and run:
|
||||||
|
|
||||||
## Troubleshooting
|
```bash
|
||||||
|
docker compose up -d calcom studio
|
||||||
* SSL edge termination: If running behind a load balancer which handles SSL certificates, you will need to add the environmental variable `NODE_TLS_REJECT_UNAUTHORIZED=0` to prevent requests from being rejected. Only do this if you know what you are doing and trust the services/load-balancers directing traffic to your service.
|
```
|
||||||
|
|
||||||
|
To run only the Cal.com web app, ensure that DATABASE_URL is configured for an available database and run:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker compose up -d calcom
|
||||||
|
```
|
||||||
|
|
||||||
|
**Note: to run in attached mode for debugging, remove `-d` from your desired run command.**
|
||||||
|
|
||||||
|
8. (First Run) Open a browser to [http://localhost:5555](http://localhost:5555) to look at or modify the database content.
|
||||||
|
|
||||||
|
a. Click on the `User` model to add a new user record.
|
||||||
|
|
||||||
|
b. Fill out the fields (remembering to encrypt your password with [BCrypt](https://bcrypt-generator.com/)) and click `Save 1 Record` to create your first user.
|
||||||
|
|
||||||
|
9. Open a browser to [http://localhost:3000](http://localhost:3000) (or your appropriately configured NEXT_PUBLIC_WEBAPP_URL) and login with your just created, first user.
|
||||||
|
|
||||||
|
## Configuration
|
||||||
|
|
||||||
|
### Build-time variables
|
||||||
|
|
||||||
|
These variables must be provided at the time of the docker build, and can be provided by updating the .env file. Currently, if you require changes to these variables, you must follow the instructions to build and publish your own image.
|
||||||
|
|
||||||
|
Updating these variables is not required for evaluation, but is required for running in production. Instructions for generating variables can be found in the [cal.com instructions](https://github.com/calcom/cal.com)
|
||||||
|
|
||||||
|
| Variable | Description | Required | Default |
|
||||||
|
| --- | --- | --- | --- |
|
||||||
|
| NEXT_PUBLIC_WEBAPP_URL | Base URL injected into static files | required | `http://localhost:3000` |
|
||||||
|
| NEXT_PUBLIC_LICENSE_CONSENT | license consent - true/false | | |
|
||||||
|
| CALCOM_TELEMETRY_DISABLED | Allow cal.com to collect anonymous usage data (set to `1` to disable) | | |
|
||||||
|
| DATABASE_URL | database url with credentials | required | `postgresql://unicorn_user:magical_password@database:5432/calendso` |
|
||||||
|
| NEXTAUTH_SECRET | Cookie encryption key | required | `secret` |
|
||||||
|
| CALENDSO_ENCRYPTION_KEY | Authentication encryption key | required | `secret` |
|
||||||
|
|
||||||
|
### Important Run-time variables
|
||||||
|
|
||||||
|
These variables must also be provided at runtime
|
||||||
|
|
||||||
|
| Variable | Description | Required | Default |
|
||||||
|
| --- | --- | --- | --- |
|
||||||
|
| CALCOM_LICENSE_KEY | Enterprise License Key | | |
|
||||||
|
| NEXTAUTH_SECRET | must match build variable | required | `secret` |
|
||||||
|
| CALENDSO_ENCRYPTION_KEY | must match build variable | required | `secret` |
|
||||||
|
| DATABASE_URL | database url with credentials | required | `postgresql://unicorn_user:magical_password@database:5432/calendso` |
|
||||||
|
|
||||||
|
## Git Submodules
|
||||||
|
|
||||||
|
This repository uses a git submodule.
|
||||||
|
|
||||||
|
To update the calcom submodule, use the following command:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
git submodule update --remote --init
|
||||||
|
```
|
||||||
|
|
||||||
|
For more advanced usage, please refer to the git documentation: [https://git-scm.com/book/en/v2/Git-Tools-Submodules](https://git-scm.com/book/en/v2/Git-Tools-Submodules)
|
||||||
|
|
||||||
|
## Troubleshooting
|
||||||
|
|
||||||
|
* SSL edge termination: If running behind a load balancer which handles SSL certificates, you will need to add the environmental variable `NODE_TLS_REJECT_UNAUTHORIZED=0` to prevent requests from being rejected. Only do this if you know what you are doing and trust the services/load-balancers directing traffic to your service.
|
||||||
|
* Failed to commit changes: Invalid 'prisma.user.create()': Certain versions may have trouble creating a user if the field `metadata` is empty. Using an empty json object `{}` as the field value should resolve this issue. Also, the `id` field will autoincrement, so you may also try leaving the value of `id` as empty.
|
||||||
|
|||||||
38
SECURITY.md
Normal file
38
SECURITY.md
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
# Security
|
||||||
|
Contact: security@cal.com
|
||||||
|
|
||||||
|
Based on [https://supabase.com/.well-known/security.txt](https://supabase.com/.well-known/security.txt)
|
||||||
|
|
||||||
|
At Cal.com, we consider the security of our systems a top priority. But no matter how much effort we put into system security, there can still be vulnerabilities present.
|
||||||
|
|
||||||
|
If you discover a vulnerability, we would like to know about it so we can take steps to address it as quickly as possible. We would like to ask you to help us better protect our clients and our systems.
|
||||||
|
|
||||||
|
## Out of scope vulnerabilities:
|
||||||
|
|
||||||
|
* Clickjacking on pages with no sensitive actions.
|
||||||
|
* Unauthenticated/logout/login CSRF.
|
||||||
|
* Attacks requiring MITM or physical access to a user's device.
|
||||||
|
* Any activity that could lead to the disruption of our service (DoS).
|
||||||
|
* Content spoofing and text injection issues without showing an attack vector/without being able to modify HTML/CSS.
|
||||||
|
* Email spoofing
|
||||||
|
* Missing DNSSEC, CAA, CSP headers
|
||||||
|
* Lack of Secure or HTTP only flag on non-sensitive cookies
|
||||||
|
* Deadlinks
|
||||||
|
|
||||||
|
## Please do the following:
|
||||||
|
|
||||||
|
* E-mail your findings to [security@cal.com](mailto:security@cal.com).
|
||||||
|
* Do not run automated scanners on our infrastructure or dashboard. If you wish to do this, contact us and we will set up a sandbox for you.
|
||||||
|
* Do not take advantage of the vulnerability or problem you have discovered, for example by downloading more data than necessary to demonstrate the vulnerability or deleting or modifying other people's data,
|
||||||
|
* Do not reveal the problem to others until it has been resolved,
|
||||||
|
* Do not use attacks on physical security, social engineering, distributed denial of service, spam or applications of third parties,
|
||||||
|
* Do provide sufficient information to reproduce the problem, so we will be able to resolve it as quickly as possible. Usually, the IP address or the URL of the affected system and a description of the vulnerability will be sufficient, but complex vulnerabilities may require further explanation.
|
||||||
|
|
||||||
|
## What we promise:
|
||||||
|
|
||||||
|
* We will respond to your report within 3 business days with our evaluation of the report and an expected resolution date,
|
||||||
|
* If you have followed the instructions above, we will not take any legal action against you in regard to the report,
|
||||||
|
* We will handle your report with strict confidentiality, and not pass on your personal details to third parties without your permission,
|
||||||
|
* We will keep you informed of the progress towards resolving the problem,
|
||||||
|
* In the public information concerning the problem reported, we will give your name as the discoverer of the problem (unless you desire otherwise), and
|
||||||
|
* We strive to resolve all problems as quickly as possible, and we would like to play an active role in the ultimate publication on the problem after it is resolved.
|
||||||
1
calcom
Submodule
1
calcom
Submodule
Submodule calcom added at 6b0ac96b38
1
calendso
1
calendso
Submodule calendso deleted from 09c4040ce5
@@ -1,59 +1,63 @@
|
|||||||
# Use postgres/example user/password credentials
|
# Use postgres/example user/password credentials
|
||||||
version: '3.1'
|
version: '3.8'
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
database-data:
|
database-data:
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
stack:
|
stack:
|
||||||
external: false
|
name: stack
|
||||||
|
external: false
|
||||||
services:
|
|
||||||
database:
|
services:
|
||||||
image: postgres
|
database:
|
||||||
restart: always
|
container_name: database
|
||||||
volumes:
|
image: postgres
|
||||||
- database-data:/var/lib/postgresql/data/
|
restart: always
|
||||||
env_file: .env
|
volumes:
|
||||||
networks:
|
- database-data:/var/lib/postgresql/data/
|
||||||
- stack
|
env_file: .env
|
||||||
|
networks:
|
||||||
calendso:
|
- stack
|
||||||
build:
|
|
||||||
context: .
|
calcom:
|
||||||
dockerfile: Dockerfile
|
build:
|
||||||
args:
|
context: .
|
||||||
- BASE_URL=${BASE_URL}
|
dockerfile: Dockerfile
|
||||||
- NEXT_PUBLIC_APP_URL=${NEXT_PUBLIC_APP_URL}
|
args:
|
||||||
- NEXT_PUBLIC_LICENSE_CONSENT=${NEXT_PUBLIC_LICENSE_CONSENT}
|
NEXT_PUBLIC_WEBAPP_URL: ${NEXT_PUBLIC_WEBAPP_URL}
|
||||||
- NEXT_PUBLIC_TELEMETRY_KEY=${NEXT_PUBLIC_TELEMETRY_KEY}
|
NEXT_PUBLIC_LICENSE_CONSENT: ${NEXT_PUBLIC_LICENSE_CONSENT}
|
||||||
image: calendso/calendso:latest
|
CALCOM_TELEMETRY_DISABLE: ${CALCOM_TELEMETRY_DISABLED}
|
||||||
restart: always
|
NEXTAUTH_SECRET: ${NEXTAUTH_SECRET}
|
||||||
networks:
|
CALENDSO_ENCRYPTION_KEY: ${CALENDSO_ENCRYPTION_KEY}
|
||||||
- stack
|
DATABASE_URL: ${DATABASE_URL}
|
||||||
ports:
|
network: stack
|
||||||
- 3000:3000
|
restart: always
|
||||||
env_file: .env
|
networks:
|
||||||
environment:
|
- stack
|
||||||
- DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${DATABASE_HOST}/${POSTGRES_DB}
|
ports:
|
||||||
depends_on:
|
- 3000:3000
|
||||||
- database
|
env_file: .env
|
||||||
|
environment:
|
||||||
# Optional use of Prisma Studio. In production, comment out or remove the section below to prevent unwanted access to your database.
|
- DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${DATABASE_HOST}/${POSTGRES_DB}
|
||||||
studio:
|
depends_on:
|
||||||
image: calendso/calendso:latest
|
- database
|
||||||
restart: always
|
|
||||||
networks:
|
# Optional use of Prisma Studio. In production, comment out or remove the section below to prevent unwanted access to your database.
|
||||||
- stack
|
studio:
|
||||||
ports:
|
image: calendso/calendso:latest
|
||||||
- 5555:5555
|
restart: always
|
||||||
env_file: .env
|
networks:
|
||||||
environment:
|
- stack
|
||||||
- DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${DATABASE_HOST}/${POSTGRES_DB}
|
ports:
|
||||||
depends_on:
|
- 5555:5555
|
||||||
- database
|
env_file: .env
|
||||||
command:
|
environment:
|
||||||
- npx
|
- DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${DATABASE_HOST}/${POSTGRES_DB}
|
||||||
- prisma
|
depends_on:
|
||||||
- studio
|
- database
|
||||||
# END SECTION: Optional use of Prisma Studio.
|
command:
|
||||||
|
- npx
|
||||||
|
- prisma
|
||||||
|
- studio
|
||||||
|
# END SECTION: Optional use of Prisma Studio.
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
/app/scripts/wait-for-it.sh ${DATABASE_HOST} -- echo "database is up"
|
scripts/wait-for-it.sh ${DATABASE_HOST} -- echo "database is up"
|
||||||
npx prisma migrate deploy
|
npx prisma migrate deploy --schema /calcom/packages/prisma/schema.prisma
|
||||||
|
npx ts-node --transpile-only /calcom/packages/prisma/seed-app-store.ts
|
||||||
yarn start
|
yarn start
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ wait_for() {
|
|||||||
;;
|
;;
|
||||||
wget)
|
wget)
|
||||||
if ! command -v wget >/dev/null; then
|
if ! command -v wget >/dev/null; then
|
||||||
echoerr 'nc command is missing!'
|
echoerr 'wget command is missing!'
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
@@ -62,11 +62,11 @@ wait_for() {
|
|||||||
|
|
||||||
while :; do
|
while :; do
|
||||||
case "$PROTOCOL" in
|
case "$PROTOCOL" in
|
||||||
tcp)
|
tcp)
|
||||||
nc -w 1 -z "$HOST" "$PORT" > /dev/null 2>&1
|
nc -w 1 -z "$HOST" "$PORT" > /dev/null 2>&1
|
||||||
;;
|
;;
|
||||||
http)
|
http)
|
||||||
wget --timeout=1 -q "$HOST" -O /dev/null > /dev/null 2>&1
|
wget --timeout=1 -q "$HOST" -O /dev/null > /dev/null 2>&1
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echoerr "Unknown protocol '$PROTOCOL'"
|
echoerr "Unknown protocol '$PROTOCOL'"
|
||||||
@@ -75,7 +75,7 @@ wait_for() {
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
result=$?
|
result=$?
|
||||||
|
|
||||||
if [ $result -eq 0 ] ; then
|
if [ $result -eq 0 ] ; then
|
||||||
if [ $# -gt 7 ] ; then
|
if [ $# -gt 7 ] ; then
|
||||||
for result in $(seq $(($# - 7))); do
|
for result in $(seq $(($# - 7))); do
|
||||||
@@ -181,4 +181,4 @@ case "$PROTOCOL" in
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
wait_for "$@"
|
wait_for "$@"
|
||||||
|
|||||||
Reference in New Issue
Block a user