Setting instance URL
Lumina Finance uses APP_URL to configure CORS and is required if you want to use Passkeys, SSO, or enable password reset emails. This guide covers setting that address and updating your configuration when it changes.
Even if you don’t use these features, we still recommend setting APP_URL, as leaving it unset allows all origins by default.
Setting the URL
Set APP_URL to an address that you will use to access Lumina Finance. For example, https://lumina-finance.example.com.
Lumina Finance uses this address for password-reset links and sign-in redirects, and includes it in its allowed browser origins (CORS). We recommend setting APP_URL explicitly, since leaving it empty will default to allowing all origins. WEBAUTHN_RP_ID and WEBAUTHN_ORIGINS will be derived from APP_URL unless you set them explicitly, and you do not need to make any further adjustments if you access Lumina Finance at the address set in APP_URL.
Changing an existing URL
If you use passkeys, make sure you can sign in with your password and a second MFA method, such as an authenticator app, before changing the URL.
A change to the URL, and consequently the passkey domain and relying party ID, prevents your existing passkeys from working at the new address and could leave you locked out. Another passkey registered for the old domain will not protect against this.
To switch to another address:
- Replace
APP_URLin.envwith the new address - If you set
WEBAUTHN_ORIGINSexplicitly, update its list to include the new address - If you set
WEBAUTHN_RP_IDexplicitly, only replace it if the new hostname is neither that domain nor one of its subdomains. Use the new domain name, without a scheme, port, or path (e.g.,example.com) - If you use single sign-on, update the callback URL registered with your provider to
<APP_URL>/auth/oidc/callback, using the newAPP_URL.
Credits
Contributors
- OKok-3