diff --git a/.env.example b/.env.example index 20bcd7cc..f5a60b2b 100644 --- a/.env.example +++ b/.env.example @@ -35,6 +35,13 @@ APP_KEY= APP_URL=http://localhost +# If you want to serve js assets from a CDN (like https://cdn.example.com), +# you need to set this custom URL here. +# Otherwise, this should be the exact same value as APP_URL. + +ASSET_URL=http://localhost + + # The domain subdirectory from which you want to serve 2FAuth. # This must reflect the path targeted by APP_URL. # diff --git a/Dockerfile b/Dockerfile index 3da1cbbe..dc05844c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -124,6 +124,10 @@ ENV \ # This variable must match your installation's external address. # Webauthn won't work otherwise. APP_URL=http://localhost \ + # If you want to serve js assets from a CDN (like https://cdn.example.com), + # you need to set this custom URL here. + # Otherwise, this should be the exact same value as APP_URL. + ASSET_URL=http://localhost \ # Turn this to true if you want your app to react like a demo. # The Demo mode reset the app content every hours and set a generic demo user. IS_DEMO_APP=false \ diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 62141e60..66cfaf32 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -24,6 +24,10 @@ services: # This variable must match your installation's external address. # Webauthn won't work otherwise. - APP_URL=http://localhost + # If you want to serve js assets from a CDN (like https://cdn.example.com), + # you need to set this custom URL here. + # Otherwise, this should be the exact same value as APP_URL. + - ASSET_URL=http://localhost # Turn this to true if you want your app to react like a demo. # The Demo mode reset the app content every hours and set a generic demo user. - IS_DEMO_APP=false