Grist + Authelia: Custom logout path

Thanks for the tip @paul-grist . I actually only have a single site. No use-case for multi-site install at the moment. And so I have now set GRIST_ORG_IN_PATH=false and tried setting GRIST_FORWARD_AUTH_HEADER and GRIST_FORWARD_AUTH_LOGOUT_PATH.

While it did recognize the logout path, it’s not the way that I would’ve wanted. The whole logout URL - https://auth.mydomain.tld?rd=https://grist.mydomain.tld got appended to the Grist domain.

… described in A template for self-hosting Grist with traefik and docker compose could have worked for you

I saw this earlier but I figured it doesn’t seem to apply to my case. But looking into it again, it did gave me an idea to simply add a rewrite rule on the /signed-out path.

rewrite ^/signed-out$ https://auth.mydomain.tld/logout?rd=https://grist.mydomain.tld redirect;

And it worked! Quite happy how it turned out now.

1 Like