Skip to content

Commit c85a575

Browse files
committed
Set X-Forwarded headers
1 parent 00e4c85 commit c85a575

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/lint-test-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040

4141
run:
4242
needs: [lint-test]
43-
uses: libops/.github/.github/workflows/build-push-ghcr.yaml@main
43+
uses: libops/.github/.github/workflows/build-push.yaml@main
4444
permissions:
4545
contents: read
4646
packages: write

pkg/proxy/tls.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ func (p *ReverseProxy) ServeHTTP(w http.ResponseWriter, r *http.Request) {
7474
pr.Out.Header["X-Cloud-Trace-Context"] = p.Trace
7575
pr.Out.Header["X-Forwarded-For"] = p.Ip
7676
pr.Out.Header["X-Forwarded-Host"] = p.Host
77+
pr.Out.Header["X-Forwarded-Proto"] = []string{"https"}
7778
},
7879
}
7980

0 commit comments

Comments
 (0)