aboutsummaryrefslogtreecommitdiff
path: root/data/kanboard
diff options
context:
space:
mode:
Diffstat (limited to 'data/kanboard')
-rw-r--r--data/kanboard/config.php59
-rw-r--r--data/kanboard/kanboard.conf.j234
2 files changed, 93 insertions, 0 deletions
diff --git a/data/kanboard/config.php b/data/kanboard/config.php
new file mode 100644
index 0000000..b8a8d69
--- /dev/null
+++ b/data/kanboard/config.php
@@ -0,0 +1,59 @@
1<?php
2
3// Data folder (must be writeable by the web server user and absolute)
4define('DATA_DIR', '/var/www/app/data');
5
6// Enable/Disable debug
7define('DEBUG', false);
8
9// Available log drivers: syslog, stderr, stdout, system or file
10define('LOG_DRIVER', 'system');
11
12// Plugins directory
13define('PLUGINS_DIR', __DIR__.DIRECTORY_SEPARATOR.'plugins');
14
15// Available cache drivers are "file" and "memory"
16define('CACHE_DRIVER', 'memory');
17
18// Enable/disable the reverse proxy authentication
19define('REVERSE_PROXY_AUTH', true);
20
21// Header name to use for the username
22define('REVERSE_PROXY_USER_HEADER', 'HTTP_REMOTE_USER');
23
24// Username of the admin, by default blank
25define('REVERSE_PROXY_DEFAULT_ADMIN', 'samadmin');
26
27// Header name to use for the user email
28define('REVERSE_PROXY_EMAIL_HEADER', 'HTTP_REMOTE_EMAIL');
29
30// Header name to use for the user full name
31define('REVERSE_PROXY_FULLNAME_HEADER', 'HTTP_REMOTE_NAME');
32
33// Default domain to use for setting the email address
34define('REVERSE_PROXY_DEFAULT_DOMAIN', 'chudnick.com');
35
36// Enable/disable remember me authentication
37define('REMEMBER_ME_AUTH', true);
38
39// Hide login form, useful if all your users use Google/Github/ReverseProxy authentication
40define('HIDE_LOGIN_FORM', true);
41
42// Disabling logout (useful for external SSO authentication)
43define('DISABLE_LOGOUT', true);
44
45// Enable captcha after 3 authentication failure
46define('BRUTEFORCE_CAPTCHA', 3);
47
48// Lock the account after 6 authentication failure
49define('BRUTEFORCE_LOCKDOWN', 6);
50
51// Lock account duration in minute
52define('BRUTEFORCE_LOCKDOWN_DURATION', 15);
53
54// Session duration in second (0 = until the browser is closed)
55// See http://php.net/manual/en/session.configuration.php#ini.session.cookie-lifetime
56define('SESSION_DURATION', 0);
57
58// Session handler: db or php
59define('SESSION_HANDLER', 'db');
diff --git a/data/kanboard/kanboard.conf.j2 b/data/kanboard/kanboard.conf.j2
new file mode 100644
index 0000000..a9746a6
--- /dev/null
+++ b/data/kanboard/kanboard.conf.j2
@@ -0,0 +1,34 @@
1server {
2 listen 443 ssl;
3 server_name {{ kanboard_server_name }};
4
5 ssl_certificate /etc/letsencrypt/live/chudnick.com/fullchain.pem;
6 ssl_certificate_key /etc/letsencrypt/live/chudnick.com/privkey.pem;
7 add_header Strict-Transport-Security "max-age=31536000" always;
8 ssl_stapling on;
9 ssl_stapling_verify on;
10
11 # Security / XSS Mitigation Headers
12 add_header X-Frame-Options "SAMEORIGIN";
13 add_header X-XSS-Protection "1; mode=block";
14 add_header X-Content-Type-Options "nosniff";
15
16 # authelia
17 include /etc/nginx/snippets/authelia-location.conf;
18
19 location / {
20 #authelia
21 include /etc/nginx/snippets/proxy.conf;
22 include /etc/nginx/snippets/authelia-authrequest.conf;
23
24 proxy_pass http://127.0.0.1:{{ kanboard_external_port }}/;
25 }
26
27}
28
29server {
30 listen 80;
31 listen [::]:80;
32 server_name {{ kanboard_server_name }};
33 return 301 https://$host$request_uri;
34}