PierreZ / goStatic

A really small static web server for Docker
GNU General Public License v2.0
391 stars 77 forks source link

Failed generating certs: open /etc/ssl/server/cert.pem: no such file or directory #1

Closed Joshfindit closed 6 years ago

Joshfindit commented 7 years ago

docker run -p 9001:8043 -v dist:/srv/http --name goStatic pierrezemb/gostatic

2017/03/10 16:14:52 Starting goStatic
2017/03/10 16:14:52 Warning: generating self-signed certs, DO NOT USE IN PRODUCTION!
2017/03/10 16:14:55 Failed generating certs:  open /etc/ssl/server/cert.pem: no such file or directory
PierreZ commented 7 years ago

Thanks for the issue !

I must admit I wrote the code a long time ago, I'll have a look and fix it this week-end.

I ditch goStatic in favor of this:

python -m SimpleHTTPServer
Joshfindit commented 7 years ago

Yeah, me too usually but I needed a quick http server as a docker container and yours came up near the top of the results for "docker static http server"

PierreZ commented 7 years ago

FYI, I'm rewriting goStatic @Joshfindit

PierreZ commented 6 years ago

Fixed the issue