| 13 Jan 2023 |
wucke13 | (that as in this dynamic detection mechanism) | 17:44:40 |
@grahamc:nixos.org | I'm not totally sure about the backstory there, but not quite. that base_uri argument is used in a few places and ways, and part of the reason is when code runs outside of a web request it sometimes needs to know the base URI of Hydra | 17:44:58 |
wucke13 | In reply to @grahamc:nixos.org if you add a header to your request you can tweak it, like --header X-Forwarded-For "https://long.and.serious.domain.name/" (edited to fix the header name) That by the way still doesn't work. | 17:47:33 |
wucke13 | In reply to @grahamc:nixos.org if you add a header to your request you can tweak it, like --header X-Forwarded-For "https://long.and.serious.domain.name/" (edited to fix the header name) * ~~That by the way still doesn't work.~~ hang on, whitesace error | 17:48:14 |
@grahamc:nixos.org | ah, try this other header: | 17:48:15 |
@grahamc:nixos.org | --header X-Forwarded-Host "long.and..." | 17:48:27 |
wucke13 | Nope. | 17:49:38 |
wucke13 | (I'm using curl --header 'X-Forwarded-Host "https://long.and.serious.domain.name/"' localhost:8008 | 17:49:58 |
wucke13 | * (I'm using curl --header 'X-Forwarded-Host "https://long.and.serious.domain.name/"' localhost:8008) | 17:50:01 |
@grahamc:nixos.org | ah, oops, I gave you the wrong syntax | 17:50:20 |
@grahamc:nixos.org | curl --header X-Forwarded-Host: long.and... | 17:50:39 |
wucke13 | Nope. Doesn't work. And without the quotation mark, curl tries to connect to long.and ... | 17:52:05 |
wucke13 | But even with the quotation mark I get all kind of localhost in the response. | 17:52:28 |
wucke13 | I have an older machine with the almost identical config. Was there maybe a switch introduced dependening on systemState? | 17:53:19 |