Skip to content

Commit 48aeade

Browse files
authored
Merge pull request #1 from opsta/change_port
change port to 8080 and 8443
2 parents 5c77bf2 + b593816 commit 48aeade

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ RUN apk --no-cache add openssl
1212

1313
RUN sh generate-cert.sh
1414

15-
EXPOSE 80 443
15+
EXPOSE 8080 8443
1616

1717

1818
ENTRYPOINT ["node", "./index.js"]

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

6262
let calledClose = false;
6363

0 commit comments

Comments
 (0)