Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-25 11:16:11 +01:00

Remove reference to caddy v1 in docs (#24962)

caddy v1 is loong eol. v2 should be used.
This commit is contained in:
techknowlogick 2023-05-28 04:39:16 -04:00 committed by GitHub
parent 595e8abd68
commit fe67390da5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -191,14 +191,6 @@ git.example.com {
}
```
If you still use Caddy v1, use:
```apacheconf
git.example.com {
proxy / localhost:3000
}
```
## Caddy with a sub-path
In case you already have a site, and you want Gitea to share the domain name, you can setup Caddy to serve Gitea under a sub-path by adding the following to your server block in your Caddyfile:
@ -212,14 +204,6 @@ git.example.com {
}
```
Or, for Caddy v1:
```apacheconf
git.example.com {
proxy /git/ localhost:3000
}
```
Then set `[server] ROOT_URL = http://git.example.com/git/` in your configuration.
## IIS