[-] jax@lemmy.cloudhub.social 5 points 1 year ago

I can't do latte art, I call mine "the blob" or "polarbear in a snowstorm" lol

[-] jax@lemmy.cloudhub.social 5 points 1 year ago

The CEO just tripled down and said they are not changing their intended API pricing regardless of how many subs and users go dark.

Link? That's not good news :/

[-] jax@lemmy.cloudhub.social 5 points 1 year ago

I don't think I'll go back except for niche content/communities I don't expect to see here for a while.

[-] jax@lemmy.cloudhub.social 5 points 1 year ago

Pretty much! There isn't currently a way to migrate accounts though, so keep that in mind.

Might not be a feature you need now, but it is a nice-to-have from Mastodon that I'd like to see available everywhere.

[-] jax@lemmy.cloudhub.social 5 points 1 year ago

Trying my best! I'm trying to decide if I want to open my instance up to more users or not as well.

3

cross-posted from: https://lemmy.dcrich.net/post/1150

Boy howdy, there are a lot of people coming to the matrix chat trying to figure out how to get lemmy working on docker who are stuck on the official documentation. This document is my guide on how I got Lemmy working. I'll also share what I don't have working yet to inspire further.

Please feel free to steal anything you want from this and put it into the official docs. I don't know the contributing policy and it sounds hard and I'm busy at the moment.

Of note: I add a nginx container in this setup so that you don't have to do crazy hacks on your end for locations. If you already have an nginx reverse proxy that you are using, just use this one as a 2nd layer of nginx. There is low overhead, so don't worry about it.

Setup

For this guide, I'm requiring that you already have your own reverse proxy setup in place that can handle all the SSL termination. I'm doing this because I think that most people who are setting up Lemmy for the first time on Docker aren't setting up their first Docker container.

Because I'm requiring that you setup your own SSL termination (caddy, ACME, Nginx Proxy Manager, etc.) before you begin, I will not talk further about https, certificates, or rotation. But before I do: Don't host a website in 2023 that doesn't serve content securely. Make sure that you get your stuff setup, including any certificate rotation. If you don't get this setup completed, I suggest that you shouldn't continue or host a public website.

I also require that you be able to use docker-compose.

Get Files

Download these 3 files to your working directory from my github gist. You can download as zip or get them one at a time by scrolling down.

Prepare Working Directory

mkdir -p volumes/pictrs
sudo chown -R 991:991 volumes/pictrs

Edit Config Files

  • In the docker-compose.yml file, change the port, hostname, and database password.
  • In the lemmy.hjson file, change the admin username/password, hostname, database password, and email settings. You can take out the entire email section if you want to.
  • No changes to the nginx.conf file.

Start It Up

Now you're ready to start the containers!

You're pretty much good to go. Login to your lemmy instance. You should be able to use your docker host ip at your defined port OR via your reverse proxy lemmy domain host name.

docker-compose up

Watch the pretty log messages.

You should be able to curl your new admin user and get valid json back: curl -H 'Accept: application/activity+json' https://lemmy.yourdomain.net/u/yourAdminUser

Press Ctrl+C if everything is working great and start it up as docker-compose up -d to make it a persistent running setup.

Troubleshooting

If you get the default nginx start page, it means that your nginx container isn't reading/following any nginx config file. Figure out why. Do you accidently have a blank directory created that is called nginx.conf instead of an actual file? Did you comment out the nginx.conf bind mount?

Update the Images

In order to update the image to the latest release of lemmy, you have to manually go to your docker-compose file and edit the docker image tag to the latest version number. Then, you need to bring your container back up. Steps:

  1. Edit the docker-compose.yml file image tags from 17.3 to whatever else comes out
  2. Run a docker-compose up which will update images as needed:
docker-compose up

Watch the pretty log messages. Press Ctrl+C if everything is working great and start it up as docker-compose up -d to make it a persistent running setup.

Limitations

I don't know anything about docker. I'm a docker noob. Please correct me for anything that you think is a bad idea.

Why are the docker tags for lemmy and lemmy-ui "latest" for arm64/v8? Shouldn't there be a latest-arm and a latest-x86 or something? Annoying that I have to pin my lemmy images to a specific version in docker. I would prefer to let them be set to 1 image that gets updated and have watchtower deal with updating the image on a schedule of my choosing.

Sources

I wouldn't be here without the matrix chat, https://join-lemmy.org/docs/en/administration/install_docker.html, and this post: https://lemmy.ml/post/1127760

Reverse Proxies

There have been some suggested reverse proxy configs for Caddy and Apache!

Caddy

Thanks to @tmpod@lemmy.pt for this caddyfile:

lemmy.tld {
	header {
		# Only connect to this site via HTTPS for the two years
		Strict-Transport-Security max-age=63072000

		# Various content security headers
		Referrer-Policy same-origin
		X-Content-Type-Options nosniff
		X-Frame-Options DENY
		X-XSS-Protection "1; mode=block"
		# disable FLoC tracking
		Permissions-Policy interest-cohort=()

		# Hide Caddy
		-Server
	}

	# Enable compression for JS/CSS/HTML bundle, for improved client load times.
	# It might be nice to compress JSON, but leaving that out to protect against potential
	# compression+encryption information leak attacks like BREACH.
	@encode_mime {
		header Content-Type text/css
		header Content-Type application/javascript
		header Content-Type image/svg+xml
	}
	encode @encode_mime gzip

	request_body {
		max_size 8MB
	}

	@pictshare_regexp path_regexp pictshare_regexp \/pictshare\/(.*)
	redir @pictshare_regexp /pictrs/image/{re.pictshare_regexp.1} permanent

	# Supposedly better than having three different named matchers using standard matchers
	# ¯\_(ツ)_/¯
	@backend `
	path('/api/*', '/pictrs/*', '/feeds/*', '/nodeinfo/*', '/.well-known/*')
	|| header({'Accept': 'application/*'})
	|| method('POST')
	`
	reverse_proxy @backend lemmy:8536 {
		# This was needed because of a bug, but it probably has been fixed in the meanwhile.
		# Will have to test later.
		header_down -Transfer-Encoding
	}

	reverse_proxy lemmy-ui:1234
}

Apache

Here are a few apache configs you can draw from.

The best apache config I've seen so far is by DeadCade in the comments here.

<VirtualHost *:443>
        ServerName lemmy.deadca.de
        SSLEngine on
        ProxyRequests on
        ProxyPreserveHost on
        ProxyTimeout 600

        SetEnv proxy-nokeepalive 1
        SetEnv proxy-sendchunked 1

        <Location />
                Allow from all
                ProxyPass http://127.0.0.1:(INTERNAL LEMMY PORT)/
                ProxyPassReverse http://127.0.0.1:(INTERNAL LEMMY PORT)/
        </Location>

    ErrorLog "ERROR LOG LOCATION"
    CustomLog "ACCESS LOG LOCATION" common

    # Enable mod_rewrite (requires "a2enmod rewrite")
    RewriteEngine on

    # WebSockets support (requires "a2enmod rewrite proxy_wstunnel")
    RewriteCond %{HTTP:Upgrade} websocket [NC]
    RewriteCond %{HTTP:Connection} upgrade [NC]
    RewriteRule ^/?(.*) "ws://127.0.0.1:(INTERNAL LEMMY PORT)/$1" [P,L]

SSLCertificateFile FULLCHAIN.PEM LOCATION
SSLCertificateKeyFile PRIVKEY.PEM LOCATION
Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>

If you need another apache config, this was suggested by Samsonite (though, he knows that it needs cleaned up). Comment if you have suggestions for what to remove:

<VirtualHost *:80>
    ServerName mylemmydomain.com
    RewriteEngine On
    RewriteCond %{HTTPS} !=on
    RewriteCond %{HTTP_HOST} !^(localhost|internallemmyip)
    RewriteRule ^/(.*) https://%{SERVER_NAME}/$1 [R,L]


</VirtualHost>

<IfModule mod_ssl.c>
    <VirtualHost *:443>
        ServerName mylemmydomain.com
        SSLEngine on
        ProxyRequests On
        ProxyPreserveHost On
        ProxyTimeout 600

        SSLCertificateFile /etc/letsencrypt/live/mylemmydomain.com/fullchain.pem
        SSLCertificateKeyFile /etc/letsencrypt/live/mylemmydomain.com/privkey.pem
#       ProxyPreserveHost On

        # Proxy pictshare
        <Location "/pictshare">
                ProxyPass http://internallemmyip:8537/
                ProxyPassReverse http://internallemmyip:8537/
        </Location>

        # Proxy iframely
        <Location "/iframely">
                ProxyPass http://internallemmyip:8061/
                ProxyPassReverse http://internallemmyip:8061/
        </Location>


#        # Correctly proxy websocket traffic
        RewriteEngine On
        RewriteCond %{HTTP:Upgrade} websocket [NC]
        RewriteRule /(.*) ws://internallemmyip:80/$1 [P,L]
#
        # Proxy Lemmy
        <Location "/">
                ProxyPass http://internallemmyip/
                ProxyPassReverse http://internallemmyip/
        </Location>

        ErrorLog /var/log/apache2/mylemmydomain-error.log
    </VirtualHost>
</IfModule>

[-] jax@lemmy.cloudhub.social 5 points 1 year ago

Mostly just general content and discussion lol. I know, I'm not being part of the solution of adding more content/discussion lol.

[-] jax@lemmy.cloudhub.social 5 points 1 year ago

Yeah, someone did a good job on that infographic

[-] jax@lemmy.cloudhub.social 5 points 1 year ago

So.. not sure why entering an image doesn't use the Reddit link, but here it is: https://www.reddit.com/r/videos/comments/140vubs/why_is_rvideos_shutting_down_on_june_12th_how/

126
submitted 1 year ago* (last edited 1 year ago) by jax@lemmy.cloudhub.social to c/technology@beehaw.org

The /r/videos mods are going all out and someone made this lovely graphic to explain why subs are going dark next week.

While I’d love to have my users on Lemmy, I also hope that this actually does something for Reddit and they reverse course on their planed changes.

[-] jax@lemmy.cloudhub.social 5 points 1 year ago

Lots of Proxmox users here! That's good to see. I'm also running Proxmox after using ESXI in my lab for a few years. Too expensive.

Around 40TB of storage space, of which I’m using roughly 1%. I’m not even a datahoarder, I’m just a storage space hoarder.

Save some for the rest of us, eh?

Sounds like a pretty solid setup!

45

cross-posted from: https://lemmy.cloudhub.social/post/2392

Figured we'd start this community off with a question about what you're running in your homelab!

This could be anything from hardware to software to things your running in the cloud (#cloudlab).

Hardware and diagram pics are always welcome!

5

Figured we'd start this community off with a question about what you're running in your homelab!

This could be anything from hardware to software to things your running in the cloud (#cloudlab).

Hardware and diagram pics are always welcome!

[-] jax@lemmy.cloudhub.social 5 points 1 year ago* (last edited 1 year ago)

I have an older R710 running TrueNAS right now with 1tb of (usable) flash storage and 10Gb connection the to the rest of my lab.

I have another TrueNAS instance running as a Proxmox VM with a Lenovo SA120 DAS attached to it, which has 2x 10Tb drives in mirror mode for mass storage. It's also technically connected via 10Gb to the rest of my lab.

17

Thinking about the future where Microblogging and link-aggregation sites on the fediverse have grown, how do you see them integrating?

It's a bit one-directional right now since I don't think Lemmy has the concept of following people or #topics outside of Lemmy, but mastodon users can follow Lemmy communities and the posts and comments show up fairly nicely.

Do you think the ability to combine those two domains in one interface (even the same timeline) is useful at all?

I'm envisioning a content creator posting a video on peertube and being posted to one of the link-aggregator instances and people commenting on it via Mastodon and all of the comments being able to reference each other no matter where they were posted. I think that's pretty amazing compared to what we have now where you're conversation is basically stuck where it was started on the traditional services.

[-] jax@lemmy.cloudhub.social 5 points 1 year ago* (last edited 1 year ago)

CW - suicideLol I mean, the first one wouldn’t even surprise me 😓

[-] jax@lemmy.cloudhub.social 5 points 1 year ago

There's a cross-post button??

8
submitted 1 year ago* (last edited 1 year ago) by jax@lemmy.cloudhub.social to c/fediverse@lemmy.ml

I am wondering about the different fediverse software options and what would be best for various usecases.

Currently, I run a Mastodon and a Lemmy instance that is mostly just for myself, which is great for doing microblogging and link-aggregation/replacing Reddit. In the past I've also used various blog platforms for long-form text posts (documentation/guides), and to host some photography pics.

It feels like Mastodon isn't a good option for hosting long-form content (most instances have 500 char limits lol), nor would it be the best for trying to create a photo space akin to Instagram.

What software options would you recommend for either long-form blog posts or photo hosting? I know Pixelfed is an option (that I am looking into hosting), but is there a good blog option?

I think calckey can host pages and galleries, so it might be a good all-in-one solution? I'm not really sure.

p.s. If I export my content from Mastodon, shut down the instance, then bring up an instance of Calckey with the same domain/username, am I going to break things?

17

I've set up a couple of single-user instances of fediverse apps (Mastodon, Lemmy). With Lemmy, I can post/comment to any community/thread I want that is federated, but I can't seem to do that with Mastodon.

With that being the case, how does the content I post on Mastodon get shown to people on other instances (I know replying works differently). I feel like any top-level post I make on my instance is basically like shouting into the void, correct?

Also, if I were to set up a Pixelfed instance, would I have the same problem where my content doesn't get shown to anyone (except those that follow me?)

4
Posting on other instances? (lemmy.cloudhub.social)
submitted 1 year ago* (last edited 1 year ago) by jax@lemmy.cloudhub.social to c/lemmy_support@lemmy.ml

I like that Lemmy can post on other instances (communities on other instances), but thinking about it, would that not present a potential issue with centralizing information about a topic on one instance?

I know it's kind of similar to having themed Mastodon instances (and I also don't really understand those), but it seems like a potential issue?

I know multiple instances can have the same communities, but that then seems like fracturing the conversation?

Could this just be due to my limited knowledge/use of the fediverse?

1

Is anyone else excited to see Apple's annoucements at WWDC this year?

I'm not sure why there is so much hype on an AR/VR experience. They've always seemed like a bit of a gimmic to me, as they don't seem good for productivity, and gaming in VR sounds like it would give me a massive headache/seasickeness.

view more: ‹ prev next ›

jax

joined 1 year ago
MODERATOR OF