9
submitted 1 year ago* (last edited 1 year ago) by roho@lemmy.ml to c/lemmy_support@lemmy.ml

Hi.

i'm using ansible for installation and upgrading. My setup has an external nginx running which does the SSL part, so i want to remove the SSL and certbot parts of the /templates/nginx.conf file.

(i'm not sure if i have to edit the other nginx_internal.conf file) But with the below settings i get 'Bad gateway'.

Hoping someone can point me in the right direction. Thanks

limit_req_zone $binary_remote_addr zone={{domain}}_ratelimit:10m rate=1r/s;

# changelog
# 2023-06-27    Merge remote #5246 and remove certbot and ssl

server {
    listen 80;
    listen [::]:80;
    server_name {{domain}};

    location / {
      proxy_pass http://0.0.0.0:{{lemmy_port}};
      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;
you are viewing a single comment's thread
view the rest of the comments
[-] roho@lemmy.ml 1 points 1 year ago* (last edited 1 year ago)

Seems this documentation https://join-lemmy.org/docs/administration/configuration.html#full-config-with-default-values is a bit outdated

it refers to {{#include ../../include/config/defaults.hjson}}

but i couldn't find defaults.hjson except in the lemmy github here

https://github.com/LemmyNet/lemmy/blob/main/config/defaults.hjson

this post was submitted on 27 Jun 2023
9 points (84.6% liked)

Lemmy Support

4631 readers
4 users here now

Support / questions about Lemmy.

Matrix Space: #lemmy-space

founded 5 years ago
MODERATORS