Skip to content

fallback page not enabled #519

@fapo85

Description

@fapo85

Search for duplicate issues

  • I already searched, and this issue is not a duplicate.

Issue scope

Docker / Kubernetes

Describe the bug

Hi,

is set the fallback page via env inside the docker
-e 'SERVER_FALLBACK_PAGE'='./index.html'
but while startup i get the info:
INFO static_web_server::info: fallback page: enabled=false, value="./index.html"
i cannot find a flag to enable it in the docs.
the code also does not look as if it is an extra flag.

How to reproduce it

set:
-e 'SERVER_FALLBACK_PAGE'='./index.html'
and startup

Expected behavior

it should be switched on, and the routing should be done by my spa.

Complementary information

i am using the latest official docker build without any extra tags except the 2

Build target

Docker linux/amd64

Environment and specs

docker run
-d
--name='keycontrol-frontend'
--net='bridge'
--pids-limit 2048
-e TZ="Europe/Berlin"
-e HOST_OS="Unraid"
-e HOST_HOSTNAME="srv"
-e HOST_CONTAINERNAME="keycontrol-frontend"
-e 'SERVER_FALLBACK_PAGE'='./index.html'
-l net.unraid.docker.managed=dockerman
-p '8654:80/tcp'
-v '/mnt/hypervisor/appdata/keycontrol/frontend':'/public':'rw'
-v '/mnt/hypervisor/appdata/keycontrol/doorbird/':'/public/doorbirdfiles':'rw' 'joseluisq/static-web-server:2'
3995520e8dbd1ad7ec02327fd091dd828be86c201c9addfe2d2b0d7d5b27b44a

Additional context

No response

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestnot-a-bugIt indicates that the issue is not related to SWSv2v2 release

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions