Skip to content

Commit 51732cc

Browse files
committed
Add Planka conf
Signed-off-by: roib20 <66280613+roib20@users.noreply.github.com>
1 parent f7b1d15 commit 51732cc

2 files changed

Lines changed: 65 additions & 0 deletions

File tree

planka.subdomain.conf.sample

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
## Version 2023/02/05
2+
# make sure that your dns has a cname set for planka
3+
# make sure that the BASE_URL env variable in Planka container is set to: BASE_URL="https://planka.example.com"
4+
5+
server {
6+
listen 443 ssl;
7+
listen [::]:443 ssl;
8+
9+
server_name planka.*;
10+
11+
include /config/nginx/ssl.conf;
12+
13+
client_max_body_size 0;
14+
15+
# enable for ldap auth (requires ldap-location.conf in the location block)
16+
#include /config/nginx/ldap-server.conf;
17+
18+
# enable for Authelia (requires authelia-location.conf in the location block)
19+
#include /config/nginx/authelia-server.conf;
20+
21+
location / {
22+
# enable the next two lines for http auth
23+
#auth_basic "Restricted";
24+
#auth_basic_user_file /config/nginx/.htpasswd;
25+
26+
# enable for ldap auth (requires ldap-server.conf in the server block)
27+
#include /config/nginx/ldap-location.conf;
28+
29+
# enable for Authelia (requires authelia-server.conf in the server block)
30+
#include /config/nginx/authelia-location.conf;
31+
32+
include /config/nginx/proxy.conf;
33+
include /config/nginx/resolver.conf;
34+
set $upstream_app planka;
35+
set $upstream_port 1337;
36+
set $upstream_proto http;
37+
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
38+
}
39+
}

planka.subfolder.conf.sample

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
## Version 2023/02/05
2+
# make sure that your dns has a cname set for planka
3+
# make sure that the BASE_URL env variable in Planka container is set to: BASE_URL="https://example.com/planka/"
4+
5+
location /<container_name> {
6+
return 301 $scheme://$host/planka/;
7+
}
8+
9+
location ^~ /planka/ {
10+
# enable the next two lines for http auth
11+
#auth_basic "Restricted";
12+
#auth_basic_user_file /config/nginx/.htpasswd;
13+
14+
# enable for ldap auth (requires ldap-server.conf in the server block)
15+
#include /config/nginx/ldap-location.conf;
16+
17+
# enable for Authelia (requires authelia-server.conf in the server block)
18+
#include /config/nginx/authelia-location.conf;
19+
20+
include /config/nginx/proxy.conf;
21+
include /config/nginx/resolver.conf;
22+
set $upstream_app planka;
23+
set $upstream_port 1337;
24+
set $upstream_proto http;
25+
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
26+
}

0 commit comments

Comments
 (0)