Giter Site home page Giter Site logo

Comments (11)

Nutomic avatar Nutomic commented on July 19, 2024 1

Are you asking because there is some error or problem with your installation? Can you describe what exactly is going wrong?

from lemmybb.

Tealk avatar Tealk commented on July 19, 2024

Hello,

which installation mode are you talking about?
You only need to adjust the nginx configuration if you deviate from the default configuration. Otherwise you can follow the installation instructions.

When I tried with LemmyBB I found that calls via the local address are more stable. In addition, a call via the domain does not work if the server is behind a NAT.

from lemmybb.

nixoye avatar nixoye commented on July 19, 2024

from lemmybb.

nixoye avatar nixoye commented on July 19, 2024

from lemmybb.

Nutomic avatar Nutomic commented on July 19, 2024

You also need to replace $lemmyui_domain with your actual domain for lemmyui (different from lemmybb domain, but can be a subdomain). Or you can remove that whole section to run without lemmyui, but note that lemmybb doesnt have any mod tools yet.

from lemmybb.

nixoye avatar nixoye commented on July 19, 2024

ok here are some specific parts of the instructions I think is missing.

Copy the nginx config into the sites-enabled folder and edit it

cp docker/nginx.conf /etc/nginx/sites-enabled/lemmybb.conf

is missing the nano command to edit the lemmybb.conf

insert the following content and adapt 'LEMMYBB_BACKEND' and 'LEMMYBB_LISTEN_ADDRESS' to your installation`
what does adapting them to my installation mean? do i need to change the words `LEMMYBB_BACKEND` 

so instead of listing the ip and port number I'm supposed to put my domain name and port number? is this only if i changed something in the previous .conf file?

I'm unsure how I screwed up the installation, I'm probably gonna wipe the server and install lemmy and then lemmybb again from scratch. but heres the error i get now if i try to run the ansible

FAILED! => {"changed": true, "cmd": "nginx -s reload", "delta": "0:00:00.012663", "end": "2022-11-30 21:27:38.489940", "msg": "non-zero return code", "rc": 1, "start": "2022-11-30 21:27:38.477277", "stderr": "nginx: [emerg] unknown directive \"sdlimit_req_zone\" in /etc/nginx/sites-enabled/lemmybb.conf.save:1", "stderr_lines": ["nginx: [emerg] unknown directive \"sdlimit_req_zone\" in /etc/nginx/sites-enabled/lemmybb.conf.save:1"], "stdout": "", "stdout_lines": []}

from lemmybb.

Tealk avatar Tealk commented on July 19, 2024

is missing the nano command to edit the lemmybb.conf

what if the user does not use Nano or it is not preinstalled on the device?
So it's just clear the file must be edited, use the tool you prefer to use, for many that is vim rather than nano

it says where the error is in the nginx config:
\"sdlimit_req_zone\" in /etc/nginx/sites-enabled/lemmybb.conf.save:1"]
so in the file lemmybb.conf.save in line 1

there you have specified a variable that is not defined anywhere sdlimit_req_zone
don't know where you got this, in the standard configuration you don't find this
https://github.com/LemmyNet/lemmyBB/blob/main/docker/nginx.conf

from lemmybb.

nixoye avatar nixoye commented on July 19, 2024

@Nutomic

every step in the instructions is perfect and can be copy pasted one by one but then it breaks down in the last 3 steps.

Copy the nginx config into the sites-enabled folder and edit it

cp docker/nginx.conf /etc/nginx/sites-enabled/lemmybb.conf

there are no instructions on what to "edit" and no command to "edit" it. you use nano in the next command and its usually used so please include the nano command after it like

cp docker/nginx.conf /etc/nginx/sites-enabled/lemmybb.conf
nano /etc/nginx/sites-enabled/lemmybb.conf

and please add a code block with the .conf we can copy paste

the next step says adapt LEMMYBB_BACKEND' and 'LEMMYBB_LISTEN_ADDRESS to your installation I dont understand what "adapt 'LEMMYBB_BACKEND" means to my installation means. do i change those words to be my domain name? my sub domain name? can LEMMYBB_BACKEND and LEMMYBB_LISTEN_ADDRESS be replaced with something like "yoursubdomain.com"

from lemmybb.

Tealk avatar Tealk commented on July 19, 2024

The two points you mentioned are not so easy to generalize, it's very system specific.
When creating the tutorial i assumed that the admin has basic knowledge of nginx and systemd.

and please add a code block with the .conf we can copy paste

This would not be a smart solution, if the configuration changes, you must always remember to also change the readme.

the next step says adapt LEMMYBB_BACKEND' and 'LEMMYBB_LISTEN_ADDRESS to your installation I dont understand what "adapt 'LEMMYBB_BACKEND" means to my installation means.

Also here I thought that an admin knows how to deal with variables.
I will think about how far you can adapt the instructions.

from lemmybb.

nixoye avatar nixoye commented on July 19, 2024

@Tealk I used the ansible instructions to setup lemmy so im not sure what to "adapt" those sections to

from lemmybb.

Nutomic avatar Nutomic commented on July 19, 2024

Fixed in #75.

from lemmybb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.