https://cerbos.dev logo
#help
Title
# help
k

Kamran Biglari

09/11/2023, 9:25 AM
Is anyone know how to use cerbos container as by using nginx proxy_pass? I tried to do proxy pass but the endpoints in HTML code starts with / and I'm getting 404 on requests.
Copy code
location ~ ^/cerbos {
    rewrite /cerbos/(.*) /$1  break;
    proxy_pass <http://cerbos>;
}
c

Charith (Cerbos)

09/11/2023, 9:51 AM
Not an Nginx expert but do you have other rewrite rules? Try replacing
break
with
last
.