mirror of
https://github.com/LemmyNet/lemmy-docs.git
synced 2024-12-26 04:41:25 +00:00
Document Host header proxy gotcha (#176)
This is a confusing thing for people setting up a new server exposed through another layer of proxy, so documenting it explicitly will hopefully help save people some time.
This commit is contained in:
parent
14bbf215f6
commit
17218d5eff
1 changed files with 3 additions and 0 deletions
|
@ -33,6 +33,7 @@ server {
|
|||
|
||||
location / {
|
||||
proxy_pass http://localhost:LEMMY_PORT;
|
||||
proxy_set_header Host $host;
|
||||
include proxy_params;
|
||||
}
|
||||
}
|
||||
|
@ -40,6 +41,8 @@ server {
|
|||
|
||||
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).
|
||||
|
||||
For federation to work, it is important that you do not change any headers that form part of the signature. This includes the `Host` header - you may need to refer to the documentation for your proxy server to pass through the `Host` header unmodified.
|
||||
|
||||
## Updating
|
||||
|
||||
To update to the newest version, you can manually change the version in `docker-compose.yml`. Alternatively, fetch the latest version from our git repo:
|
||||
|
|
Loading…
Reference in a new issue