I am running Caddy web server, however as a non root user.
Ports under 1024 require root privilege which I do not have.
So, I have prerouted port 80 to 8080 and 443 to 8443 with nf tables.
Now, when i try to host a website, i get a TLS error.
I don't understand the issue and I thought caddy automatically handles TLS.
Here is a snippet of the Caddyfile with the domain name substituted:
{
http_port 8080
https_port 8443
}
hello.com {
root * /srv/storagebox/www/hello/index.html
file_server
}