Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

agnos.is Forums

  1. Home
  2. Selfhosted
  3. Help with configuring Caddy to work with arr apps

Help with configuring Caddy to work with arr apps

Scheduled Pinned Locked Moved Selfhosted
selfhosted
7 Posts 3 Posters 0 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • sun@slrpnk.netS This user is from outside of this forum
    sun@slrpnk.netS This user is from outside of this forum
    [email protected]
    wrote last edited by [email protected]
    #1

    Hi, I'm having trouble getting my Caddy reverse proxy to work with the arr apps I can access everything without the reverse proxy. I have set the basic login prompt (like this one) through the arr apps after I logge in to one of the arr apps I either get a blank page or I'm seeing this error page:

    ::: spoiler firefox

    The page isn’t redirecting properly

    Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

    This problem can sometimes be caused by disabling or refusing to accept cookies.
    :::

    ::: spoiler chromium
    This page isn’t working
    domain.com redirected you too many times.

    Try deleting your cookies.
    ERR_TOO_MANY_REDIRECTS

    :::

    ::: spoiler Caddyfile config (1.1.1.1 is a placeholder ip for my vps external ip)

    {
        email [email protected]
    }
    
    domain.com {
    
        # qBittorrent
        redir /qbit /qbit/
        handle_path /qbit/* {
            reverse_proxy 1.1.1.1:8080 {
                header_up Host {host}
                header_up X-Real-IP {remote_host}
                header_up X-Forwarded-For {remote_host}
                header_up X-Forwarded-Proto {scheme}
            }
        }
    
        # Sonarr
        redir /sonarr /sonarr/
        handle_path /sonarr/* {
            reverse_proxy 1.1.1.1:8989 {
                header_up Host {host}
                header_up X-Real-IP {remote_host}
                header_up X-Forwarded-For {remote_host}
                header_up X-Forwarded-Proto {scheme}
            }
        }
    
        # Radarr
        redir /radarr /radarr/
        handle_path /radarr/* {
            reverse_proxy 1.1.1.1:7878 {
                header_up Host {host}
                header_up X-Real-IP {remote_host}
                header_up X-Forwarded-For {remote_host}
                header_up X-Forwarded-Proto {scheme}
            }
        }
    
        # Prowlarr
        redir /prowlarr /prowlarr/
        handle_path /prowlarr/* {
            reverse_proxy 1.1.1.1:9696 {
                header_up Host {host}
                header_up X-Real-IP {remote_host}
                header_up X-Forwarded-For {remote_host}
                header_up X-Forwarded-Proto {scheme}
            }
        }
    }
    

    :::
    I've tried setting the URL base to /the_name_of_the_arr_app, but it didn't work. I've attempted it with and without the redir /the_name_of_the_arr_app /the_name_of_the_arr_app/. I'm stuck and unsure of how to resolve the issue. It works fine with qBittorrent.

    ::: spoiler radarr debug log

    2025-07-04 21:27:45.9|Info|Radarr.Http.Authentication.BasicAuthenticationHandler|Basic was not authenticated. Failure message: Authorization header missing.
    2025-07-04 21:27:45.9|Info|Radarr.Http.Authentication.BasicAuthenticationHandler|AuthenticationScheme: Basic was challenged.
    2025-07-04 21:27:54.1|Debug|Radarr.Http.Authentication.BasicAuthenticationHandler|AuthenticationScheme: Basic was successfully authenticated.
    2025-07-04 21:27:54.8|Debug|Radarr.Http.Authentication.BasicAuthenticationHandler|AuthenticationScheme: Basic was successfully authenticated.
    2025-07-04 21:27:55.0|Debug|Radarr.Http.Authentication.BasicAuthenticationHandler|AuthenticationScheme: Basic was successfully authenticated.
    

    :::

    A M 2 Replies Last reply
    9
    • sun@slrpnk.netS [email protected]

      Hi, I'm having trouble getting my Caddy reverse proxy to work with the arr apps I can access everything without the reverse proxy. I have set the basic login prompt (like this one) through the arr apps after I logge in to one of the arr apps I either get a blank page or I'm seeing this error page:

      ::: spoiler firefox

      The page isn’t redirecting properly

      Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

      This problem can sometimes be caused by disabling or refusing to accept cookies.
      :::

      ::: spoiler chromium
      This page isn’t working
      domain.com redirected you too many times.

      Try deleting your cookies.
      ERR_TOO_MANY_REDIRECTS

      :::

      ::: spoiler Caddyfile config (1.1.1.1 is a placeholder ip for my vps external ip)

      {
          email [email protected]
      }
      
      domain.com {
      
          # qBittorrent
          redir /qbit /qbit/
          handle_path /qbit/* {
              reverse_proxy 1.1.1.1:8080 {
                  header_up Host {host}
                  header_up X-Real-IP {remote_host}
                  header_up X-Forwarded-For {remote_host}
                  header_up X-Forwarded-Proto {scheme}
              }
          }
      
          # Sonarr
          redir /sonarr /sonarr/
          handle_path /sonarr/* {
              reverse_proxy 1.1.1.1:8989 {
                  header_up Host {host}
                  header_up X-Real-IP {remote_host}
                  header_up X-Forwarded-For {remote_host}
                  header_up X-Forwarded-Proto {scheme}
              }
          }
      
          # Radarr
          redir /radarr /radarr/
          handle_path /radarr/* {
              reverse_proxy 1.1.1.1:7878 {
                  header_up Host {host}
                  header_up X-Real-IP {remote_host}
                  header_up X-Forwarded-For {remote_host}
                  header_up X-Forwarded-Proto {scheme}
              }
          }
      
          # Prowlarr
          redir /prowlarr /prowlarr/
          handle_path /prowlarr/* {
              reverse_proxy 1.1.1.1:9696 {
                  header_up Host {host}
                  header_up X-Real-IP {remote_host}
                  header_up X-Forwarded-For {remote_host}
                  header_up X-Forwarded-Proto {scheme}
              }
          }
      }
      

      :::
      I've tried setting the URL base to /the_name_of_the_arr_app, but it didn't work. I've attempted it with and without the redir /the_name_of_the_arr_app /the_name_of_the_arr_app/. I'm stuck and unsure of how to resolve the issue. It works fine with qBittorrent.

      ::: spoiler radarr debug log

      2025-07-04 21:27:45.9|Info|Radarr.Http.Authentication.BasicAuthenticationHandler|Basic was not authenticated. Failure message: Authorization header missing.
      2025-07-04 21:27:45.9|Info|Radarr.Http.Authentication.BasicAuthenticationHandler|AuthenticationScheme: Basic was challenged.
      2025-07-04 21:27:54.1|Debug|Radarr.Http.Authentication.BasicAuthenticationHandler|AuthenticationScheme: Basic was successfully authenticated.
      2025-07-04 21:27:54.8|Debug|Radarr.Http.Authentication.BasicAuthenticationHandler|AuthenticationScheme: Basic was successfully authenticated.
      2025-07-04 21:27:55.0|Debug|Radarr.Http.Authentication.BasicAuthenticationHandler|AuthenticationScheme: Basic was successfully authenticated.
      

      :::

      A This user is from outside of this forum
      A This user is from outside of this forum
      [email protected]
      wrote last edited by
      #2

      Are all the *arr services aware that they are expected to have a certain basepath?

      sun@slrpnk.netS 1 Reply Last reply
      1
      • sun@slrpnk.netS [email protected]

        Hi, I'm having trouble getting my Caddy reverse proxy to work with the arr apps I can access everything without the reverse proxy. I have set the basic login prompt (like this one) through the arr apps after I logge in to one of the arr apps I either get a blank page or I'm seeing this error page:

        ::: spoiler firefox

        The page isn’t redirecting properly

        Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

        This problem can sometimes be caused by disabling or refusing to accept cookies.
        :::

        ::: spoiler chromium
        This page isn’t working
        domain.com redirected you too many times.

        Try deleting your cookies.
        ERR_TOO_MANY_REDIRECTS

        :::

        ::: spoiler Caddyfile config (1.1.1.1 is a placeholder ip for my vps external ip)

        {
            email [email protected]
        }
        
        domain.com {
        
            # qBittorrent
            redir /qbit /qbit/
            handle_path /qbit/* {
                reverse_proxy 1.1.1.1:8080 {
                    header_up Host {host}
                    header_up X-Real-IP {remote_host}
                    header_up X-Forwarded-For {remote_host}
                    header_up X-Forwarded-Proto {scheme}
                }
            }
        
            # Sonarr
            redir /sonarr /sonarr/
            handle_path /sonarr/* {
                reverse_proxy 1.1.1.1:8989 {
                    header_up Host {host}
                    header_up X-Real-IP {remote_host}
                    header_up X-Forwarded-For {remote_host}
                    header_up X-Forwarded-Proto {scheme}
                }
            }
        
            # Radarr
            redir /radarr /radarr/
            handle_path /radarr/* {
                reverse_proxy 1.1.1.1:7878 {
                    header_up Host {host}
                    header_up X-Real-IP {remote_host}
                    header_up X-Forwarded-For {remote_host}
                    header_up X-Forwarded-Proto {scheme}
                }
            }
        
            # Prowlarr
            redir /prowlarr /prowlarr/
            handle_path /prowlarr/* {
                reverse_proxy 1.1.1.1:9696 {
                    header_up Host {host}
                    header_up X-Real-IP {remote_host}
                    header_up X-Forwarded-For {remote_host}
                    header_up X-Forwarded-Proto {scheme}
                }
            }
        }
        

        :::
        I've tried setting the URL base to /the_name_of_the_arr_app, but it didn't work. I've attempted it with and without the redir /the_name_of_the_arr_app /the_name_of_the_arr_app/. I'm stuck and unsure of how to resolve the issue. It works fine with qBittorrent.

        ::: spoiler radarr debug log

        2025-07-04 21:27:45.9|Info|Radarr.Http.Authentication.BasicAuthenticationHandler|Basic was not authenticated. Failure message: Authorization header missing.
        2025-07-04 21:27:45.9|Info|Radarr.Http.Authentication.BasicAuthenticationHandler|AuthenticationScheme: Basic was challenged.
        2025-07-04 21:27:54.1|Debug|Radarr.Http.Authentication.BasicAuthenticationHandler|AuthenticationScheme: Basic was successfully authenticated.
        2025-07-04 21:27:54.8|Debug|Radarr.Http.Authentication.BasicAuthenticationHandler|AuthenticationScheme: Basic was successfully authenticated.
        2025-07-04 21:27:55.0|Debug|Radarr.Http.Authentication.BasicAuthenticationHandler|AuthenticationScheme: Basic was successfully authenticated.
        

        :::

        M This user is from outside of this forum
        M This user is from outside of this forum
        [email protected]
        wrote last edited by
        #3

        Is there a reason you’re trying to expose them to the internet? IMO you’re better off not doing that and using Overseer as the only exposed service that talks to everything else. Exposing the whole arr stack is just unwise and unnecessary.

        sun@slrpnk.netS 1 Reply Last reply
        4
        • A [email protected]

          Are all the *arr services aware that they are expected to have a certain basepath?

          sun@slrpnk.netS This user is from outside of this forum
          sun@slrpnk.netS This user is from outside of this forum
          [email protected]
          wrote last edited by [email protected]
          #4

          Yes, I think so. I have configured it like this

          A 1 Reply Last reply
          0
          • M [email protected]

            Is there a reason you’re trying to expose them to the internet? IMO you’re better off not doing that and using Overseer as the only exposed service that talks to everything else. Exposing the whole arr stack is just unwise and unnecessary.

            sun@slrpnk.netS This user is from outside of this forum
            sun@slrpnk.netS This user is from outside of this forum
            [email protected]
            wrote last edited by [email protected]
            #5

            I exposed it all because I am on a VPS, i don't know how to configure it otherwise, and I did not think it was a problem because all the seedboxes expose it all.

            I don't want to run Jellyfin/Plex because I am on a VPS with low resources.

            1 Reply Last reply
            0
            • sun@slrpnk.netS [email protected]

              Yes, I think so. I have configured it like this

              A This user is from outside of this forum
              A This user is from outside of this forum
              [email protected]
              wrote last edited by
              #6

              Does it make a difference, if that setting uses a trailing slash? Might be it redirects you to the path without, which triggers caddy to redirect you again, and so on and so forth.

              You could also, instead of redirecting, rewrite it. Then it is handled serverside without sending the client somewhere else.

              sun@slrpnk.netS 1 Reply Last reply
              1
              • A [email protected]

                Does it make a difference, if that setting uses a trailing slash? Might be it redirects you to the path without, which triggers caddy to redirect you again, and so on and so forth.

                You could also, instead of redirecting, rewrite it. Then it is handled serverside without sending the client somewhere else.

                sun@slrpnk.netS This user is from outside of this forum
                sun@slrpnk.netS This user is from outside of this forum
                [email protected]
                wrote last edited by [email protected]
                #7

                I can't set a trailing slash Radarr removes it when i save. I am not quite sure what you mean, but I have tried rewriting it.
                ::: spoiler like this, and then visit, but it makes no difference.

                :::

                You could also, instead of redirecting, rewrite it. Then it is handled serverside without sending the client somewhere else.

                I am not quite sure what you mean.

                When i add change it like this:
                ::: spoiler image

                :::

                I get a login prompt that no matter what I type in, it just reloads the page. If I select "login page" in arr app, I just get redirected to domain.com/login and get a blank page. If I try to go to domain.com/radarr/login, I get a blank page

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups