mirror of
https://github.com/LemmyNet/lemmy-docs.git
synced 2024-11-25 22:01:09 +00:00
Add letsencrypt guide.
This commit is contained in:
parent
440774f827
commit
35eb4b6be8
1 changed files with 9 additions and 5 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue