refactor Dockerfile to streamline build process and remove unnecessary dependencies
All checks were successful
Build and Push Container Image / build-and-push-and-deploy (push) Successful in 48s

This commit is contained in:
2025-06-16 00:59:47 +08:00
parent 5c46cdbde6
commit b8ee7551aa

View File

@ -17,6 +17,7 @@ func main() {
h.Use(func(ctx context.Context, c *app.RequestContext) {
host := string(c.Host())
if strings.HasSuffix(host, OldDomain) {
c.Header("X-Redirected-By", "liteyuki.org")
newHost := strings.TrimSuffix(host, OldDomain) + NewDomain
scheme := "https"
if proto := c.Request.Header.Get("X-Forwarded-Proto"); len(proto) > 0 {