this post was submitted on 27 Jun 2023
7 points (100.0% liked)

Lemmy Support

4651 readers
1 users here now

Support / questions about Lemmy.

Matrix Space: #lemmy-space

founded 6 years ago
MODERATORS
 

Can anyone assist?

all 10 comments
sorted by: hot top controversial new old
[–] Max_P@lemmy.max-p.me 2 points 2 years ago (1 children)

What's the problem / what's wrong?

[–] DocTator@lemmy.ml 1 points 2 years ago (1 children)

I installed Lemmy from scratch, and instead of a registration screen, I'm getting that. Do you know what I might have done wrong?

[–] Max_P@lemmy.max-p.me 2 points 2 years ago (2 children)

It looks like you're reaching the lemmy server directly as opposed to lemmy-ui. What's your NGINX configuration like?

[–] DocTator@lemmy.ml 1 points 2 years ago (1 children)
[–] Max_P@lemmy.max-p.me 1 points 2 years ago

You can use the triple backticks for better rendering on lemmy:

imit_req_zone $binary_remote_addr zone=lemmydocker.genesis-radio.net_ratelimit:10m rate=1r/s;

server {
    listen 80;
    listen [::]:80;
    server_name lemmydocker.genesis-radio.net;
    location /.well-known/acme-challenge/ {
        root /var/www/certbot;
    }
    location / {
        return 301 https://$host$request_uri;
    }
}

server {
    listen 443 ssl http2;
    listen [::]:443 ssl http2;
    server_name lemmydocker.genesis-radio.net;

    ssl_certificate /etc/letsencrypt/live/lemmydocker.genesis-radio.net/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/lemmydocker.genesis-radio.net/privkey.pem;

    location / {
      proxy_pass http://0.0.0.0:8536;
      proxy_http_version 1.1;
      proxy_set_header Upgrade $http_upgrade;
      proxy_set_header Connection "upgrade";
      proxy_set_header X-Real-IP $remote_addr;
      proxy_set_header Host $host;
      proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }
}

access_log /var/log/nginx/access.log combined;

Replied on your other comment that you deleted

[–] ActuallyRuben@actuallyruben.nl 1 points 2 years ago

Looks like they changed up some things in the lemmy-ansible repository, resulting in the docker guide being outdated.

Take a look at this nginx config file instead: https://github.com/LemmyNet/lemmy-ansible/blob/main/templates/nginx_internal.conf It splits incoming requests and directs them to either the UI server or the backend server.