statping icon indicating copy to clipboard operation
statping copied to clipboard

Add SSL to EC2 instance

Open cbrody opened this issue 7 years ago • 8 comments

Hi, I've created a copy of the AWS EC2 AMI (eu-central-1 ami-06e252d6d8b0c2f1f) and have got statping running in a different AWS region, but can't figure out how to add SSL to the instance. There is no docker-compose.yml that I can find, and the image doesn't seem to include nginx or apache servers. I'm happy installing nginx, certbot etc. but wondered what the recommended method would be. Thanks!

Gitter GitHub release Build Status

cbrody avatar Nov 21 '19 15:11 cbrody

Did you figure this out? Because I am now in exactly the same position.

axtg avatar Jan 30 '20 08:01 axtg

No, I'm still using plain http to connect to the instance.

cbrody avatar Jan 30 '20 09:01 cbrody

@cbrody @axtg I got it to work using these steps:

  • add server.crt and server.key to /statping
  • stop container docker stop <name>
  • stop docker service systemctl stop docker
  • go to directory /var/lib/docker/containers/hash of container
  • edit file hostconfig.json, change port 8080 and 80 to 443
  • edit file config.v2.json, change port 8080 to 443
  • start docker service systemctl start docker

vinaykapadia avatar Feb 13 '20 16:02 vinaykapadia

This issue hasn't had any updates in a while. If this is still a problem, please create a new issue.

github-actions[bot] avatar Apr 24 '20 00:04 github-actions[bot]

I'm running into this same issue. Any update?

MMeffert avatar Apr 28 '20 21:04 MMeffert

@MMeffert did you try the steps i posted?

vinaykapadia avatar Apr 28 '20 22:04 vinaykapadia

@vinaykapadia Your instructions worked perfectly. Thank you! Do you know why this issue isn't being fixed or at least update the wiki instructions?

MMeffert avatar Apr 29 '20 01:04 MMeffert

This issue hasn't had any updates in a while. If this is still a problem, please create a new issue.

github-actions[bot] avatar May 30 '20 00:05 github-actions[bot]