User Tools

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:install_authelia_on_debian_without_docker [2026-08-20 15:23] – iacchien:install_authelia_on_debian_without_docker [2026-08-20 15:37] (current) – iacchi
Line 318: Line 318:
 Authelia comes with a systemd service file that needs to be enabled and then edited to allow for the secrets templating that we used in the configuration file to work. Rather than editing the file directly (which would get overwritten in subsequent updates), we'll use systemd tools to do it properly. First, let's enable the service: Authelia comes with a systemd service file that needs to be enabled and then edited to allow for the secrets templating that we used in the configuration file to work. Rather than editing the file directly (which would get overwritten in subsequent updates), we'll use systemd tools to do it properly. First, let's enable the service:
  
-<code yaml>+<code bash>
 cd /usr/lib/systemd/system cd /usr/lib/systemd/system
 systemctl enable authelia.service systemctl enable authelia.service
Line 326: Line 326:
 Your default cli text editor will open at this point. We'll need to put our modifications at the top, between the first and the second comment block. This is what to add: Your default cli text editor will open at this point. We'll need to put our modifications at the top, between the first and the second comment block. This is what to add:
  
-<code>+<code ini>
 [Service] [Service]
 Environment=X_AUTHELIA_CONFIG_FILTERS=template Environment=X_AUTHELIA_CONFIG_FILTERS=template
Line 374: Line 374:
     add_header X-Permitted-Cross-Domain-Policies none;     add_header X-Permitted-Cross-Domain-Policies none;
          
-    set $upstream http://localhost:9091;+    set $upstream http://127.0.0.1:9091;
  
     location / {     location / {
Line 410: Line 410:
  
 <code bash> <code bash>
-ln -s /etc/nginx/sites-available/login.iacchi.casa /etc/nginx/sites-enabled/+ln -s /etc/nginx/sites-available/authelia /etc/nginx/sites-enabled/
 systemctl restart nginx systemctl restart nginx
 </code> </code>
  
 Authelia should now be available at https://auth.mydomain.tld Authelia should now be available at https://auth.mydomain.tld