Hello. As I’ve mentioned on my presentation post, I’m planning to host an instance of LemmyBB, and although I won’t start the actual installation until all the holidays have ended, I’m already in the planning stage, and many questions are already popping out :
If I’m understanding correctly, the docker image exposes the service on http://127.0.0.1:8701/, and then is reverse-proxied to the outside world. Can this reverse proxy be carried with Apache? I’ve never used nginx, however I have lots of experience with Apache, including reverse proxies, so I would prefer to stick with what I know. I can build a configuration for it based on the config file for nginx, no problem on this, but I need to know if the actual software will tolerate this or fail spectacularly
System and bandwidth requirements? I’ll be using a bare metal server, and industrial PC with an Atom D510, 4GB of ram and 128 GB of total disk space. The connection is going to be my home connection, trough my home router
Thanks for the help.
Official community for lemmyBB frontend.
Aaaand, first failure!!
After installing rustup, using cargo to download+compile lemmy server, and configuring lemmy, when I try to execute lemmy-server it fails. After enabling the backtrace, this is what I get:
These variables are probably relevant:
CARGO_HOME=/usr/local/cargo
RUSTUP_HOME=/usr/local/rustup
PATH=/usr/local/cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
RUST_BACKTRACE=full\
(Side note, the “code” and “quote” functions of the forum are cranky to say the least)
Any suggestion would be greatly appreciated.
Hi! 127.0.0.1 works fine as bind address. And you should set tls_enabled: true, but there is no need to pass tls certificates to Lemmy or anything like that. It just needs to know which protocol to use when generating some urls.
Hi again!
After the long holidays, here I am again
My server is starting to take shape. Apache is already working, the 2 needed hostnames are online, and the certificates are configured (certbot). PostgreSQL is also already working correctly. This week I’ll attempt installing Lemmy and then LemmyBB, but I’m already having some doubts about the configuration of Lemmy, in particular here:
For the hostname, I’m assuming it’s the public FQDN.
The bind can be 127.0.01, as Apache will reverse proxy it?
Port is clear.
As the reverse proxy (Apache) is the one who is going to be handling the actual TLS, should TLS be enabled here? As I don’t see any way of configuring the certificate into Lemmy, is this a way of telling Lemmy that the reverse has TLS enabled? If Lemmy needs the actual certificate (how?), can it be pointed to the same key file that certbot generates for Apache, so as to simplify it’s renewal?
Many thanks!!
Well, after nutomic comments, and after reading the Lemmy docs in depth, I’m going with the manual installation
I’ll report back when I have something working, after all the holidays pan out.
Happy new year!
You dont need to worry so much about the warning regarding manual installation. You can always ask for help here, just not on Github which is generally the wrong place for that.
If you install with Docker in /srv/lemmybb, then all data will be stored in the volumes/ subfolder of that path. But you can also choose any different path for installation. If you install with docker-compose, using the db from other services might be tricky, not sure how it would work.
Apache should work just fine, however I am not aware of any existing Lemmy config for it, so you would have to write it yourself based on the nginx config.
The hardware requirements are extremely low, as everything is written in Rust. The language is extremely efficient, and as Lemmy doesnt do anything complex beyond text processing and some cryptographic signatures for federation, even the slowest possible device should easily handle hundreds or thousands of users.
Where did you read the command
mkdir /srv/lemmybb
?Yes and no The database is running in a Docker container, but the database files are located outside the container
volumes/postgres
yes it is possible to do the reverse proxy with apache but as far as I know nginx is more performant and easier to set up
the hardware requirements depend on what you want to achieve, an instance with 10k users? then neither the hardware nor the bandwidth will be sufficient.
Which question has now had to do with lemmybb, it was here only about lemmy backend
Here: https://github.com/LemmyNet/lemmyBB#installation
Understood. The question is, can this instance of Postgres be accesed from another application? I’ll investigate further.
As I said, I have zero experience with Nginx, and lots of experience with Apache. As exposing a service to the internet can be dangerous, I’m more comfortable with my knowledge about securing Apache.
I have no goal in mind, if in the future it grows a lot, I can always migrate to a bigger setup. My concern is not meeting even the bare minimum.
Sorry, I’m not sure what you are trying to convey here.
ah ok, you can create the directory where you want because it is only about the directory where all the data and the database is stored.
I can’t tell you, I don’t know enough about docker to give you a valid answer.
as @nutomic@fedibb.ml said, there is no apache configuration currently available as a template, you would have to create one yourself