Skip to content

Commit 8ff3366

Browse files
authored
Merge pull request #520 from roib20/master
Add Planka conf
2 parents 3d345cb + 721e229 commit 8ff3366

2 files changed

Lines changed: 76 additions & 0 deletions

File tree

planka.subdomain.conf.sample

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

planka.subfolder.conf.sample

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

0 commit comments

Comments
 (0)