You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for sharing this with the community @leerob. Couple issues I wanted to point out:
Certbot renewal
It appears that your nginx/certbot setup is not able to handle automated renewals. I didn't look too carefully but it might be that you need to manually set up an acme-challenge block in the nginx config.
Exposed ports
Another issue I noticed is that your setup is exposing the app and db to the world. Usually you'd want to only expose TCP 80 and 443, and UDP 443 (for http/3).
Here are some ways to improve this:
Configure a firewall at the provider level (Digital Ocean has a free firewall service you can apply to droplets). To further protect the droplet, you can also configure the firewall to only open port 22 for known IPs.
Properly Dockerize nginx + certbot and only expose the nginx service. Remove all other port bindings in the docker-compose configuration or bind them to localhost/127.0.0.1 so they are not accessible to the outside world directly.
The text was updated successfully, but these errors were encountered:
Thanks for sharing this with the community @leerob. Couple issues I wanted to point out:
Certbot renewal
It appears that your nginx/certbot setup is not able to handle automated renewals. I didn't look too carefully but it might be that you need to manually set up an acme-challenge block in the nginx config.
Exposed ports
Another issue I noticed is that your setup is exposing the app and db to the world. Usually you'd want to only expose TCP 80 and 443, and UDP 443 (for http/3).
Here are some ways to improve this:
docker-compose
configuration or bind them to localhost/127.0.0.1 so they are not accessible to the outside world directly.The text was updated successfully, but these errors were encountered: