!zghijEASpYQWYFzriI:nixos.org

Hydra

377 Members
110 Servers

Load older messages


SenderMessageTime
4 Jan 2023
@shawn8901:matrix.orgshawn8901 joined the room.12:33:30
5 Jan 2023
@vertebralsilence:matrix.orgAlexander Flurie changed their display name from vertebralsilence to flurie.18:26:41
9 Jan 2023
@adis:blad.is@adis:blad.is left the room.06:23:44
13 Jan 2023
@wucke13:matrix.orgwucke13 My /var/lib/hydra/hydra.conf has base_uri = https://long.and.serious.domain.name in it. I also restarted all hydra services (I believe at least) using sudo systemctl restart 'hydra-*'. Still, curl localhost:8008 (my hydra port, no reverse proxy in between) yields stuff like <script type="text/javascript" src="http://localhost:8008/static/js/popper.min.js"></script>. What went wrong? 17:41:13
@grahamc:nixos.org@grahamc:nixos.orgCatalyst detects the URL being used to access it, and using that for some dynamic linking17:42:01
@grahamc:nixos.org@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/" 17:42:35
@grahamc:nixos.org@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) 17:43:04
@wucke13:matrix.orgwucke13 Doesn't that defeat the hole purpose of services.hydra.hydraURL? 17:44:09
@wucke13:matrix.orgwucke13(that as in this dynamic detection mechanism)17:44:40
@grahamc:nixos.org@grahamc:nixos.orgI'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 Hydra17:44:58
@wucke13:matrix.orgwucke13
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:matrix.orgwucke13
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@grahamc:nixos.orgah, try this other header:17:48:15
@grahamc:nixos.org@grahamc:nixos.org --header X-Forwarded-Host "long.and..." 17:48:27
@wucke13:matrix.orgwucke13Nope.17:49:38
@wucke13:matrix.orgwucke13 (I'm using curl --header 'X-Forwarded-Host "https://long.and.serious.domain.name/"' localhost:8008 17:49:58
@wucke13:matrix.orgwucke13 * (I'm using curl --header 'X-Forwarded-Host "https://long.and.serious.domain.name/"' localhost:8008) 17:50:01
@grahamc:nixos.org@grahamc:nixos.orgah, oops, I gave you the wrong syntax17:50:20
@grahamc:nixos.org@grahamc:nixos.org curl --header X-Forwarded-Host: long.and... 17:50:39
@wucke13:matrix.orgwucke13Nope. Doesn't work. And without the quotation mark, curl tries to connect to long.and ...17:52:05
@wucke13:matrix.orgwucke13 But even with the quotation mark I get all kind of localhost in the response. 17:52:28
@wucke13:matrix.orgwucke13 I have an older machine with the almost identical config. Was there maybe a switch introduced dependening on systemState? 17:53:19
@grahamc:nixos.org@grahamc:nixos.orgugh I just can't get it right can I17:56:33
* @grahamc:nixos.org@grahamc:nixos.org logs onto a hydra box so he can try it17:56:59
@k900:0upti.meK900 It it now just Host: long.and.serious.domain.name? 17:57:11
@k900:0upti.meK900 * Is it not just Host: long.and.serious.domain.name? 17:57:15
@k900:0upti.meK900That's what I'd expect anyway17:57:18
@andreas.schraegle:helsinki-systems.deajs124just use recommendedproxyheaders or whatever that's called17:57:19
@wucke13:matrix.orgwucke13
In reply to @k900:0upti.me
Is it not just Host: long.and.serious.domain.name?
Yes :)
17:58:13
@grahamc:nixos.org@grahamc:nixos.org

The X-Forwarded-For (XFF) request header is a de-facto standard header for identifying the originating IP address of a client connecting to a web server through a proxy server.

d'oh, that was the wrong one entirely

17:58:33

Show newer messages


Back to Room ListRoom Version: 6