Skip to content

Commit

Permalink
update Caddy v2 reverse proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
feederbox826 authored and DogmaDragon committed Dec 2, 2023
1 parent c4c12d6 commit 88ba08d
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions networking/reverse-proxy.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,22 +192,20 @@ sudo a2enmod headers
sudo a2enmod ssl
```

## Caddy

```
example.domain.com
reverse_proxy 127.0.0.1:9999 {
header_up X-Forwarded-Host {host}
header_up Host {upstream_hostport}
header_up X-Real-IP {remote_host}
header_up X-Forwarded-For {remote_host}
header_up X-Forwarded-Port {server_port}
header_up X-Forwarded-Proto {scheme}
}
## Caddy v2

```caddy
stash.example.com {
reverse_proxy 127.0.0.1:9999 {
header_up Host {host}
header_up X-Real-IP {remote_host}
header_up X-Forwarded-Port {server_port}
}
}
```

Also make sure to set [external_host](#nginx-with-external_host)

# Troubleshooting

## 504 Errors
Expand Down

0 comments on commit 88ba08d

Please sign in to comment.