matt

joined 1 year ago
[–] matt@lemmy.piperservers.net 1 points 11 months ago* (last edited 11 months ago) (1 children)

You can use the FQDN of your Lemmy instance in the nginx.conf file. I've uploaded my files to a gist here as an example.

You should be able just to replace any mention of lemmy.mydomain.com with your FQDN of your Lemmy instance and replace any your-postgres-password with your real Postgres password. You must also set your SMTP provider settings in the email section of config.hjson (I use Brevo). In the docker-compose.yml file, you can change which port you want to map from the host; I used 8976 in mine. Then just point your internet-facing reverse proxy to the host and whichever port you chose.

I'm not using Ansible to automate it at all. I'm just updating the files manually, as needed, and doing docker compose commands. I'm using Docker volumes to persist the data on them, so feel free to change any of those basic things you want.

[–] matt@lemmy.piperservers.net 2 points 11 months ago (3 children)

Think of the NGINX proxy in Lemmy's docker-compose.yml file as the entry point to Lemmy from outside the Docker network. For instance, I don't have any ports mapped for the individual services except for the NGINX service. The NGINX proxy in this docker-compose file will access the other services through the internal docker network, so it isn't a problem if you set up your nginx.conf file with the service's names. With that done, you could map any port you want for the NGINX service from the host, then point your internet-facing reverse proxy to that.

I also plan on setting up a Mastodon server, but I haven't gotten to it yet. So I don't have anything specific to add other than it will work similarly by using docker's port mapping or service names depending on whether each service needs to be internet-facing or only communicate internally.

[–] matt@lemmy.piperservers.net 11 points 1 year ago

No, no you should not. I haven't used homepage but you probably just need to attach the services to the same network or just map the ports on the host and just use the host IP.

[–] matt@lemmy.piperservers.net 4 points 1 year ago

You're right, but as you said, the reason I reacted this way is because of the way you posted it. I'm also taking out some frustration about everyone and their mother having some "great feature" or idea they want to suggest even if they haven't thought it through. For that, I apologize.

Maybe it could be done, but I'm quite sure that doing it correctly wouldn't be as simple as you think. I won't pretend to know how all of the software works, but I think it's safe to assume there are a lot of technical things to consider, especially when federating (and other fediverse software) comes into play. Realistically, I would see this as a waste of effort and a very low priority.

[–] matt@lemmy.piperservers.net 30 points 1 year ago (2 children)

That is exactly what I thought of when I read this. Why would Lemmy implement such a seemingly obvious bad feature and become 4chan?

Also, the claim that this would prevent bot accounts is way off. Bot accounts still need an instance to register on anyways. The thing is, anyone can spin up an instance at any time All this "feature" would do is let them hide...

Great post to demonstrate how some ideas might sound good to you, but are actually just bad, lol.

[–] matt@lemmy.piperservers.net 1 points 1 year ago

There could be any number of reasons. For one, you can avoid power-tripping mods that ban people they disagree with just because they can. Even though they chose the same name, different communities might have different purposes or rules. Just find the ones you like and subscribe without worrying too much. Everything is federated so it doesn't matter.

[–] matt@lemmy.piperservers.net 5 points 1 year ago (1 children)

Since nobody bothers to check previous posts (even from just a day or two ago), I won't bother with the details. All I will say is to learn the purposes of an MX record and how sending email works (and the differences). Hint: MX records have nothing to do with sending emails from your server. Just use a third party SMTP service in your config.hjson file.

[–] matt@lemmy.piperservers.net 1 points 1 year ago

For Lemmy users specifically, I believe Lemmings has been widely accepted. However, when referring to a user of federated software in general (remember they can potentially communicate with other federated software), we could refer to each other as "Fedizens" of the "Fediverse". I have seen a developer use the term "Fedizen" in one of their code examples, and I like it as a more inclusive name.