Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| services:lubelogger [2025/01/26 17:40] – willy | services:lubelogger [2025/01/27 17:31] (current) – [Authentication] willy | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== LubeLogger ====== | ====== LubeLogger ====== | ||
| - | [[https:// | + | [[https:// |
| ===== Installation ===== | ===== Installation ===== | ||
| Line 24: | Line 24: | ||
| - LC_ALL=it_IT.UTF-8 # this will affect how numbers, currencies, and dates are formatted. | - LC_ALL=it_IT.UTF-8 # this will affect how numbers, currencies, and dates are formatted. | ||
| - LANG=it_IT.UTF-8 | - LANG=it_IT.UTF-8 | ||
| - | # - EnableAuth=false | + | # - EnableAuth=false |
| volumes: | volumes: | ||
| - / | - / | ||
| Line 50: | Line 50: | ||
| podman compose pull | podman compose pull | ||
| </ | </ | ||
| + | |||
| ===== Authentication ===== | ===== Authentication ===== | ||
| - | Unfortunately, while it is possible to disable authentication, it will **not** | + | Authentication with LubeLogger took a bit to figure out. First of all, it's pretty unconventional in a few respects: |
| + | * Authentication | ||
| + | | ||
| + | | ||
| + | | ||
| + | |||
| + | You have different options: | ||
| + | * disable LubeLogger auth and use your own proxy-based authentication, | ||
| + | * enable internal LubeLogger auth, and disable your proxy autnehtication, | ||
| + | * enable LubeLogger authentication with your OIDC SSO (es Authelia), but you still need to create your LubeLogger root account and you will not be able to use your proxy authentication, | ||
| - | Enabling | + | In general enabling |
| - | To setup the SSO (spoiler: i didnt managed | + | Instead, if you want to enable SSO, you need to setup the following environments in your docker compose: |
| < | < | ||
| MailConfig__EmailServer="" | MailConfig__EmailServer="" | ||
| Line 97: | Line 107: | ||
| I suggest you also setup email notification by creating a dedicated email address for LubeLogger to send out emails or you will **not** be able to add users. | I suggest you also setup email notification by creating a dedicated email address for LubeLogger to send out emails or you will **not** be able to add users. | ||
| - | I gave up, so far, to make this work and i just enabled | + | I choose |
| ===== Reverse Proxy ===== | ===== Reverse Proxy ===== | ||
| Line 111: | Line 122: | ||
| access_log / | access_log / | ||
| error_log / | error_log / | ||
| + | | ||
| + | # The following line enables proxy auth with SSO, uncomment to use LubeLogger auth | ||
| + | include " | ||
| + | |||
| | | ||
| + | # The following two lines enables proxy auth with SSO, uncomment to use LubeLogger auth | ||
| + | include " | ||
| + | include " | ||
| + | | ||
| proxy_pass http:// | proxy_pass http:// | ||
| client_max_body_size | client_max_body_size | ||
| - | proxy_set_header Host $http_host; | + | |
| - | proxy_set_header X-Real-IP | + | # The following lines are all commented to use NGINX SSO authentication and NOT LubeLogger |
| - | proxy_set_header X-Forwarded-For | + | # authentication. IF you want to use LubeLogger authentication, |
| - | proxy_set_header X-Forwarded-Proto $scheme; | + | # |
| + | # | ||
| + | # | ||
| + | # | ||
| proxy_set_header | proxy_set_header | ||
| proxy_set_header | proxy_set_header | ||