Blue Iris settings?

(Scott Kaforey) #1

Coming from here:
http://www.blueirissoftware.com/forum/viewtopic.php?t=3063

It seems users using nginx were able to fix the problem by doing the following:
location /bi/ {
rewrite ^/bi/(.*) /$1 break;
proxy_ignore_client_abort on;
proxy_pass http://192.168.1.220:81;
proxy_redirect http://192.168.1.220:81 /bi;
}

Can someone help me translate the above nginx settings to caddy settings?

(Scott Kaforey) #2

I actually figured it out from another post. Posting my answer here in case it might help someone in the future:

domain.com {
    redir 301 {
        if {>referer} is https://domain.com/bi
        if {path} not_has bi/
        / /bi/{path}
    }
    proxy /bi 127.0.0.1:9898 {
        without /bi
    }
}
1 Like