Skip to content

Commit e94a4ad

Browse files
KN4CK3Rwxiaoguang
andauthored
Add docs section for sub-paths with the container registry (#27505)
Fixes #21092 suggested by #21092 (comment) --------- Co-authored-by: wxiaoguang <[email protected]>
1 parent ae2794c commit e94a4ad

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/content/administration/reverse-proxies.en-us.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,3 +381,9 @@ If you really need to do so, to make Gitea works with sub-path (eg: `http://exam
381381
1. Set `[server] ROOT_URL = http://example.com/gitea/` in your `app.ini` file.
382382
2. Make the reverse-proxy pass `http://example.com/gitea/foo` to `http://gitea-server:3000/foo`.
383383
3. Make sure the reverse-proxy not decode the URI, the request `http://example.com/gitea/a%2Fb` should be passed as `http://gitea-server:3000/a%2Fb`.
384+
385+
## Docker / Container Registry
386+
387+
The container registry uses a fixed sub-path `/v2` which can't be changed.
388+
Even if you deploy Gitea with a different sub-path, `/v2` will be used by the `docker` client.
389+
Therefore you may need to add an additional route to your reverse proxy configuration.

0 commit comments

Comments
 (0)