Skip to content

Commit

Permalink
prepend 'chatbot/' to all proxy responses
Browse files Browse the repository at this point in the history
  • Loading branch information
ili16 committed Jan 11, 2024
1 parent 43666cc commit be75709
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions Kubernetes/modernizer/modernizer-ingress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ metadata:
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /$2$3
nginx.ingress.kubernetes.io/use-regex: 'true'
nginx.ingress.kubernetes.io/configuration-snippet: |
proxy_set_header Referer $http_referer;
spec:
tls:
- hosts:
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ func proxy(c *gin.Context) {
req.Host = remote.Host
req.URL.Scheme = remote.Scheme
req.URL.Host = remote.Host
req.URL.Path = c.Param("proxyPath")
req.URL.Path = "chatbot/" + c.Param("proxyPath")
}

proxy.ServeHTTP(c.Writer, c.Request)
Expand Down

0 comments on commit be75709

Please sign in to comment.