summaryrefslogtreecommitdiff
path: root/system-configuration.scm
diff options
context:
space:
mode:
Diffstat (limited to 'system-configuration.scm')
-rw-r--r--system-configuration.scm37
1 files changed, 35 insertions, 2 deletions
diff --git a/system-configuration.scm b/system-configuration.scm
index dd24d9e..b30e48c 100644
--- a/system-configuration.scm
+++ b/system-configuration.scm
@@ -543,7 +543,8 @@
( domains
( list
"marekpasnikowski.pl"
- "git.marekpasnikowski.pl" ) ) ) ) )
+ "git.marekpasnikowski.pl"
+ "radicale.marekpasnikowski.pl" ) ) ) ) )
( email certbot-mail )
( webroot "/srv/www/marek/marekpasnikowski.pl" ) ) )
( service cgit-service-type
@@ -588,6 +589,7 @@
( nginx-configuration
( server-blocks
( list
+ ;; Top-Level
( nginx-server-configuration
( locations
( list
@@ -601,8 +603,39 @@
( ssl-certificate
"/etc/letsencrypt/live/marekpasnikowski.pl/fullchain.pem" )
( ssl-certificate-key
- "/etc/letsencrypt/live/marekpasnikowski.pl/privkey.pem" ) ) ) ) ) )
+ "/etc/letsencrypt/live/marekpasnikowski.pl/privkey.pem" ) )
+ ;; Radicale
+ ( nginx-server-configuration
+ ( locations
+ ( list
+ ( nginx-location-configuration
+ ( body
+ ( list
+ "proxy_pass http://localhost:5232/ ;"
+ "proxy_set_header X-Script-Name \"\" ;"
+ "proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for ;"
+ "proxy_set_header Host $http_host ;"
+ "proxy_pass_header Authorization ;" ) )
+ ( uri "/" ) )
+ ( nginx-location-configuration
+ ( body
+ ( list "root /srv/www/marek/marekpasnikowski.pl ;" ) )
+ ( uri "/.well-known" ) ) ) )
+ ( listen ( list "192.168.10.2:443 ssl" ) )
+ ( server-name ( list "radicale.marekpasnikowski.pl" ) ) ) ) ) ) )
( service openssh-service-type )
+ ( service radicale-service-type
+ ( radicale-configuration
+ ( config-file
+ ( mixed-text-file
+ "radicale.conf"
+ "[auth]\n"
+ "type = htpasswd\n"
+ "htpasswd_filename = " radicale-keys "\n"
+ "htpasswd_encryption = plain\n"
+ "\n"
+ "[server]\n"
+ "hosts = localhost:5232\n" ) ) ) )
( simple-service 'base-profile profile-service-type
( append %base-packages
( list