File: support_for_https_proxy__63__.mdwn

package info (click to toggle)
debug-me 1.20200820-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 708 kB
  • sloc: haskell: 3,140; sh: 115; makefile: 80
file content (16 lines) | stat: -rw-r--r-- 785 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
I tried a simple nginx port forward
[[!format text """
location /debug-me/ {
    proxy_set_header Host $http_host;
    proxy_set_header X-Forwarded-Proto https;
    proxy_redirect off;
    proxy_pass https://127.0.0.1:8081;
    proxy_http_version 1.1;
}
"""]]

I'm not sure if I botched the proxy configuration, or if debug-me needs something added to support proxying?

[[!format text """
Connecting to debug-me server...debug-me: MalformedResponse (ResponseHead {responseCode = 301, responseMessage = "Moved Permanently", responseHeaders = [("Server","nginx/1.14.2"),("Date","Wed, 19 Aug 2020 15:02:36 GMT"),("Content-Type","text/html"),("Content-Length","185"),("Location","http://pivot.cs.unb.ca/debug-me/"),("Connection","keep-alive")]}) "Wrong response status or message."
"""]]