Salamander
  • 7 Posts
  • 49 Comments
Joined 3Y ago
cake
Cake day: Dec 19, 2021

help-circle
rss

Great job figuring that out!

At some point it would be fun to work on some new guides anyway :-)


“There is no law against prisoner organ donation,” he said

the bill will “restore bodily autonomy to incarcerated folks by providing opportunity to donate organs and bone marrow”

🤔 🤔 🤔 🤔


I think that if you use the new docker-compile file, the one that includes the NGINX block, then you might not need to go through the step of the nginx configuration.

I have not tested this myself though, but I can test it when I make the updated tutorial.


I can do that, but I can’t right now, I am very busy writing for my thesis unfortunately :/

If I manage to write enough tonight I might be able to do it tomorrow.


I would be lying if I gave you a number. I have never had to deal with many users, so I can’t really tell you at what point you can expect problems. It could be 50 active users at once, it could be 500, maybe even 5,000 - I really don’t know. Consider that uploaded images will fill up your SSD, and that multiple active users at once will go through your network connection.

But I really don’t know the limits. Someone else hopefully can chip in.


Oh no! It is possible to save your SSL certificates by simply copying the files into your computer, then you don’t need to run the certbot again.


Try removing the lemmy.conf file from /etc/nginx/sites-enabled,

And then run:

sudo wget https://raw.githubusercontent.com/Kradyz/Tutorials/main/files/uebishe.conf /etc/nginx/sites-enabled/uebishe.conf

sudo systemctl restart nginx


Or, I have made an nginx config file that will work for you

If you already created an nginx configuration file, move it somewhere else. Then, get the new configuration file to the nginx folder, and then restart the nginx service by running these two commands:

sudo wget https://raw.githubusercontent.com/Kradyz/Tutorials/main/files/uebishe.conf /etc/nginx/sites-enabled/uebishe.conf

sudo systemctl restart nginx

Ah! So you skipped this step:

Now i skip old step about “wget https://raw.githubusercontent.com/LemmyNet/lemmy-ansible/main/templates/nginx.conf -O lemmy.conf”

You need to have the lemm.conf file under /etc/nginx/sites-enabled, this is the file that tells nginx how to manage the connection. Don’t skip that step! Get that file and modify it by adding your domain name


Yes, you would be able to run all of those at the same time. Of course, there will be limits - if the lemmy and matrix instances grow, at some point this setup can become insufficient. But if the amount of users is kept manageable, you should be fine.

Power consumption can be something to consider since the server would ideally be running 24/7. I use a plug power meter to measure how much power my appliances use while running. A raspberry pi 4 8GB with a 1TB SSD can also run these instances and pulls < 10 W, so if you see that your server is pulling considerably more energy I would suggest looking into power management.



Sorry, I did not realize that these files had not yet been updated with the changes necessary for version 0.17.0, which are described here: https://github.com/LemmyNet/lemmy/blob/main/RELEASES.md#lemmy-v0170-release-2023-01-31

I could not find an example of the files configured correctly in github, so I have uploaded some example files. You get them this way:

wget https://raw.githubusercontent.com/Kradyz/Tutorials/main/files/lemmy.hjson
wget https://raw.githubusercontent.com/Kradyz/Tutorials/main/files/docker-compose.yml

Then modify the variables inside {}, like the domain name and the database password.


Remove the following blocks from the docker-compose file:

networks:
  # communication to web and clients
  lemmyexternalproxy:
  # communication between lemmy services
  lemmyinternal:
    driver: bridge
    internal: true
  proxy:
    image: nginx:1-alpine
    networks:
      - lemmyinternal
      - lemmyexternalproxy
    ports:
      # only ports facing any connection from outside
      - 80:80 
      - 443:443
    volumes:
      - ./nginx.conf:/etc/nginx/nginx.conf:ro
      # setup your certbot and letsencrypt config 
      - ./certbot:/var/www/certbot
      - ./letsencrypt:/etc/letsencrypt/live
    restart: always
    depends_on:
      - pictrs
      - lemmy-ui

And try again. Does it work?


Do you want to install a fresh instance, or do you want to upgrade an instance?

If you are installing fresh, most of that tutorial is still going to work out. But you now need to pull the config file this way:

wget https://raw.githubusercontent.com/LemmyNet/lemmy/main/config/defaults.hjson lemmy.hjson

If you install the more recent docker version, you don’t have to install docker-compose the same way. Follow the instructions from the website, and use ‘docker compose’ instead of ‘docker-compose’.

The nginx configuration does not need to change.

What problems are you getting?



An issue was opened for that three days ago:

https://github.com/LemmyNet/lemmy/issues/2678

I don’t think it is possible through the UI at the moment.



Oh, that looks like an error in your lemmy.hjson settings file. If you share that one too with the passwords redacted I can check.


If you go to your lemmy directory and type docker-compose logs -f lemmy, what does it say?

Can you share your docker-compose.yml file, removing the database password and any other private information?


Also, did you change the variables in the Lemmy UI environment?

(Edit to specify, in the docker-compose.yml file the variables are now different)

The lemmy-ui environment variables have changed, and should now look like:

  environment:
    - LEMMY_UI_LEMMY_INTERNAL_HOST=lemmy:8536
    - LEMMY_UI_LEMMY_EXTERNAL_HOST={{ domain }}
    - LEMMY_UI_HTTPS=true

There are also other instructions that you need to follow. Are you following the release note instructions?

See: https://github.com/LemmyNet/lemmy/blob/main/RELEASES.md#lemmy-v0170-release-2023-01-31


Is it in bad taste to take content directly from Reddit/Stack exchange?
I would like to make a community dedicated to posting interesting science questions that have been asked and answered in other sites. The post would be a copy of the question and the comments would be copies of the answers that were found to be interesting - always with the username attribution and the link to the original post. With this format, users would not need to leave the site, and it is easy to discuss the answers directly in the comments. But I have my doubts about whether this is appropriate, as I think that it might be copyright infringement. So, what do people in Lemmy think? Would this format be blatant theft and wrong? Perfectly reasonable? Somewhere in between?
fedilink

Have you had success correcting your bad posture?
I slouch a lot, so my shoulders are a bit rounded at my neutral posture. I have tried to get into the habit of doing wall glides, stretching my chest, doing back exercises, and sitting properly. But after quite a few years of testing strategies, tools, and trying to build consistent habits, I usually manage to get two or three weeks of good progress but then fall back to the usual bad habits and my posture does not really improve. Do any of you have any success stories about correcting your bad posture? I would like to learn from your success!
fedilink

Is there a simple way to remove a banned user's profile description?
A user was created in my instance to spam phishing links to some google sites that look like bank login sites and crypto wallets. I banned the user and removed their content, but the links were also added to the description in their profile page, and they still live there. Is there a way to delete the description through the UI? The only way that I can think of how to do that is to manually remove the description in the postgresql database.
fedilink

E-mail server configuration
Hello! I have procrastinated configuring the e-mail server for my instance. I am looking into it and it is not entirely clear to me how I should go about it. I see that some docker-compose files have the following block added: ``` postfix: image: mwader/postfix-relay environment: - POSTFIX_myhostname=${domain} restart: "always" ``` But I don't understand whether this is supposed to work out-of-the box (which it did not for me when I tried), or if I need to set up the postfix server as one usually would and the postfix-relay somehow makes the connection between docker container and the already configured server. Is there a guide for complete beginners? I could not find one in the lemmy docs and I have never configured an e-mail server before. I am reading through the postfix documentation and already got some basics but there is a lot, and I am not sure that I am moving efficiently towards the end goal 😅
fedilink

[Question] VMWare vs vStack cloud server
I am currently running my instance using a VMWare cloud server with the following specs: 1 GB RAM / 1 Core / 30 GB SSD / 10 Mbps This costs 13.94 €/month. Using the same provider (serverspace.io), I can rent a vStack cloud server with: 1 GB RAM / 1 Core / 30 GB SSD / 50 Mbps For 4.55 €/month. I am using the more expensive option because this is my first self-hosted project and I did not realize the cheaper option was available when I originally set up the server. As I currently understand it, renting a VMWare is renting a physical machine, and renting a vStack is renting one of many virtual machines installed within a physical machine. Is this correct? And, are there any practical reasons not to "downgrade" to a vStack? When should someone choose a VMWare over a vStack?
fedilink

Etiquette for git contributions
I am learning how to use git, rust, and the ActivityPub protocol. I am looking through issues in github and trying to see if there are issues that are simple enough to help with. I have read the ["Contributing"](https://join-lemmy.org/docs/en/contributing/contributing.html) section, but it is not very specific. I have a few questions: - Should one discuss with developers before submitting a pull request, or is it better to submit a pull request and then they can decide if they accept it or not? - Should pull requests be sent to merge changes into the master branch, or to a different branch? - Is it ok for users to make small contribution, such as fixing a typo or small bug? Or should users only attempt to contribute when they have a more significant contribution to make, such as implementing federation with a new project? I have found many resources about how to work with Git but not about the etiquette. So if anyone has some resources on the etiquette for collaborating to projects via github, or specifically for Lemmy, that would be very helpful!
fedilink

I have been learning a lot thanks to Lemmy and the people behind it, so I wanted to contribute a bit back by making some easy-to-follow video tutorials. I have also made the same video in Spanish: https://www.youtube.com/watch?v=h50M6jYZ8YU As a beginner myself, I do have a level of concern that I might teach something incorrectly, or that I might expose others to security risks and liabilities. I hope that these concerns are not well-founded, but I am open to criticism!
fedilink