Jwt_secret: 1234567890abcdefghifjkl #any text or number you want to add here to create jwt Tokenĭefault_redirection_url: #where to redirect for a non-existent URL # yamllint disable rule:comments-indentation Navigate by ssh to /myvolume/ and edit configuration.yml. Start the created container, it will stop, this is normal. myvolume:/config #change this to a shared folder on your system. Just folllow this guide Docker compose – Authelia version: '3.3' If you don’t have docker up and running, I’ve got you covered. Authelia:įor this guide it’s important that you already have an up and running docker with docker compose in order to start. Value: hdr(host) -m reg -i ^(?i)(prism|nvr|storj1|spotweb)\.mydomain\.meįor the frontend action: Action: Use BackendĪbove is just an example on how to approach. To achieve this you need to tweak a few things as following:įor the frontend ACL: Name: protected-frontends In some cases, like mine it might not work as described above however there is another way. Please note: customaction: http-request lua.auth-request be_authelia_ipvANY /api/verifyīe_authelia_ipvANY is important! be_authelia is the backend we’ve created earlier ipvANY needs to be added (pfsense does so in haproxy.cfg) Another route: Name: X-Forwarded-Uri, fmt: %%%Ĭustomaction: http-request lua.auth-request be_authelia_ipvANY /api/verify In my case this will be photoprism, you will need the following entries to be made (note that this needs to be done for every protected backend).Ĭustomaction: http-request set-var(req.scheme) str(https)Ĭustomaction: http-request set-var(req.scheme) str(http)Ĭustomaction: http-request set-var(req.questionmark) str(?) Lua-prepend-path /usr/local/share/lua/5.3/a Create Backend: Authelia backend: Service backend:
0 Comments
Leave a Reply. |