mastodon_ynh icon indicating copy to clipboard operation
mastodon_ynh copied to clipboard

Add support for LOCAL_DOMAIN

Open uda opened this issue 2 years ago • 5 comments

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

uda avatar Feb 24 '23 18:02 uda

!testme

yalh76 avatar Feb 28 '23 19:02 yalh76

:v: Test Badge

yunohost-bot avatar Feb 28 '23 19:02 yunohost-bot

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

uda avatar Mar 09 '23 09:03 uda

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 avatar Aug 08 '23 15:08 rosbeef

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 ...

rosbeef avatar Aug 25 '23 01:08 rosbeef