x0f.org just added the 'Onion-Location" HTTP header per
https://mastodon.social/@ahf/104099278435384020
@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 :)
@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
@orionwl @admin Things may very well have changed for the better and/or the documentation has gotten better in time.
When I configured nginx for owncloud, quite a while ago, there was a lot of trial-and-error and subsequently hoping that I got it right.