Add ASSET_URL to env vars to prevent mixed content/blank page

Fixes #256, Resolves #275
This commit is contained in:
Bubka 2024-01-17 10:38:58 +01:00
parent d2427364a5
commit 98f711800d
3 changed files with 15 additions and 0 deletions

View File

@ -35,6 +35,13 @@ APP_KEY=
APP_URL=http://localhost 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. # The domain subdirectory from which you want to serve 2FAuth.
# This must reflect the path targeted by APP_URL. # This must reflect the path targeted by APP_URL.
# #

4
Dockerfile vendored
View File

@ -124,6 +124,10 @@ ENV \
# This variable must match your installation's external address. # This variable must match your installation's external address.
# Webauthn won't work otherwise. # Webauthn won't work otherwise.
APP_URL=http://localhost \ 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. # 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. # The Demo mode reset the app content every hours and set a generic demo user.
IS_DEMO_APP=false \ IS_DEMO_APP=false \

View File

@ -24,6 +24,10 @@ services:
# This variable must match your installation's external address. # This variable must match your installation's external address.
# Webauthn won't work otherwise. # Webauthn won't work otherwise.
- APP_URL=http://localhost - 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. # 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. # The Demo mode reset the app content every hours and set a generic demo user.
- IS_DEMO_APP=false - IS_DEMO_APP=false