horizon
horizon copied to clipboard
`serve_static` does not respect the directory given
The serve_static option in config.toml doesn't seem to respect any other path than dist. If I put in for instance serve_static = "dist/dev" it serves an error page with File "dist/index.html" not found.
I don't get any Serving static files from ... in the console output (not with debug mode enabled either), so I'm not sure if the option is being processed at all.
I have the following other options in config.toml
bind = [ "localhost" ]
port = 8181
secure = true
key_file = "horizon-key.pem"
cert_file = "horizon-cert.pem"
project_name = "tasch"
serve_static = "dist/dev/"
debug = true
token_secret = <...>
allow_unauthenticated = false
auth_redirect = "/"
access_control_allow_origin = "*"
EDIT I have just confirmed that it works as expected if using the --serve-static cl option, so it must be a problem with how the configuration is parsed. I am also using --dev so it might be a problem with default values (from looking in utils/config.js)