Hello! I have an instance of mastodon running in the internet. We want it also be server by *.onion address. We want to do it with the same mastodon instance.
We use mastodon in docker.
We have set up working tor hidden service and are able to make request to the onion adress and they reach our mastodon. But we have the problems:
In the internet mastodon is accessed using https and in tor - not. But when somebody access ourmastodon.onion by http it’s 302-redirected to https which can’t be served (there is no ssl certificates for *.onion as ssl is not needed for them). How can I switch this redirect off? It’s sure generated by the mastodon code.
We store mastodon content on the s3-storage. And set our own S3_HOSTNAME proxing to s3-service just as it’s described here: Moving Mastodon's media files to Wasabi Object Storage . The problem is that it will be the same both for onion site and normal site. But I want to set up some separate onion site for the media. So that links to media from ourmastodon.onion point to ourmastodonmedia.onion. So can S3_HOSTNAME be set up depending of hostname served by mastodon instance without installing separate instance for tor? (media.ourmastodon.com for ourmastodon.com and mediaourmastodon.onion for ourmastodon.onion)