- Newest
- Most votes
- Most comments
Can not recommend this AWS Application Image. I will create a regular micro instance and install docker with Uptime Kuma + SSL certs there.
For future reference: https://gist.github.com/qubit999/80d851a2b3e80e1c399bfbe6c131cacb
To add HTTPS certificates for your Uptime Kuma status page running on an EC2 instance, you have a few options:
- Using Certbot: Certbot is a popular tool for obtaining and installing Let's Encrypt certificates. You can install Certbot on your EC2 instance and use it to obtain and automatically renew certificates for your domain (health.xyz.com). This method would involve:
- Installing Certbot on your EC2 instance
- Using Certbot to obtain a certificate for your domain
- Configuring your web server (likely Nginx, which is often used with Docker) to use the obtained certificate
- Setting up automatic renewal of the certificate
-
Using Portainer: If you've found settings in Portainer to add HTTPS certificates, this would likely only affect Portainer itself and not the Uptime Kuma container. However, you could use Portainer to manage the configuration of your Uptime Kuma container to use the certificates.
-
Docker-specific solution: Since Uptime Kuma is running in a Docker container, you could use a reverse proxy container like Traefik or Nginx Proxy Manager. These can automatically obtain and renew Let's Encrypt certificates and route traffic to your Uptime Kuma container.
For the easiest ongoing maintenance, the Certbot method or a Docker-based reverse proxy solution would be ideal. They both offer automatic renewal of certificates, which reduces the hassle when certificates need to be renewed.
To implement the Certbot method:
- SSH into your EC2 instance
- Install Certbot
- Use Certbot to obtain a certificate for health.xyz.com
- Configure your web server to use the new certificate
- Set up a cron job for automatic renewal
Remember to ensure that your EC2 instance's security group allows inbound traffic on port 80 (for the initial certificate request) and port 443 (for HTTPS).
Whichever method you choose, make sure to follow best practices for securing your EC2 instance and properly managing your certificates.
Sources
How to use Certbot to enable HTTPS with Apache or Nginx on EC2 instances running Amazon Linux 2 (AL2) ? | AWS re:Post
Relevant content
- asked 3 years ago
- asked a year ago
- asked 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 4 years ago
- AWS OFFICIALUpdated 4 months ago
Thank you for the response. I just installed Uptime Kuma + SSL certificates manually in under 5 minutes on a free tier EC2 instance. Works fine for me. :-)