mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-06-19 19:28:08 +02:00
Add ASSET_URL to env vars to prevent mixed content/blank page
Fixes #256, Resolves #275
This commit is contained in:
parent
d2427364a5
commit
98f711800d
@ -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.
|
||||
#
|
||||
|
4
Dockerfile
vendored
4
Dockerfile
vendored
@ -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 \
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user