Skip to content

Commit

Permalink
Add authentik config lines and adjust comments
Browse files Browse the repository at this point in the history
  • Loading branch information
roib20 authored Feb 13, 2023
1 parent 5a0a372 commit 721e229
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
9 changes: 8 additions & 1 deletion planka.subdomain.conf.sample
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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";
Expand All @@ -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;
Expand Down
9 changes: 7 additions & 2 deletions planka.subfolder.conf.sample
Original file line number Diff line number Diff line change
@@ -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 /<container_name> {

location /planka {
return 301 $scheme://$host/planka/;
}

Expand All @@ -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;
Expand Down

0 comments on commit 721e229

Please sign in to comment.