darkweak / souin

An HTTP cache system, RFC compliant, compatible with @tyktechnologies, @traefik, @caddyserver, @go-chi, @bnkamalesh, @beego, @devfeel, @labstack, @gofiber, @go-goyave, @go-kratos, @gin-gonic, @roadrunner-server, @zalando, @zeromicro, @nginx and @apache

Home Page:https://docs.souin.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

souin on traefik get api souin url

artb1sh opened this issue · comments

Hi all,
I do not know if I use an incorrect configuration or if api souin simply does not work

Dynamic conf:

    http-cache:
      plugin:
        souin:
          api:
            prometheus: {}
            souin:
              enable: true
  site-front:
    labels:
    ...........
      - "traefik.http.routers.site-front.middlewares=http-cache@file"

curl -I https://site-front/
cache-status: Souin; fwd=uri-miss; stored;
curl -I https://site-front/
cache-status: Souin; hit;

curl https://site-front/souin <- API souin
404 n
how get api souin url?

@artb1sh The good url would be https://site-front/souin-api/souin as described in the documentation.
souin-api is the basepath for the whole APIs exposed by Souin.
souin is the souin api basepath itself.

Maybe that's not clear enough in the documentation but I'm writing the website documentation (https://docs.souin.io/docs/configuration/)