From 721e2297f98db45c16105a4a8105876ab7e1e0d7 Mon Sep 17 00:00:00 2001 From: roib20 <66280613+roib20@users.noreply.github.com> Date: Tue, 14 Feb 2023 00:52:11 +0200 Subject: [PATCH] Add authentik config lines and adjust comments --- planka.subdomain.conf.sample | 9 ++++++++- planka.subfolder.conf.sample | 9 +++++++-- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/planka.subdomain.conf.sample b/planka.subdomain.conf.sample index 8bd670c09..fd0c3c26b 100644 --- a/planka.subdomain.conf.sample +++ b/planka.subdomain.conf.sample @@ -1,6 +1,7 @@ ## Version 2023/02/05 +# make sure that your planka container is named planka # make sure that your dns has a cname set for planka -# make sure that the BASE_URL env variable in Planka container is set to: BASE_URL="https://planka.example.com" +# make sure that the BASE_URL env variable in planka container is set to: BASE_URL="https://planka.example.com" server { listen 443 ssl; @@ -18,6 +19,9 @@ server { # enable for Authelia (requires authelia-location.conf in the location block) #include /config/nginx/authelia-server.conf; + # enable for Authentik (requires authentik-location.conf in the location block) + #include /config/nginx/authentik-server.conf; + location / { # enable the next two lines for http auth #auth_basic "Restricted"; @@ -29,6 +33,9 @@ server { # enable for Authelia (requires authelia-server.conf in the server block) #include /config/nginx/authelia-location.conf; + # enable for Authentik (requires authentik-server.conf in the server block) + #include /config/nginx/authentik-location.conf; + include /config/nginx/proxy.conf; include /config/nginx/resolver.conf; set $upstream_app planka; diff --git a/planka.subfolder.conf.sample b/planka.subfolder.conf.sample index b3ec6a843..b0d3d51fe 100644 --- a/planka.subfolder.conf.sample +++ b/planka.subfolder.conf.sample @@ -1,7 +1,9 @@ ## Version 2023/02/05 -# make sure that the BASE_URL env variable in Planka container is set to: BASE_URL="https://example.com/planka/" +# make sure that your planka container is named planka +# make sure that the BASE_URL env variable in planka container is set to: BASE_URL="https://example.com/planka/" -location / { + +location /planka { return 301 $scheme://$host/planka/; } @@ -16,6 +18,9 @@ location ^~ /planka/ { # enable for Authelia (requires authelia-server.conf in the server block) #include /config/nginx/authelia-location.conf; + # enable for Authentik (requires authentik-server.conf in the server block) + #include /config/nginx/authentik-location.conf; + include /config/nginx/proxy.conf; include /config/nginx/resolver.conf; set $upstream_app planka;