You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Edit /dev/config.file like above, make sure paths are correct
Run docker run --env SERVER_CONFIG_FILE=/config.toml -v /dev/config.toml:/config.toml -p 8787:80 joseluisq/static-web-server:2.12
Expected behavior
Webiste runts over https.
Logs/Screenshots
2022-09-29T22:32:19.848863Z INFO static_web_server::server: config file: /config.toml
2022-09-29T22:32:19.849055Z INFO static_web_server::server: server bound to tcp socket [::]:8787
2022-09-29T22:32:19.849092Z INFO static_web_server::server: runtime worker threads: 2
2022-09-29T22:32:19.849097Z INFO static_web_server::server: security headers: enabled=true
2022-09-29T22:32:19.849101Z INFO static_web_server::server: auto compression: enabled=true
2022-09-29T22:32:19.849104Z INFO static_web_server::server: compression static: enabled=false
2022-09-29T22:32:19.849108Z INFO static_web_server::server: directory listing: enabled=false
2022-09-29T22:32:19.849116Z INFO static_web_server::server: directory listing order code: 6
2022-09-29T22:32:19.849119Z INFO static_web_server::server: cache control headers: enabled=true
2022-09-29T22:32:19.849130Z INFO static_web_server::server: basic authentication: enabled=false
2022-09-29T22:32:19.849134Z INFO static_web_server::server: log remote address: enabled=false
2022-09-29T22:32:19.849137Z INFO static_web_server::server: redirect trailing slash: enabled=true
2022-09-29T22:32:19.849141Z INFO static_web_server::server: grace period before graceful shutdown: 0s
2022-09-29T22:32:19.849276Z ERROR static_web_server::server: server failed to start up: failed to initialize TLS probably because invalid cert or key file
Caused by:
certificate parse error
Can you confirm please how the format of your private key looks like? Does it start with BEGIN EC PRIVATE KEY or BEGIN RSA PRIVATE KEY?
Since EC private keys are not supported on this release yet. But in the next one.
Describe the bug
Server runs on
http
as expected. I try to switch to https:I tried with with
cert.pem
,chain.pem
as well - same error. Server does not start.To Reproduce
/dev/config.file
like above, make sure paths are correctdocker run --env SERVER_CONFIG_FILE=/config.toml -v /dev/config.toml:/config.toml -p 8787:80 joseluisq/static-web-server:2.12
Expected behavior
Webiste runts over
https
.Logs/Screenshots
Environment and Specs
Additional context
Listing of the directory with files:
Docker is run by
www
user.Full config: https://pastebin.com/5XsbGVv4
The text was updated successfully, but these errors were encountered: