caddy

Caddy is a reverse proxy and web server that automatically manages TLS certificates, making it a more user-friendly alternative to Nginx,

write a Caddyfile

myapp.local {
    reverse_proxy localhost:3000
}
caddy start

add myapp.local 127.0.0.1 to /etc/hosts, then you can visit https://myapp.local