this post was submitted on 07 Jul 2023
5 points (100.0% liked)

Lemmy Support

4656 readers
16 users here now

Support / questions about Lemmy.

Matrix Space: #lemmy-space

founded 5 years ago
MODERATORS
 

Hello all!

I finally got my Lemmy instance up and running yay!

It runs on a local machine, I have nginx installed and my website pointing onto it.

lemmy.mindoki.com => my_static_ip(port 80) => local_ip => nginx

In ngunx I just set up a hello world message, and it works out. lemmy.mindoki.com shows it.

Now, my Lemmy instance is accessible on 0.0.0.0:1236 but obviously only from inside the hosting machine itself.

I have tinkered a bit with the nginx.conf but I feel there is lot of things to do wrongly, especially as it's 'dynamic', but also it seems like a schoolbook example (for Lemmy, so no hits on my favourite search engine), so maybe someone has a working nginx.conf file to spare for a basic setup like this?

Thanks a bunch!

you are viewing a single comment's thread
view the rest of the comments
[–] Valmond@lemmy.ml 1 points 1 year ago* (last edited 1 year ago)

EDIT: The site itself works now, so I "only" need help with nginx :-)

EDIT: DISCARD THE FOLLOWING LINES (Strike-through doesn't seem to work):

~~BTW, I get a handful of errors when I start Lemmy :

thread 'main' panicked at 'Error connecting to postgres://lemmy:thepassword@postgres:5432/lemmy: could not connect to server: Connection refused

lemmy_1 | Is the server running on host "postgres" (172.18.0.2) and accepting

lemmy_1 | TCP/IP connections on port 5432?

I do not know at all where that 172.18.0.2 address comes from sweating :-D~~