Caddy Grpc configuration for hello world Golang app

{"level":"info","ts":1738682279.9113512,"logger":"http.log.access","msg":"handled request","request":{"remote_ip":"52.47.113.81","remote_port":"48244","client_ip":"52.47.113.81","proto":"HTTP/2.0","method":"PRI","host":"","uri":"*","headers":{}},"bytes_read":0,"user_id":"","duration":0.00007736,"size":0,"status":308,"resp_headers":{"Connection":["close"],"Location":["https://*"],"Content-Type":[],"Server":["Caddy"]}}
{"level":"info","ts":1738682281.069223,"logger":"http.log.access","msg":"handled request","request":{"remote_ip":"52.47.113.81","remote_port":"48256","client_ip":"52.47.113.81","proto":"HTTP/2.0","method":"PRI","host":"","uri":"*","headers":{}},"bytes_read":0,"user_id":"","duration":0.00004484,"size":0,"status":308,"resp_headers":{"Connection":["close"],"Location":["https://*"],"Content-Type":[],"Server":["Caddy"]}}
{"level":"info","ts":1738682282.712738,"logger":"http.log.access","msg":"handled request","request":{"remote_ip":"52.47.113.81","remote_port":"48270","client_ip":"52.47.113.81","proto":"HTTP/2.0","method":"PRI","host":"","uri":"*","headers":{}},"bytes_read":0,"user_id":"","duration":0.00003696,"size":0,"status":308,"resp_headers":{"Server":["Caddy"],"Connection":["close"],"Location":["https://*"],"Content-Type":[]}}
{"level":"info","ts":1738682285.262502,"logger":"http.log.access","msg":"handled request","request":{"remote_ip":"52.47.113.81","remote_port":"48282","client_ip":"52.47.113.81","proto":"HTTP/2.0","method":"PRI","host":"","uri":"*","headers":{}},"bytes_read":0,"user_id":"","duration":0.000074041,"size":0,"status":308,"resp_headers":{"Server":["Caddy"],"Connection":["close"],"Location":["https://*"],"Content-Type":[]}}

the found logs with 308 status code is some kind of a clue

Found related potentially issue but it is not having a solution

according to this issue by default GRPC is not resolving any redirects

It may be possible with custom Serverinterceptor… but there are no code examples how