From 74d03b65bfe45f9e1a9b41473565806dcf41e5dc Mon Sep 17 00:00:00 2001 From: arnaucube Date: Sat, 2 Mar 2019 01:41:57 +0100 Subject: [PATCH] add calcurse config, radicale config, nginx config --- .calcurse/caldav/config | 10 ++++++++++ README.md | 5 +++++ nginx-conf/README.md | 19 +++++++++++++++++++ radicale-config | 11 +++++++++++ 4 files changed, 45 insertions(+) create mode 100644 .calcurse/caldav/config create mode 100644 nginx-conf/README.md create mode 100644 radicale-config diff --git a/.calcurse/caldav/config b/.calcurse/caldav/config new file mode 100644 index 0000000..20c957a --- /dev/null +++ b/.calcurse/caldav/config @@ -0,0 +1,10 @@ +[General] +Binary = calcurse +Hostname = sub.domain.com +Path = /calendarname/path/ +SyncFilter = cal +DryRun = No +[Auth] +AuthMethod = basic +Username = username +Password = password diff --git a/README.md b/README.md index b3cd702..ae2cd73 100644 --- a/README.md +++ b/README.md @@ -19,3 +19,8 @@ config files - Redshift `redshift.conf` - in `~/.conf/redshift.conf` - i3 config files `/i3` and `/i3status` directories go inside `~/.conf/` directory + + +### server side +- radicale `config` + - in `~/.conf/radicale/config` diff --git a/nginx-conf/README.md b/nginx-conf/README.md new file mode 100644 index 0000000..f29a7f6 --- /dev/null +++ b/nginx-conf/README.md @@ -0,0 +1,19 @@ +# nginx-config + +In `/etc/nginx/sites-enabled` + +- file: `sub.domain.com`: +``` +server { + server_name sub.domain.com; + + location / { + proxy_pass http://localhost:PORT; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + proxy_read_timeout 86400; + } +} +``` +Then generate certificate with `certbot` diff --git a/radicale-config b/radicale-config new file mode 100644 index 0000000..880bffb --- /dev/null +++ b/radicale-config @@ -0,0 +1,11 @@ +[server] +# Bind all addresses +hosts = 127.0.0.1:PORT + +[auth] +type = htpasswd +htpasswd_filename = /etc/apache2/.username +htpasswd_encryption = bcrypt +[storage] +filesystem_folder = ~/.var/lib/radicale/collections +