Hello,
Hope you are doing well.
We currently use Authelia to authenticate users but want to add a redundant
Authelia server so that users can continue to access the content.
Put simply our current nginx config is:
server {
location / {
auth_request /authelia;
error_page 401 =302 https:
figured it out
using lua-resty-http
i created a simple lua script which checks both uris and returns the
correct url for the active one:
local http = require "resty.http"
local httpc = http.new()
local res1, err1 = httpc:request_uri("https://authelia1.domain.net";, {
method = "GET",
keepaliv
Hi Maxim,
Thank you for your helpful response! I have made (partial) changes to my
code to reflect your comments. I better understand the phase mechanism now,
thank you.
> If you actually want to handle such requests yourself,
> consider instead using a content handler. In a content handler
>