mirror of
https://codeberg.org/forgejo/docs.git
synced 2025-04-26 05:30:40 +03:00
fix broken configuration for caddy with a subpath
This commit is contained in:
parent
0431a43a90
commit
87d8e5622a
1 changed files with 4 additions and 1 deletions
|
@ -426,7 +426,10 @@ If you want to serve Forgejo on a subpath, e.g. on https://example.com/code, use
|
||||||
|
|
||||||
```Caddyfile
|
```Caddyfile
|
||||||
example.com {
|
example.com {
|
||||||
reverse_proxy /code* 127.0.0.1:3000
|
route /code/* {
|
||||||
|
uri strip_prefix /code
|
||||||
|
reverse_proxy 127.0.0.1:3000
|
||||||
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue