mastodon_ynh
mastodon_ynh copied to clipboard
Add support for LOCAL_DOMAIN
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
- Implement what is decided in #372
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
- [x] Code finished and ready to be reviewed/tested
- [ ] The fix/enhancement were manually tested (if applicable)
Automatic tests
None
!testme
It looks like the test is timing out, why does it take 180 minutes?
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.
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 ...