Closed
Description
I think Caddy could be used for the main part of the server. Gitea would listen on a different port on localhost, and Caddy would listen on the main port chosen by the user. This would allow us to do more complex things easier such as:
- Automatic HTTPS with Let's Encrypt
- Redirect HTTP to HTTPS
- Gitea pages on a separate domain
- Separate domain for raw files
- Redirect old URLs
- Set timeouts
- Listen on multiple domains and IPs
Many of the issues listed above could be fixed very easily if we integrate Caddy into Gitea.