Just to clarify:
Uploading works correctly both from the HTTPS domain and the TOR hidden service .onion but the actual HTML generated for a post uses a full URL which is a problem.
I’m assuming somewhere there is some code that does something like
'<img src="' + Discourse.base_url_no_prefix + '/uploads/....jpg' + '">'
and I need it to generate
'<img src="' + '/uploads/....jpg' + '">'
Would playing with
absolute_without_cdn be too low-level and affect too many things?
The URL needs to be relative because:
- A normal browser cannot access the .onion URL.
- Cannot access the normal site over TOR because it is behind DDoS protection. And even if it worked, I don’t want to leak details to TOR exit nodes.