README 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. $OpenBSD: README,v 1.3 2017/05/06 19:08:52 jung Exp $
  2. +-----------------------------------------------------------------------
  3. | Running ${FULLPKGNAME} on OpenBSD
  4. +-----------------------------------------------------------------------
  5. Administrator Quick Start
  6. =========================
  7. Create users by running "kcaldav.passwd -C -u <user>".
  8. Read kcaldav.passwd(1) for more details about creating
  9. new calenders for users, changing email address and other
  10. options.
  11. With httpd(8) the kcaldav CGI can be run through slowcgi(8)
  12. using a configuration snippet like the following:
  13. server "default" {
  14. listen on * tls port 443
  15. tls {
  16. certificate "/etc/ssl/example.net.crt"
  17. key "/etc/ssl/private/example.net.key"
  18. }
  19. location "/cgi-bin/*" {
  20. fastcgi
  21. root "/"
  22. }
  23. }
  24. kcaldav.cgi uses http authentication for user security.
  25. Install a tls certificate to ensure privacy of connection.
  26. User Quick Start
  27. ================
  28. Users can manage their account settings, create calendars
  29. and find the URL for use with their calendar application
  30. by browsing to: http://localhost/kcaldav/home.html
  31. Porting Notes: Write Ahead Logging
  32. ==================================
  33. As implemented in the original source, kcaldav use sqlite3(3)
  34. Write Ahead Logging (WAL). WAL requires write access to /tmp.
  35. This port disables WAL due to the expectation kcaldav will be
  36. running in a chroot environment which may not have a /tmp dir.
  37. To re-enable WAL:
  38. Open the kcaldav.db:
  39. % doas sqlite3 caldav/kcaldav.db
  40. Type:
  41. sqlite> PRAGMA journal_mode=WAL;
  42. To disable WAL later open the kcaldav db and type:
  43. sqlite> PRAGMA journal_mode=DELETE;
  44. If you plan to run kcaldav in a chroot environment you must
  45. create a /tmp directory in the chroot and it must be writable
  46. by the httpd daemon account:
  47. % doas mkdir /var/www/tmp
  48. % doas chown www:daemon /var/www/tmp
  49. % doas chmod 755 /var/www/tmp
  50. For more details about WAL and temp directory requirements
  51. see:
  52. https://www.sqlite.org/wal.html
  53. https://www.sqlite.org/c3ref/temp_directory.html