YunoHost-Apps / mastodon_ynh

Free, open-source social network for YunoHost
https://joinmastodon.org/
GNU Affero General Public License v3.0
84 stars 36 forks source link

Add support for LOCAL_DOMAIN #371

Open uda opened 1 year ago

uda commented 1 year ago

Problem

I want to install Mastodon on a subdomain while allowing users to use their user@rootdomain identity, this is supported by mastodon using the LOCAL_DOMAIN environment variable

Solution

I added an argument local_domain that if empty uses the main domain argument

NOTICE: this currently accepts arbitrary local_domain value, since I was unable to have an empty value from domain argument type, which would allow me to add a .well-known nginx path handling, meaning that the user will need to add manual .well-known redirects (List of URLs)

PR Status

Automatic tests

None

yalh76 commented 1 year ago

!testme

yunohost-bot commented 1 year ago

:v: Test Badge

uda commented 1 year ago

It looks like the test is timing out, why does it take 180 minutes?

rosbeef commented 1 year ago

I've did it once upon a time #311 . it works when manually configuredbutb I lose my work because of lake of understanding github ;) I can help as soon as I go back home. My hope is to use mastodon as a activity pub feeder to centralize fediverse subscriptions.

The only problem I had was when I would subscribe from my mastodon to my own peertube Chanel.

And I had problem with timeout testing too.

rosbeef commented 1 year ago

Just for registry

To install your repo in my specific case (yunohost in LXC low memory container hosted on armhf arch) i had to do first :

354

then as described in https://github.com/mastodon/mastodon/issues/15751 in my case

echo /usr/lib/arm-linux-gnueabihf/libjemalloc.so > /etc/ld.so.preload
sudo apt install libjemalloc-dev

... more later ...