File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ RUN apk --no-cache add openssl
1212
1313RUN sh generate-cert.sh
1414
15- EXPOSE 80 443
15+ EXPOSE 8080 8443
1616
1717
1818ENTRYPOINT ["node" , "./index.js" ]
Original file line number Diff line number Diff line change @@ -19,8 +19,8 @@ You can substitute the certificate and private key with your own. This example u
1919 my-http-listener:
2020 image: mendhak/http-https-echo
2121 ports:
22- - "8080:80 "
23- - "8443:443 "
22+ - "8080:8080 "
23+ - "8443:8443 "
2424 volumes:
2525 - /etc/ssl/certs/ssl-cert-snakeoil.pem:/app/fullchain.pem
2626 - /etc/ssl/private/ssl-cert-snakeoil.key:/app/privkey.pem
Original file line number Diff line number Diff line change @@ -56,8 +56,8 @@ const sslOpts = {
5656 cert : require ( 'fs' ) . readFileSync ( 'fullchain.pem' ) ,
5757} ;
5858
59- http . createServer ( app ) . listen ( 80 ) ;
60- https . createServer ( sslOpts , app ) . listen ( 443 ) ;
59+ http . createServer ( app ) . listen ( 8080 ) ;
60+ https . createServer ( sslOpts , app ) . listen ( 8443 ) ;
6161
6262let calledClose = false ;
6363
You can’t perform that action at this time.
0 commit comments