Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i run into this error when i try logging into calcom" https://api/auth/error" #331

Open
awakgeek opened this issue Feb 21, 2024 · 0 comments

Comments

@awakgeek
Copy link

awakgeek commented Feb 21, 2024

I installed calcom in docker, below is my .en and doceker file.
Iam able to access the web interface via the url. the issue i am having is, once i type in my login details into the webinterface. it runs into "https://api/auth/error"

please help me with this issue.

root@transformersagencyworkspace028432://cal/docker# cat d
database-data/ docker-compose.yaml
root@transformersagencyworkspace028432://cal/docker# cat docker-compose.yaml

Use postgres/example user/password credentials

version: '3.8'

networks:
stack:
name: stack
external: false

services:
database:
container_name: database_calcom
image: postgres
restart: always
volumes:
- ./database-data:/var/lib/postgresql/data/
env_file: .env
networks:
- stack

calcom:
image: calcom.docker.scarf.sh/calcom/cal.com
build:
context: .
dockerfile: Dockerfile
args:
NEXT_PUBLIC_WEBAPP_URL: ${NEXT_PUBLIC_WEBAPP_URL}
NEXT_PUBLIC_LICENSE_CONSENT: ${NEXT_PUBLIC_LICENSE_CONSENT}
CALCOM_TELEMETRY_DISABLED: ${CALCOM_TELEMETRY_DISABLED}
NEXTAUTH_SECRET: ${NEXTAUTH_SECRET}
CALENDSO_ENCRYPTION_KEY: ${CALENDSO_ENCRYPTION_KEY}
DATABASE_URL: ${DATABASE_URL}
DATABASE_DIRECT_URL: ${DATABASE_URL}
network: stack
restart: always
networks:
- stack
ports:
- 3000:3000
env_file: .env
environment:
- DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${DATABASE_HOST}/${POSTGRES_DB}
- DATABASE_DIRECT_URL=${DATABASE_URL}
depends_on:
- database

root@transformersagencyworkspace028432://cal/docker# cat .env

Set this value to 'agree' to accept our license:

LICENSE: https://github.com/calendso/calendso/blob/main/LICENSE

Summary of terms:

- The codebase has to stay open source, whether it was modified or not

- You can not repackage or sell the codebase

- Acquire a commercial license to remove these terms by emailing: license@cal.com

NEXT_PUBLIC_LICENSE_CONSENT=true
LICENSE=

BASE_URL and NEXT_PUBLIC_APP_URL are both deprecated. Both are replaced with one variable, NEXT_PUBLIC_WEBAPP_URL

BASE_URL=http://localhost:3000

NEXT_PUBLIC_APP_URL=http://localhost:3000

NEXT_PUBLIC_WEBAPP_URL=https://schedule.transformers.agency

Configure NEXTAUTH_URL manually if needed, otherwise it will resolve to {NEXT_PUBLIC_WEBAPP_URL}/api/auth

NEXTAUTH_URL=https://schedule.transformers.agency/api/auth

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=calcom_postgres
POSTGRES_PASSWORD=magical
POSTGRES_DB=calendso
DATABASE_HOST=database:5432
DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${DATABASE_HOST}/${POSTGRES_DB}

Needed to run migrations while using a connection pooler like PgBouncer

Use the same one as DATABASE_URL if you're not using a connection pooler

DATABASE_DIRECT_URL=${DATABASE_URL}
GOOGLE_API_CREDENTIALS={}

Set this to '1' if you don't want Cal to collect anonymous usage

CALCOM_TELEMETRY_DISABLED=1

Used for the Office 365 / Outlook.com Calendar integration

MS_GRAPH_CLIENT_ID=
MS_GRAPH_CLIENT_SECRET=

Used for the Zoom integration

ZOOM_CLIENT_ID=
ZOOM_CLIENT_SECRET=

E-mail settings

Configures the global From: header whilst sending emails.

EMAIL_FROM=

Configure SMTP settings (@see https://nodemailer.com/smtp/).

EMAIL_SERVER_HOST=
EMAIL_SERVER_PORT=
EMAIL_SERVER_USER=
EMAIL_SERVER_PASSWORD=

NODE_ENV=production

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant