Add SSL to EC2 instance
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!
Did you figure this out? Because I am now in exactly the same position.
No, I'm still using plain http to connect to the instance.
@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
This issue hasn't had any updates in a while. If this is still a problem, please create a new issue.
I'm running into this same issue. Any update?
@MMeffert did you try the steps i posted?
@vinaykapadia Your instructions worked perfectly. Thank you! Do you know why this issue isn't being fixed or at least update the wiki instructions?
This issue hasn't had any updates in a while. If this is still a problem, please create a new issue.