diff options
-rw-r--r-- | README.md | 8 | ||||
-rw-r--r-- | etc/davical/config/config.sample | 14 |
2 files changed, 22 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..3f0f420 --- /dev/null +++ b/README.md @@ -0,0 +1,8 @@ +# mkosi-template for Davical + +- Run `sudo mkosi` in this folder +- Symlink the nspawn-config to its right place - `sudo ln -s /var/lib/machines/davical.nspawn /etc/systemd/nspawn/` +- Copy in the config-sample, using the same rights. `sudo cp -a etc/davical /etc/ && sudo mv /etc/davical/config/config.sample /etc/davical/config/config.php` +- Edit the config to your liking +- Start the machine using `sudo machinectl start davical`. +- Point your reverse proxy to port `8301`, and set up Basic Auth. diff --git a/etc/davical/config/config.sample b/etc/davical/config/config.sample new file mode 100644 index 0000000..563d3a0 --- /dev/null +++ b/etc/davical/config/config.sample @@ -0,0 +1,14 @@ +<?php + $c->domain_name = "davical.example.com"; + $c->sysabbr = 'DAViCal'; + $c->admin_email = "example@example.com"; + $c->system_name = "DAViCal-server"; + $c->pg_connect[] = "dbname=davical port=5432 user=davical_app host=localhost password=PASSWORD"; + +/* + * Use Apache-supplied headers and believe them + */ + + $c->authenticate_hook['server_auth_type'] = 'Basic'; + include_once('AuthPlugins.php'); + |