Help with Passkeys in a Self-Hosted setup #6112
-
Hello, Passkeys don't seem to be working with my setup. Hoping for some guidance. When I visit my accounts URL (as a redirect from Passkeys under the Security menu), a popup says "could not retrieve passkeys" or similar. When I attempt to name a new passkey, I'm met with "couldn't add passkey". Some of my config: museum.yaml webauthn:
# Our "Relying Party" ID. This scopes the generated credentials.
# See: https://www.w3.org/TR/webauthn-3/#rp-id
rpid: accounts.mydomain.com
# Whitelist of origins from where we will accept WebAuthn requests.
# See: https://github.com/go-webauthn/webauthn
rporigins:
# - "http://localhost:3001"
- "https://accounts.mydomain.com"
...
apps:
accounts: https://accounts.mydomain.com
compose.yaml ...
web:
image: ghcr.io/ente-io/web
# Uncomment what you need to tweak.
ports:
- 3000:3000 # Photos web app
- 3001:3001 # Accounts
- 3002:3002 # Public albums
- 3003:3003 # Auth
- 3004:3004 # Cast
environment:
NEXT_PUBLIC_ENTE_ENDPOINT: https://web.mydomain.com
NEXT_PUBLIC_ENTE_ALBUMS_ENDPOINT: https://albums.mydomain.com
NEXT_PUBLIC_ENTE_ACCOUNTS_URL: https://accounts.mydomain.com When I visit the page, the server logs show a In the above Thanks for the help |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Just use mydomain.com for rp* values |
Beta Was this translation helpful? Give feedback.
@kzshantonu
Thank you for your help! I was able to solve this. Not sure exactly which edit was the fix, but (in case someone else has the same issue) I made the following edits to my files as they didn't exist prior:
compose.yaml
environment
key for themuseum
service, I added theNEXT_PUBLIC_ENTE_ENDPOINT
value to point back to my API custom domainenvironment
key for theweb
service, I added values for theNEXT_PUBLIC_ENTE_ALBUMS_ENDPOINT
,ENTE_API_ORIGIN
, andENTE_ALBUMS_ORIGIN
museum.yaml
webauthn
section, I ensured myrpid
andrporigins
values were as you suggested with the root domain and subpaths respectivelyapps
section, I removed the ke…