diff options
Diffstat (limited to 'docs/content/doc/usage/reverse-proxies.en-us.md')
-rw-r--r-- | docs/content/doc/usage/reverse-proxies.en-us.md | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/docs/content/doc/usage/reverse-proxies.en-us.md b/docs/content/doc/usage/reverse-proxies.en-us.md index 90b2765daa..008704cdcf 100644 --- a/docs/content/doc/usage/reverse-proxies.en-us.md +++ b/docs/content/doc/usage/reverse-proxies.en-us.md @@ -348,3 +348,18 @@ The added http-request will automatically add a trailing slash if needed and int Then you **MUST** set something like `[server] ROOT_URL = http://example.com/gitea/` correctly in your configuration. +## Traefik + +If you want traefik to serve your Gitea instance, you can add the following label section to your `docker-compose.yaml` (Assuming the provider is docker). + +```yaml +gitea: + image: gitea/gitea + ... + labels: + - "traefik.enable=true" + - "traefik.http.routers.gitea.rule=Host(`example.com`)" + - "traefik.http.services.gitea-websecure.loadbalancer.server.port=3000" +``` + +This config assumes that you are handling HTTPS on the traefik side and using HTTP between Gitea and traefik.
\ No newline at end of file |