Add letsencrypt guide.

This commit is contained in:
Dessalines 2023-04-14 11:36:09 -04:00
parent 440774f827
commit 35eb4b6be8

View file

@ -27,14 +27,18 @@ You can access the lemmy-ui at `http://localhost:80`
To make Lemmy available outside the server, you need to setup a reverse proxy, like Nginx. You can use the following simple proxy: To make Lemmy available outside the server, you need to setup a reverse proxy, like Nginx. You can use the following simple proxy:
``` ```
server_name your_domain; server {
location / { listen 80;
proxy_pass http://localhost:LEMMY_PORT; server_name my_domain.tld;
include proxy_params;
location / {
proxy_pass http://localhost:LEMMY_PORT;
include proxy_params;
}
} }
``` ```
You can also setup TLS, for example with [Let's Encrypt](https://letsencrypt.org/). After this you need to restart Nginx to reload the config. You should also setup TLS, for example with [Let's Encrypt](https://letsencrypt.org/). [Here's a guide for setting up letsencrypt on Ubuntu](https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-20-04).
## Updating ## Updating