summaryrefslogtreecommitdiff
path: root/files/taskd
diff options
context:
space:
mode:
Diffstat (limited to 'files/taskd')
-rw-r--r--files/taskd/config19
-rw-r--r--files/taskd/taskd.service19
-rw-r--r--files/taskd/vars7
3 files changed, 45 insertions, 0 deletions
diff --git a/files/taskd/config b/files/taskd/config
new file mode 100644
index 0000000..cc21502
--- /dev/null
+++ b/files/taskd/config
@@ -0,0 +1,19 @@
+confirmation=1
+extensions=/usr/libexec/taskd
+ip.log=on
+log=/var/log/taskd.log
+pid.file=/tmp/taskd.pid
+queue.size=10
+request.limit=1048576
+root=/var/lib/taskd
+server=taskd.eug-vs.xyz:53589
+trust=strict
+verbose=1
+
+client.cert=/var/lib/taskd/api.cert.pem
+client.key=/var/lib/taskd/api.key.pem
+server.cert=/var/lib/taskd/server.cert.pem
+server.key=/var/lib/taskd/server.key.pem
+server.crl=/var/lib/taskd/server.crl.pem
+ca.cert=/var/lib/taskd/ca.cert.pem
+debug.tls=3
diff --git a/files/taskd/taskd.service b/files/taskd/taskd.service
new file mode 100644
index 0000000..dc66757
--- /dev/null
+++ b/files/taskd/taskd.service
@@ -0,0 +1,19 @@
+[Unit]
+Description=Secure server providing multi-user, multi-client access to Taskwarrior data
+Requires=network.target
+After=network.target
+Documentation=https://taskwarrior.org/docs/#taskd
+
+[Service]
+ExecStart=/usr/local/bin/taskd server --data /var/lib/taskd
+Type=simple
+User=taskd
+Group=taskd
+WorkingDirectory=/var/lib/taskd
+PrivateTmp=true
+InaccessibleDirectories=/home /root /boot /opt /mnt /media
+ReadOnlyDirectories=/etc /usr
+
+[Install]
+WantedBy=multi-user.target
+
diff --git a/files/taskd/vars b/files/taskd/vars
new file mode 100644
index 0000000..44bf78a
--- /dev/null
+++ b/files/taskd/vars
@@ -0,0 +1,7 @@
+SEC_PARAM=high
+EXPIRATION_DAYS=365
+ORGANIZATION="Eugene's Space"
+CN=taskd.eug-vs.xyz:53589
+COUNTRY=BY
+STATE="Minsk"
+LOCALITY="BY"