Bypass rules (middleware-manager discussion #60)

:speech_balloon: GitHub discussion middleware-manager #60 in Q&A, started by ahmaddxb on GitHub

Is there a way I can make these from the UI?

It can’t be added manually to resource-overrides.yml as it is overwritten.

nzb360-overides.yml

http:
    routers:
        4-router-auth-auth-bypass:
            entryPoints:
                - websecure
            priority: 100
            rule: "Host(`sonarr.{{env `DOMAINNAME0`}}`) && (Header(`X-Api-Key`, `{{env `SONARR_API_KEY`}}`) || Query(`apikey`, `{{env `SONARR_API_KEY`}}`))"
            service: "4-service@​http"
            tls:
                certResolver: "letsencrypt"

        7-router-auth-auth-bypass:
            entryPoints:
                - websecure
            priority: 100
            rule: "Host(`radarr.{{env `DOMAINNAME0`}}`) && (Header(`X-Api-Key`, `{{env `RADARR_API_KEY`}}`) || Query(`apikey`, `{{env `RADARR_API_KEY`}}`))"
            service: "7-service@​http"
            tls:
                certResolver: "letsencrypt"

        18-router-auth-auth-bypass:
            entryPoints:
                - websecure
            priority: 100
            rule: "Host(`nzbget.{{env `DOMAINNAME0`}}`) && (Header(`authorization`, `Basic {{env `NZBGET_API_KEY`}}`))"
            service: "18-service@​http"
            tls:
                certResolver: "letsencrypt"
          
        19-router-auth-auth-bypass:
            entryPoints:
                - websecure
            priority: 100
            rule: "Host(`qbittorrent.{{env `DOMAINNAME0`}}`) && (PathPrefix(`/api/v2`))"
            service: "19-service@​http" …

---
💬 Join in here or [on GitHub](https://github.com/hhftechnology/middleware-manager/discussions/60).
<!-- hhf-forum-sync -->

rangoDJ commented on GitHub:

i added the above in as a new file in the rules folder called nzb360-override.yml. the problem i am encountering is via the nzb360 app, it seems to connect to sonarr and radarr, but is not able to fetch either the series or movies details and throws an error in the app. any idea how to resolve that?

oidebrett commented on GitHub:

mm gets its routers from pangolin by default. So you cant create them yourself in the UI.

I would suggest creating these in dynamic_config and then trying to use the traefik interface to mm

:white_check_mark: Marked as the answer on GitHub.