Traefik Support for node-solid-server

Hi Solid Community,

I am trying to get node-solid-server up and running on my homelab using traefik. I have been able to convert my certificates from traefik’s acme.json file to the format solid likes and started the server but I keep getting 502 redirect errors. I researched how to set the proxied service as HTTPs in traefik but gof different errors instead. Here is a link to my solid docker-compose.yml file I want to use in my homelab. Any help would be appreciated. I have attached some logs below.

From Traefik

time="2021-07-11T19:43:16Z" level=debug msg="vulcand/oxy/roundrobin/rr: begin ServeHttp on request" Request="{\"Method\":\"GET\",\"URL\":{\"Scheme\":\"\",\"Opaque\":\"\",\"User\":null,\"Host\":\"\",\"Path\":\"/\",\"RawPath\":\"\",\"ForceQuery\":false,\"RawQuery\":\"\",\"Fragment\":\"\"},\"Proto\":\"HTTP/2.0\",\"ProtoMajor\":2,\"ProtoMinor\":0,\"Header\":{\"Accept\":[\"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8\"],\"Accept-Encoding\":[\"gzip, deflate, br\"],\"Accept-Language\":[\"en-US,en;q=0.5\"],\"Cookie\":[\"key=63eddf37b12a2c059a8300fccddb7133177acef246d7fabf8afe957db589e2f2\"],\"Te\":[\"trailers\"],\"Upgrade-Insecure-Requests\":[\"1\"],\"User-Agent\":[\"Mozilla/5.0 (X11; Linux x86_64; rv:89.0) Gecko/20100101 Firefox/89.0\"],\"X-Forwarded-Host\":[\"solid.hermetic.monster\"],\"X-Forwarded-Port\":[\"443\"],\"X-Forwarded-Proto\":[\"https\"],\"X-Forwarded-Server\":[\"291b3ad22d3d\"],\"X-Real-Ip\":[\"174.88.105.216\"]},\"ContentLength\":0,\"TransferEncoding\":null,\"Host\":\"solid.hermetic.monster\",\"Form\":null,\"PostForm\":null,\"MultipartForm\":null,\"Trailer\":null,\"RemoteAddr\":\"174.88.105.216:45318\",\"RequestURI\":\"/\",\"TLS\":null}"
time="2021-07-11T19:43:16Z" level=debug msg="vulcand/oxy/roundrobin/rr: Forwarding this request to URL" ForwardURL="http://192.168.192.4:8443" Request="{\"Method\":\"GET\",\"URL\":{\"Scheme\":\"\",\"Opaque\":\"\",\"User\":null,\"Host\":\"\",\"Path\":\"/\",\"RawPath\":\"\",\"ForceQuery\":false,\"RawQuery\":\"\",\"Fragment\":\"\"},\"Proto\":\"HTTP/2.0\",\"ProtoMajor\":2,\"ProtoMinor\":0,\"Header\":{\"Accept\":[\"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8\"],\"Accept-Encoding\":[\"gzip, deflate, br\"],\"Accept-Language\":[\"en-US,en;q=0.5\"],\"Cookie\":[\"key=63eddf37b12a2c059a8300fccddb7133177acef246d7fabf8afe957db589e2f2\"],\"Te\":[\"trailers\"],\"Upgrade-Insecure-Requests\":[\"1\"],\"User-Agent\":[\"Mozilla/5.0 (X11; Linux x86_64; rv:89.0) Gecko/20100101 Firefox/89.0\"],\"X-Forwarded-Host\":[\"solid.hermetic.monster\"],\"X-Forwarded-Port\":[\"443\"],\"X-Forwarded-Proto\":[\"https\"],\"X-Forwarded-Server\":[\"291b3ad22d3d\"],\"X-Real-Ip\":[\"174.88.105.216\"]},\"ContentLength\":0,\"TransferEncoding\":null,\"Host\":\"solid.hermetic.monster\",\"Form\":null,\"PostForm\":null,\"MultipartForm\":null,\"Trailer\":null,\"RemoteAddr\":\"174.88.105.216:45318\",\"RequestURI\":\"/\",\"TLS\":null}"
time="2021-07-11T19:43:16Z" level=debug msg="'502 Bad Gateway' caused by: EOF"
time="2021-07-11T19:43:16Z" level=debug msg="vulcand/oxy/roundrobin/rr: completed ServeHttp on request" Request="{\"Method\":\"GET\",\"URL\":{\"Scheme\":\"\",\"Opaque\":\"\",\"User\":null,\"Host\":\"\",\"Path\":\"/\",\"RawPath\":\"\",\"ForceQuery\":false,\"RawQuery\":\"\",\"Fragment\":\"\"},\"Proto\":\"HTTP/2.0\",\"ProtoMajor\":2,\"ProtoMinor\":0,\"Header\":{\"Accept\":[\"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8\"],\"Accept-Encoding\":[\"gzip, deflate, br\"],\"Accept-Language\":[\"en-US,en;q=0.5\"],\"Cookie\":[\"key=63eddf37b12a2c059a8300fccddb7133177acef246d7fabf8afe957db589e2f2\"],\"Te\":[\"trailers\"],\"Upgrade-Insecure-Requests\":[\"1\"],\"User-Agent\":[\"Mozilla/5.0 (X11; Linux x86_64; rv:89.0) Gecko/20100101 Firefox/89.0\"],\"X-Forwarded-Host\":[\"solid.hermetic.monster\"],\"X-Forwarded-Port\":[\"443\"],\"X-Forwarded-Proto\":[\"https\"],\"X-Forwarded-Server\":[\"291b3ad22d3d\"],\"X-Real-Ip\":[\"174.88.105.216\"]},\"ContentLength\":0,\"TransferEncoding\":null,\"Host\":\"solid.hermetic.monster\",\"Form\":null,\"PostForm\":null,\"MultipartForm\":null,\"Trailer\":null,\"RemoteAddr\":\"174.88.105.216:45318\",\"RequestURI\":\"/\",\"TLS\":null}"
time="2021-07-11T19:43:16Z" level=debug msg="vulcand/oxy/roundrobin/rr: begin ServeHttp on request" Request="{\"Method\":\"GET\",\"URL\":{\"Scheme\":\"\",\"Opaque\":\"\",\"User\":null,\"Host\":\"\",\"Path\":\"/favicon.ico\",\"RawPath\":\"\",\"ForceQuery\":false,\"RawQuery\":\"\",\"Fragment\":\"\"},\"Proto\":\"HTTP/2.0\",\"ProtoMajor\":2,\"ProtoMinor\":0,\"Header\":{\"Accept\":[\"image/webp,*/*\"],\"Accept-Encoding\":[\"gzip, deflate, br\"],\"Accept-Language\":[\"en-US,en;q=0.5\"],\"Cookie\":[\"key=63eddf37b12a2c059a8300fccddb7133177acef246d7fabf8afe957db589e2f2\"],\"Referer\":[\"https://solid.hermetic.monster/\"],\"Te\":[\"trailers\"],\"User-Agent\":[\"Mozilla/5.0 (X11; Linux x86_64; rv:89.0) Gecko/20100101 Firefox/89.0\"],\"X-Forwarded-Host\":[\"solid.hermetic.monster\"],\"X-Forwarded-Port\":[\"443\"],\"X-Forwarded-Proto\":[\"https\"],\"X-Forwarded-Server\":[\"291b3ad22d3d\"],\"X-Real-Ip\":[\"174.88.105.216\"]},\"ContentLength\":0,\"TransferEncoding\":null,\"Host\":\"solid.hermetic.monster\",\"Form\":null,\"PostForm\":null,\"MultipartForm\":null,\"Trailer\":null,\"RemoteAddr\":\"174.88.105.216:45318\",\"RequestURI\":\"/favicon.ico\",\"TLS\":null}"
time="2021-07-11T19:43:16Z" level=debug msg="vulcand/oxy/roundrobin/rr: Forwarding this request to URL" ForwardURL="http://192.168.192.4:8443" Request="{\"Method\":\"GET\",\"URL\":{\"Scheme\":\"\",\"Opaque\":\"\",\"User\":null,\"Host\":\"\",\"Path\":\"/favicon.ico\",\"RawPath\":\"\",\"ForceQuery\":false,\"RawQuery\":\"\",\"Fragment\":\"\"},\"Proto\":\"HTTP/2.0\",\"ProtoMajor\":2,\"ProtoMinor\":0,\"Header\":{\"Accept\":[\"image/webp,*/*\"],\"Accept-Encoding\":[\"gzip, deflate, br\"],\"Accept-Language\":[\"en-US,en;q=0.5\"],\"Cookie\":[\"key=63eddf37b12a2c059a8300fccddb7133177acef246d7fabf8afe957db589e2f2\"],\"Referer\":[\"https://solid.hermetic.monster/\"],\"Te\":[\"trailers\"],\"User-Agent\":[\"Mozilla/5.0 (X11; Linux x86_64; rv:89.0) Gecko/20100101 Firefox/89.0\"],\"X-Forwarded-Host\":[\"solid.hermetic.monster\"],\"X-Forwarded-Port\":[\"443\"],\"X-Forwarded-Proto\":[\"https\"],\"X-Forwarded-Server\":[\"291b3ad22d3d\"],\"X-Real-Ip\":[\"174.88.105.216\"]},\"ContentLength\":0,\"TransferEncoding\":null,\"Host\":\"solid.hermetic.monster\",\"Form\":null,\"PostForm\":null,\"MultipartForm\":null,\"Trailer\":null,\"RemoteAddr\":\"174.88.105.216:45318\",\"RequestURI\":\"/favicon.ico\",\"TLS\":null}"
time="2021-07-11T19:43:16Z" level=debug msg="'499 Client Closed Request' caused by: context canceled"
time="2021-07-11T19:43:16Z" level=debug msg="vulcand/oxy/roundrobin/rr: completed ServeHttp on request" Request="{\"Method\":\"GET\",\"URL\":{\"Scheme\":\"\",\"Opaque\":\"\",\"User\":null,\"Host\":\"\",\"Path\":\"/favicon.ico\",\"RawPath\":\"\",\"ForceQuery\":false,\"RawQuery\":\"\",\"Fragment\":\"\"},\"Proto\":\"HTTP/2.0\",\"ProtoMajor\":2,\"ProtoMinor\":0,\"Header\":{\"Accept\":[\"image/webp,*/*\"],\"Accept-Encoding\":[\"gzip, deflate, br\"],\"Accept-Language\":[\"en-US,en;q=0.5\"],\"Cookie\":[\"key=63eddf37b12a2c059a8300fccddb7133177acef246d7fabf8afe957db589e2f2\"],\"Referer\":[\"https://solid.hermetic.monster/\"],\"Te\":[\"trailers\"],\"User-Agent\":[\"Mozilla/5.0 (X11; Linux x86_64; rv:89.0) Gecko/20100101 Firefox/89.0\"],\"X-Forwarded-Host\":[\"solid.hermetic.monster\"],\"X-Forwarded-Port\":[\"443\"],\"X-Forwarded-Proto\":[\"https\"],\"X-Forwarded-Server\":[\"291b3ad22d3d\"],\"X-Real-Ip\":[\"174.88.105.216\"]},\"ContentLength\":0,\"TransferEncoding\":null,\"Host\":\"solid.hermetic.monster\",\"Form\":null,\"PostForm\":null,\"MultipartForm\":null,\"Trailer\":null,\"RemoteAddr\":\"174.88.105.216:45318\",\"RequestURI\":\"/favicon.ico\",\"TLS\":null}"

From Solid

solid    | 2021-07-11T19:49:20.385Z solid:authentication Error registering a new client:  { Error: Error fetching openid configuration: 500 Internal Server Error
solid    |     at /usr/local/lib/node_modules/solid-server/node_modules/@solid/oidc-rp/src/onHttpError.js:32:17
solid    |     at process._tickCallback (internal/process/next_tick.js:68:7)
solid    |   response:
solid    |    Response {
solid    |      size: 0,
solid    |      timeout: 0,
solid    |      [Symbol(Body internals)]: { body: [PassThrough], disturbed: false, error: null },
solid    |      [Symbol(Response internals)]:
solid    |       { url:
solid    |          'https://solid.hermetic.monster/.well-known/openid-configuration',
solid    |         status: 500,
solid    |         statusText: 'Internal Server Error',
solid    |         headers: [Headers],
solid    |         counter: 0 } },
solid    |   statusCode: 500 }
solid    | 2021-07-11T19:49:20.390Z solid:authentication Error initializing local RP client:  { Error: Error fetching openid configuration: 500 Internal Server Error
solid    |     at /usr/local/lib/node_modules/solid-server/node_modules/@solid/oidc-rp/src/onHttpError.js:32:17
solid    |     at process._tickCallback (internal/process/next_tick.js:68:7)
solid    |   response:
solid    |    Response {
solid    |      size: 0,
solid    |      timeout: 0,
solid    |      [Symbol(Body internals)]: { body: [PassThrough], disturbed: false, error: null },
solid    |      [Symbol(Response internals)]:
solid    |       { url:
solid    |          'https://solid.hermetic.monster/.well-known/openid-configuration',
solid    |         status: 500,
solid    |         statusText: 'Internal Server Error',
solid    |         headers: [Headers],
solid    |         counter: 0 } },
solid    |   statusCode: 500 }