PalisadoesFoundation / talawa-api

API Backend for the Talawa Mobile App. Click on the link below to see our documentation
https://docs.talawa.io/
GNU General Public License v3.0
204 stars 668 forks source link

Migrate from Nginx to Caddy for Reverse Proxy in Cloud API Demo #2360

Open vasujain275 opened 1 week ago

vasujain275 commented 1 week ago

Is your feature request related to a problem? Please describe. Currently we are using Nginx to do reverse proxy for our cloud instance with cerbot for ssl certificate. But Caddy is much more simple effectice and more maintaible solution to this. So, thats why it will be good for us to migrate to Caddy

Describe the solution you'd like As the Cloud API Demo Instance is WIP currently(issue - #1428 ) , it will be easy to implement Caddy and change the documentation of cloud instance setup accordingly.

Describe alternatives you've considered There are mainly these two reverse proxy most popular and used while hosting and I think Cady is better suited for our purpose.

Approach to be followed (optional)

  1. Create a Caddyfile in the Repo.
  2. Setup Caddy on the Demo VPS.
  3. Document the Steps.

Additional context N/A

Potential internship candidates Please read this if you are planning to apply for a Palisadoes Foundation internship https://github.com/PalisadoesFoundation/talawa/issues/359

vasujain275 commented 1 week ago

Can I work on this?

palisadoes commented 1 week ago

Is this really necessary? Doesn't it work already, why change?

Cioppolo14 commented 1 week ago

@vasujain275 Can you explain in more detail why we need this change?

vasujain275 commented 1 week ago
  1. Caddy requires only a simple Caddyfile, making setup easier than Nginx with Certbot.
  2. It automatically handles HTTPS, including acquiring and renewing certificates, with no extra cron jobs.
  3. It works seamlessly with Docker, allowing for straightforward configuration within Docker Compose.
  4. It supports on-the-fly configuration changes without needing to reload the server, ensuring continuous availability.
palisadoes commented 6 days ago

OK