From 35eb4b6be8c86743b7133103224c57018f04b5e7 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Fri, 14 Apr 2023 11:36:09 -0400 Subject: [PATCH] Add letsencrypt guide. --- src/en/administration/install_docker.md | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/en/administration/install_docker.md b/src/en/administration/install_docker.md index a57e0d8..763cb23 100644 --- a/src/en/administration/install_docker.md +++ b/src/en/administration/install_docker.md @@ -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: ``` -server_name your_domain; -location / { - proxy_pass http://localhost:LEMMY_PORT; - include proxy_params; +server { + listen 80; + server_name my_domain.tld; + + 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