x0f.org just added the 'Onion-Location" HTTP header per
https://mastodon.social/@ahf/104099278435384020
@FreePietje @admin not sure if that's supposed to be the case, i'll look into it
@orionwl @admin I noticed I got the widget on https://samhowell.uk/ by @syntax but not on the corresponding .onion site.
OTOH, it's only a sample size of 1.
@FreePietje @admin setting headers conditionally is not trivial with nginx, the obvious if(){} doesn't work; i think i got it to work though—by using a variable generated though a map statement on $host
@FreePietje @admin hmm in my experience nginx is simpler to configure (for the things i do) than what i remember from apache, it's just that it's inherently more minimalistic so less likely to support these kind of edge cases
@FreePietje @orionwl @admin Do you mean when you went to my onion site, that site also offered itself as an option? Would be good to see a screenshot. I'll also look into this myself.
@admin The header is apparently also sent, and thus the '.onion available' widget shown, when you are on the .onion page/site.
Nothing big, just thought I'd mention it :)