local testing uses SSL (thanks to traefik.me)
This commit is contained in:
parent
225a4ff35b
commit
a637657847
7 changed files with 129 additions and 57 deletions
2
Makefile
2
Makefile
|
|
@ -8,7 +8,7 @@ serve: site_local
|
|||
cd _site && python -m SimpleHTTPServer 2> /dev/null || python3 -m http.server
|
||||
|
||||
dock: site_local
|
||||
docker run --name bloglocal -p 8000:8000 -v `pwd`/_site:/usr/share/nginx/html:ro -v `pwd`/local-nginx.conf:/etc/nginx/nginx.conf:ro nginx
|
||||
docker run --name bloglocal -p 80:80 -p 443:443 -v `pwd`/_site:/usr/share/nginx/html:ro -v `pwd`/nginx/nginx.conf:/etc/nginx/nginx.conf:ro -v `pwd`/nginx/dhparam.pem:/etc/nginx/dhparam.pem:ro -v `pwd`/ssl:/etc/nginx/ssl:ro nginx
|
||||
|
||||
undock:
|
||||
docker stop bloglocal
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue