Skip to content

Commit e89b1d5

Browse files
Merge pull request #115 from Mazianni/caddy-reverse-proxy
Adds information for Caddy to reverse proxy setup.
2 parents 90dfb9e + d86a4fb commit e89b1d5

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

docs/setup/server/reverseProxy.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# Reverse Proxy
22

3+
## Caddy
4+
5+
Caddy is a powerful and simple reverse proxy/webserver solution. Caddy will automatically manage HTTPS certs for any URL it is configured to serve.
6+
7+
To set up Spacebar behind Caddy, simply add `reverse_proxy IP_TO_SPACEBAR_INSTANCE:3001` to your Caddyfile. **Remember to adjust your Spacebar configuration to use the external address on all public endpoints otherwise you will have CORS issues.**
8+
9+
```
10+
spacebar.example.xyz {
11+
reverse_proxy 10.0.0.99:3001
12+
}
13+
```
14+
315
## NGINX
416

517
Generally, our community sets up {{ project.name }} instances behind NGINX, a powerful reverse proxy.

0 commit comments

Comments
 (0)