# \#rest-api

**URL:** https://community.traefik.io/tag/rest-api/22.md

[Latest](https://community.traefik.io/latest.md) · [Categories](https://community.traefik.io/categories.md) · [Tags](https://community.traefik.io/tags.md)

---

## [API to extract current served hostnames from traefik for split horizon dns ](https://community.traefik.io/t/api-to-extract-current-served-hostnames-from-traefik-for-split-horizon-dns/29903)

<div class="topic-metadata">

**Author:** [@alex2](https://community.traefik.io/u/alex2)\
**Replies:** 3\
**Last updated:** [May 28, 2026, 12:15pm UTC](https://community.traefik.io/t/api-to-extract-current-served-hostnames-from-traefik-for-split-horizon-dns/29903 "2026-05-28T12:15:30Z")

</div>

Hi! I have multiple hosts with docker compose stacks. Serving each of the web entry points via a host dedicated traefik. All stand alone, no swarm. I also have a central adguardhome instance on my openwrt router where …

---

## [Private address on ClientHost after external request](https://community.traefik.io/t/private-address-on-clienthost-after-external-request/28814)

<div class="topic-metadata">

**Author:** [@tcferreira-vs](https://community.traefik.io/u/tcferreira-vs)\
**Replies:** 2\
**Last updated:** [October 22, 2025, 3:15pm UTC](https://community.traefik.io/t/private-address-on-clienthost-after-external-request/28814 "2025-10-22T15:15:20Z")

</div>

Issue I am running Traefik on Docker as the main entrypoint for our web applicactions on some self-managed servers, but on some of them I've noticed that the ClientHost that is registered on logs comes from an private ad…

---

## [Confused about internal services](https://community.traefik.io/t/confused-about-internal-services/24376)

<div class="topic-metadata">

**Author:** [@Pzdrs](https://community.traefik.io/u/Pzdrs)\
**Replies:** 3\
**Last updated:** [September 14, 2025, 3:21am UTC](https://community.traefik.io/t/confused-about-internal-services/24376 "2025-09-14T03:21:44Z")

</div>

Hello, when setting up a new Traefik instance (dashboard access), I've always just pasted in what worked the first time and haven't given it much thought (i.e. the following router). traefik-dashboard: entryPoint…

---

## [Metadata in Config?](https://community.traefik.io/t/metadata-in-config/28113)

<div class="topic-metadata">

**Author:** [@dschie](https://community.traefik.io/u/dschie)\
**Replies:** 2\
**Last updated:** [August 9, 2025, 9:04pm UTC](https://community.traefik.io/t/metadata-in-config/28113 "2025-08-09T21:04:03Z")

</div>

Hey, i’m new to traefik an i use it on a shared docker host. i was thinking about setting up a page that shows which containers (or rather routers) are running and who’s responsible for them. i wonder if i could leave so…

---

## [Compress mime type errors without correct headers](https://community.traefik.io/t/compress-mime-type-errors-without-correct-headers/28031)

<div class="topic-metadata">

**Author:** [@alfmatos](https://community.traefik.io/u/alfmatos)\
**Replies:** 2\
**Last updated:** [July 29, 2025, 10:57am UTC](https://community.traefik.io/t/compress-mime-type-errors-without-correct-headers/28031 "2025-07-29T10:57:45Z")

</div>

I'm using traefik:latest (3.5.x) with docker. Traefik sits in front of a Django Rest API that runs as a separate docker container. I have a compress middleware enabled: - "traefik.http.middlewares.compress-response.comp…

---

## [Support for CRL (Certificate Revocation List) validation in mTLS on IngressRoute](https://community.traefik.io/t/support-for-crl-certificate-revocation-list-validation-in-mtls-on-ingressroute/27926)

<div class="topic-metadata">

**Author:** [@ss\_vinoth22](https://community.traefik.io/u/ss_vinoth22)\
**Replies:** 1\
**Last updated:** [July 14, 2025, 7:37am UTC](https://community.traefik.io/t/support-for-crl-certificate-revocation-list-validation-in-mtls-on-ingressroute/27926 "2025-07-14T07:37:41Z")

</div>

Hi Traefik team, We're currently using Traefik(v2 and v3) as an Ingress Controller in a secure IoT environment where mTLS is enforced using certificates issued by HashiCorp Vault PKI. Our setup involves: Traefik Ingr…

---

## [Traefik hangs indefinitely on some http requests when running in docker](https://community.traefik.io/t/traefik-hangs-indefinitely-on-some-http-requests-when-running-in-docker/27146)

<div class="topic-metadata">

**Author:** [@mathieu-lemay](https://community.traefik.io/u/mathieu-lemay)\
**Replies:** 2\
**Last updated:** [April 10, 2025, 6:12pm UTC](https://community.traefik.io/t/traefik-hangs-indefinitely-on-some-http-requests-when-running-in-docker/27146 "2025-04-10T18:12:16Z")

</div>

I have a small HTTP API that is used by terraform to store the state. I am running both Traefik and that API with docker compose. When I use that service through traefik, terraform will intermittently get stuck waiting f…

---

## [Capture path regex wildcard to use in namespace](https://community.traefik.io/t/capture-path-regex-wildcard-to-use-in-namespace/27127)

<div class="topic-metadata">

**Author:** [@peterli](https://community.traefik.io/u/peterli)\
**Replies:** 1\
**Last updated:** [April 8, 2025, 10:06pm UTC](https://community.traefik.io/t/capture-path-regex-wildcard-to-use-in-namespace/27127 "2025-04-08T22:06:28Z")

</div>

Hi, I would like to capture path wildcard regex and use the capture in namespace... For example, /path/abc/... to route to namespace 'abc', service: web-server, i.e. web-server.abc. Generalized, this would be /path/(.\*…

---

## [Chunking not functioning as expected](https://community.traefik.io/t/chunking-not-functioning-as-expected/26543)

<div class="topic-metadata">

**Author:** [@aiden-goperigon](https://community.traefik.io/u/aiden-goperigon)\
**Replies:** 6\
**Last updated:** [February 18, 2025, 5:29pm UTC](https://community.traefik.io/t/chunking-not-functioning-as-expected/26543 "2025-02-18T17:29:27Z")

</div>

I'm having a hard time getting chunk streams to work. As soon as I moved my service behind traefik the streaming stopped working - now all it does is send the whole response at once. I've looked into this pretty through…

---

## [How to Forward a Subdomain to an External Nginx on localhost:8080 Using Traefik?](https://community.traefik.io/t/how-to-forward-a-subdomain-to-an-external-nginx-on-localhost-8080-using-traefik/26357)

<div class="topic-metadata">

**Author:** [@douglasquantgo](https://community.traefik.io/u/douglasquantgo)\
**Replies:** 2\
**Last updated:** [February 6, 2025, 12:32pm UTC](https://community.traefik.io/t/how-to-forward-a-subdomain-to-an-external-nginx-on-localhost-8080-using-traefik/26357 "2025-02-06T12:32:32Z")

</div>

I'm using Traefik v3 in a Docker Swarm environment and I need to forward a subdomain (e.g., api.mydomain.com) to an external Nginx server running on localhost:8080. Since this Nginx instance is running directly on the h…

---

## [REST API in Traefik v3.1](https://community.traefik.io/t/rest-api-in-traefik-v3-1/25053)

<div class="topic-metadata">

**Author:** [@adashi](https://community.traefik.io/u/adashi)\
**Replies:** 11\
**Last updated:** [January 26, 2025, 6:30pm UTC](https://community.traefik.io/t/rest-api-in-traefik-v3-1/25053 "2025-01-26T18:30:31Z")

</div>

Hello, we want to upgrade our Traefic version from v1.7 to v3.1, until now we were using the REST provider, however I don't find REST in the list of the providers supported in v3. Has the REST provider been removed or i…

---

## ["Intermittent Service Connectivity Issues with Traefik](https://community.traefik.io/t/intermittent-service-connectivity-issues-with-traefik/25801)

<div class="topic-metadata">

**Author:** [@nofre](https://community.traefik.io/u/nofre)\
**Replies:** 1\
**Last updated:** [December 31, 2024, 8:59pm UTC](https://community.traefik.io/t/intermittent-service-connectivity-issues-with-traefik/25801 "2024-12-31T20:59:34Z")

</div>

I encountered an issue with Traefik. I connected a service to it and specified all the necessary data for Traefik through labels. Everything is running in my Docker Compose setup using Docker socket. The problem is that …

---

## [Traefik ingress rule not working](https://community.traefik.io/t/traefik-ingress-rule-not-working/25537)

<div class="topic-metadata">

**Author:** [@khirodpanda](https://community.traefik.io/u/khirodpanda)\
**Replies:** 2\
**Last updated:** [December 16, 2024, 7:03am UTC](https://community.traefik.io/t/traefik-ingress-rule-not-working/25537 "2024-12-16T07:03:54Z")

</div>

I have following ingress definition . . I am able to curl both the routes from master node. From browser I can only able to access /api not /api/userData . i am getting 404 for /api/userData endpoint . and i see…

---

## [Configuration via REST-API is gone?](https://community.traefik.io/t/configuration-via-rest-api-is-gone/1666)

<div class="topic-metadata">

**Author:** [@Reddy](https://community.traefik.io/u/Reddy)\
**Replies:** 6\
**Last updated:** [November 12, 2024, 11:28am UTC](https://community.traefik.io/t/configuration-via-rest-api-is-gone/1666 "2024-11-12T11:28:50Z")

</div>

Hey there, I've been assigned to check if switching to Traefik v2 was beneficial for our cloud application. We do have a dynamic application (services are started/terminated based on demand/load) however it is not cont…

---

## [Newbie : Hardening guide](https://community.traefik.io/t/newbie-hardening-guide/24877)

<div class="topic-metadata">

**Author:** [@computinglife](https://community.traefik.io/u/computinglife)\
**Replies:** 1\
**Last updated:** [October 23, 2024, 5:30am UTC](https://community.traefik.io/t/newbie-hardening-guide/24877 "2024-10-23T05:30:53Z")

</div>

Hi, We are deploying Traefik as a reverse proxy to our application. However i was not able to find a good security guide to harden our rules. Can someone point me to a good guideline for hardening Traefik as a standal…

---

## [Traefik as outgoing http-\>https gateway](https://community.traefik.io/t/traefik-as-outgoing-http-https-gateway/24796)

<div class="topic-metadata">

**Author:** [@glatocha](https://community.traefik.io/u/glatocha)\
**Replies:** 1\
**Last updated:** [October 16, 2024, 11:43am UTC](https://community.traefik.io/t/traefik-as-outgoing-http-https-gateway/24796 "2024-10-16T11:43:15Z")

</div>

Hi, Is it possible to use Traefik as an outgoing gateway? The application I am using (no access to sourcecode) is connecting to REST API with PUT method, but the application does not work with HTTPS and the REST API on…

---

## [Invalid node rule with TLS settings Nginx/Apache](https://community.traefik.io/t/invalid-node-rule-with-tls-settings-nginx-apache/22915)

<div class="topic-metadata">

**Author:** [@BlackYuzia](https://community.traefik.io/u/BlackYuzia)\
**Replies:** 1\
**Last updated:** [May 27, 2024, 4:52am UTC](https://community.traefik.io/t/invalid-node-rule-with-tls-settings-nginx-apache/22915 "2024-05-27T04:52:40Z")

</div>

Hello there. I have next docker compose: services: website: image: "blackyuzia/php-fpm-nginx" build: context: . dockerfile: config/dockerfile # dwchiang/nginx-php-fpm:7.4.33-fpm-bullseye-nginx-1.2…

---

## [Managing multiple networks and servers with traefik and jenkins](https://community.traefik.io/t/managing-multiple-networks-and-servers-with-traefik-and-jenkins/22111)

<div class="topic-metadata">

**Author:** [@iali](https://community.traefik.io/u/iali)\
**Replies:** 5\
**Last updated:** [May 24, 2024, 1:12pm UTC](https://community.traefik.io/t/managing-multiple-networks-and-servers-with-traefik-and-jenkins/22111 "2024-05-24T13:12:31Z")

</div>

Hi, I currently have Traefik installed via docker compose and it manages local apache applications and docker services via dynamic files and docker labels. now the goal is to move traefik to a management mcchina along w…

---

## [Cannot Server Side Render a page within a docker container on Traefik network connected to API also on the same network](https://community.traefik.io/t/cannot-server-side-render-a-page-within-a-docker-container-on-traefik-network-connected-to-api-also-on-the-same-network/2182)

<div class="topic-metadata">

**Author:** [@nkhodanian](https://community.traefik.io/u/nkhodanian)\
**Replies:** 3\
**Last updated:** [April 2, 2024, 6:07am UTC](https://community.traefik.io/t/cannot-server-side-render-a-page-within-a-docker-container-on-traefik-network-connected-to-api-also-on-the-same-network/2182 "2024-04-02T06:07:39Z")

</div>

I have two applications within my traefik network. One is {mydomain} and the other is api.{mydomain}. Everything works perfectly on the client side, but the code rendered on the server side seems to not be able to reques…

---

## [White labeling custom hostnames](https://community.traefik.io/t/white-labeling-custom-hostnames/21770)

<div class="topic-metadata">

**Author:** [@JeetDetroja](https://community.traefik.io/u/JeetDetroja)\
**Replies:** 4\
**Last updated:** [March 8, 2024, 11:41am UTC](https://community.traefik.io/t/white-labeling-custom-hostnames/21770 "2024-03-08T11:41:35Z")

</div>

I have one node typescript project and I have already set my project with Traefik through docker compose, and I already can access the APIs through the domain that I set in Traefik router host. now, I want to white labe…

---

## [How traefik work with more than one docker network](https://community.traefik.io/t/how-traefik-work-with-more-than-one-docker-network/21749)

<div class="topic-metadata">

**Author:** [@Rasket](https://community.traefik.io/u/Rasket)\
**Replies:** 1\
**Last updated:** [March 5, 2024, 7:39pm UTC](https://community.traefik.io/t/how-traefik-work-with-more-than-one-docker-network/21749 "2024-03-05T19:39:40Z")

</div>

Hello, i have 2 backend service (one of them use db - web-db and second not - web) and 1 database (postgresql) all of them are in the docker containers. But i don't want to share database to net, so i want web-db to use…

---

## [Cannot call DotNet API endpoints from Traefik](https://community.traefik.io/t/cannot-call-dotnet-api-endpoints-from-traefik/21527)

<div class="topic-metadata">

**Author:** [@mig50](https://community.traefik.io/u/mig50)\
**Replies:** 2\
**Last updated:** [February 16, 2024, 4:49pm UTC](https://community.traefik.io/t/cannot-call-dotnet-api-endpoints-from-traefik/21527 "2024-02-16T16:49:57Z")

</div>

I'm new to Traefik, i was able to successfuly host an angular server and use Traefik to assign a domain to it. Now i'm trying to use Traefik to call my dotnet core api, i've been stuck in this for two days now and can't…

---

## [502 bad gateway connection refused](https://community.traefik.io/t/502-bad-gateway-connection-refused/21002)

<div class="topic-metadata">

**Author:** [@bigjay](https://community.traefik.io/u/bigjay)\
**Replies:** 3\
**Last updated:** [January 7, 2024, 9:19pm UTC](https://community.traefik.io/t/502-bad-gateway-connection-refused/21002 "2024-01-07T21:19:27Z")

</div>

I'm having a problem with a project i'm working on. I'm using traefik as reverse proxy using PathPrefix in a docker compose with multiple .net 8 apis. I will share the docker compose file with just 1 api to be short: ve…

---

## [Pre-defined client certificate to backend request](https://community.traefik.io/t/pre-defined-client-certificate-to-backend-request/20772)

<div class="topic-metadata">

**Author:** [@xmanag3r](https://community.traefik.io/u/xmanag3r)\
**Replies:** 13\
**Last updated:** [January 2, 2024, 11:42am UTC](https://community.traefik.io/t/pre-defined-client-certificate-to-backend-request/20772 "2024-01-02T11:42:33Z")

</div>

Hello, i have one client that i need to auth the connection with already generated client certificate. How i can insert while i make requests for their backend? The certificate is signed by his CA on the backend (their…

---

## [Docker don't communicate with each other through ports](https://community.traefik.io/t/docker-dont-communicate-with-each-other-through-ports/20535)

<div class="topic-metadata">

**Author:** [@adridelahoz](https://community.traefik.io/u/adridelahoz)\
**Replies:** 18\
**Last updated:** [November 29, 2023, 7:02am UTC](https://community.traefik.io/t/docker-dont-communicate-with-each-other-through-ports/20535 "2023-11-29T07:02:41Z")

</div>

I am implementing Traefik, I come from Apache. I have a problem, I have several rest services that communicate with each other. When I make a request to a service, I pass it a header that contains the bearer token and i…

---

## [Multi Data Center Apps](https://community.traefik.io/t/multi-data-center-apps/20558)

<div class="topic-metadata">

**Author:** [@murtaza](https://community.traefik.io/u/murtaza)\
**Replies:** 6\
**Last updated:** [November 25, 2023, 2:33pm UTC](https://community.traefik.io/t/multi-data-center-apps/20558 "2023-11-25T14:33:52Z")

</div>

We have microservices running from one datacenter planning to go in active-active setup, i mean in multi-dc setup. Note no cloud is involved here and we are only looking for on-prem setup. We need to setup as below. LB…

---

## [Gateway API 421 errors](https://community.traefik.io/t/gateway-api-421-errors/20518)

<div class="topic-metadata">

**Author:** [@kosssi](https://community.traefik.io/u/kosssi)\
**Replies:** 1\
**Last updated:** [November 20, 2023, 12:38pm UTC](https://community.traefik.io/t/gateway-api-421-errors/20518 "2023-11-20T12:38:52Z")

</div>

Hello, Thank you for Traefik, I have been using it for several years in a more or less advanced way and it works really well :+1: I search if it's possible to proxy a request to an another service (not mine) with add k…

---

## [Searching for utilities to convert existing haproxy configuration to traefik](https://community.traefik.io/t/searching-for-utilities-to-convert-existing-haproxy-configuration-to-traefik/20429)

<div class="topic-metadata">

**Author:** [@jzmatrix](https://community.traefik.io/u/jzmatrix)\
**Replies:** 1\
**Last updated:** [November 16, 2023, 6:31am UTC](https://community.traefik.io/t/searching-for-utilities-to-convert-existing-haproxy-configuration-to-traefik/20429 "2023-11-16T06:31:43Z")

</div>

I came across articles that have sent me on a very cyclic wild goose chase in an effort to locate a utility that can convert my existing haproxy configuration to a traefik configuration. I read about a traefik-cli that…

---

## [POST Nginx Rewrite CORS and lost POST body](https://community.traefik.io/t/post-nginx-rewrite-cors-and-lost-post-body/20257)

<div class="topic-metadata">

**Author:** [@dev](https://community.traefik.io/u/dev)\
**Replies:** 3\
**Last updated:** [October 26, 2023, 12:20pm UTC](https://community.traefik.io/t/post-nginx-rewrite-cors-and-lost-post-body/20257 "2023-10-26T12:20:18Z")

</div>

This problem is driving me demented, and any help would be appreciated I am refactoring a local development area from jwilder/nginx-proxy to Traefik. The architecture involves several docker containers: Traefik Nginx N…

---

## [Set different route and settings for api/ws, Traefik on K8s](https://community.traefik.io/t/set-different-route-and-settings-for-api-ws-traefik-on-k8s/20107)

<div class="topic-metadata">

**Author:** [@urbaman](https://community.traefik.io/u/urbaman)\
**Replies:** 1\
**Last updated:** [October 18, 2023, 6:54pm UTC](https://community.traefik.io/t/set-different-route-and-settings-for-api-ws-traefik-on-k8s/20107 "2023-10-18T18:54:21Z")

</div>

What's the best way to do something like this with Traefik (kubernetes IngressRoute CRD)? NGINX: location / { proxy\_pass http://semaphore/; proxy\_set\_header Host $http\_host; proxy\_set\_header X-Real-IP…

[Next page](https://community.traefik.io/tag/rest-api/22.md?match_all_tags=true&page=1&tags%5B%5D=rest-api)
