Skip to content

Self-hosted (Dokploy): Google Calendar auth incorrectly redirects to localhost:3000 #873

@MirzaHamzaUmer

Description

@MirzaHamzaUmer

Hello,

I am running a self-hosted instance of the platform on my own VPS, deployed and managed using Dokploy. My instance is running on a custom domain (https://apse1.pa.email.useprivate.ai).

I am trying to integrate Google Calendar. After I successfully authenticate with Google, the application server incorrectly redirects my browser to a localhost:3000 address, which fails.

Steps to Reproduce:

  1. Go to the Calendar integration settings on a self-hosted instance (managed by Dokploy).
  2. Click to add a Google Calendar.
  3. Sign in with Google (authentication is successful).
  4. After Google redirects back to the server, the server then incorrectly redirects the browser to a localhost URL.

Expected Behavior:
The app should redirect back to my production domain (e.g., https://apse1.pa.email.useprivate.ai/calendars).

Actual Behavior:
My browser is redirected to the following URL, which fails:
https://localhost:3000/cmh05tt43000bl70swpnin53q/calendars?error=connection_failed

This seems to be caused by missing or incorrect environment variables for the application's public URL. The app is likely defaulting to localhost:3000 instead of using its public-facing domain.

Thank You

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions