gotls13-p1: make it possible to use certificates in test server
This commit is contained in:
parent
04625f3317
commit
2ce65e6682
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
||||
cert/
|
||||
certs/
|
||||
|
@ -2,7 +2,7 @@ FROM buildpack-deps
|
||||
|
||||
EXPOSE 443
|
||||
|
||||
#ADD cert/privkey.pem /
|
||||
#ADD cert/fullchain.pem /
|
||||
ADD certs/privkey.pem /
|
||||
ADD certs/fullchain.pem /
|
||||
ADD bin/server /
|
||||
CMD [ "/server", "-b", "0.0.0.0:443" ]
|
||||
CMD [ "/server", "-b", "0.0.0.0:443", "-cert", "/privkey.pem:/fullchain.pem" ]
|
||||
|
@ -1,8 +1,15 @@
|
||||
NAME=gotls13-p1
|
||||
build:
|
||||
mkdir -p certs
|
||||
cp ../../cert/fullchain.pem certs/
|
||||
cp ../../cert/privkey.pem certs/
|
||||
docker build -t ${NAME} .
|
||||
run:
|
||||
docker run --detach --restart always --name ${NAME} -p 50600:443 ${NAME}
|
||||
|
||||
restart:
|
||||
docker restart ${NAME}
|
||||
docker stop ${NAME}
|
||||
docker rm ${NAME}
|
||||
docker run --detach --restart always --name ${NAME} -p 50600:443 ${NAME}
|
||||
|
||||
|
||||
|
Binary file not shown.
@ -5,4 +5,4 @@ EXPOSE 443
|
||||
#ADD cert/privkey.pem /
|
||||
#ADD cert/fullchain.pem /
|
||||
ADD bin/server /
|
||||
CMD [ "/server", "-b", "0.0.0.0:443", "-enable_sidh" ]
|
||||
CMD [ "/server", "-b", "0.0.0.0:443", "-qr" ]
|
||||
|
Loading…
Reference in New Issue
Block a user