You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When self-hosting EmDash behind a reverse proxy (Traefik, nginx, etc),
the internal request URL is localhost, causing getPasskeyConfig() to
set rpId: "localhost" regardless of the configured rpId.
Root Cause
In packages/auth/src/passkey/config.ts, getPasskeyConfig() derives
rpId from url.hostname instead of reading from config:
Adding another sanitized self-hosted data point here.
We hit the same class of passkey failure behind an nginx reverse proxy on a valid HTTPS deployment. The browser-side passkey creation flow failed until forwarded-origin handling was configured so the app used the external HTTPS origin consistently.
What changed locally:
Added trusted domain/public-origin configuration for the external HTTPS hostname
Added explicit proxy headers in nginx including X-Forwarded-Host, X-Forwarded-Port, and X-Forwarded-Proto
Rebuilt and restarted the app
After that, passkey setup started working.
This seems consistent with the issue report that passkey config/origin handling is too tightly coupled to the internal request URL when EmDash is deployed behind a reverse proxy.
Activity
seslly commentedon Apr 4, 2026
yeah ran into the same issue with my self hosted setup using nginx for ssl termination hopefully maintainers can take a look at my pr for the fixes
#225
omgitsgela commentedon Apr 5, 2026
Adding another sanitized self-hosted data point here.
We hit the same class of passkey failure behind an
nginxreverse proxy on a valid HTTPS deployment. The browser-side passkey creation flow failed until forwarded-origin handling was configured so the app used the external HTTPS origin consistently.What changed locally:
nginxincludingX-Forwarded-Host,X-Forwarded-Port, andX-Forwarded-ProtoAfter that, passkey setup started working.
This seems consistent with the issue report that passkey config/origin handling is too tightly coupled to the internal request URL when EmDash is deployed behind a reverse proxy.
fix: replace passkeyPublicOrigin with siteUrl to fix reverse-proxy or…