On Thu, Aug 24, 2017 at 12:27:56AM +0200, Jonas Smedegaard wrote:
> > - I had an historic entry for the LANG setting there, causing
> >   problems with the non-ascii char.
> > 
> > - Also the offical way of pointing the wsgi version to its config
> >   file is via environment variable, which again for me leads to
> >   apache envvars.
> >   This point is probably worth mentioning in a README{.debian}
> 
> I prefer to leave WSGI documentation generally to external resources.

To me this is a radicale specific hint. The rest of the
documentation talks about config in /etc/radcale/config, but to
my big surprise the supplied wsgi script explicitly disables it.
> 
> I'd be happy to include sample config snippets for mod_wsgi (and nginx 
> and uwsgi and other web servers) with the Debian radicale package.
> 
> Can you provide me a file to place below /etc/apache2/sites-available/ 
> then I can use that as basis.

It is not quite that easy, however let's try with some snippets.

My working config of radicale with the supplied wsgi script
consists of the following config snippets:

- in /etc/apache2/envvars
# Make sure mod_wsgi has utf-8 as default encodig. There are other
# ways to achive this, this sets it for all of apache (including e.g.
# php), which is fine for me.
export LANG=C.UTF-8
# Pointing the wsgi version of radicale to its config
# Upstream explicitly removes the normal path in the supplied wsgi
# script.
export RADICALE_CONFIG=/etc/radicale/config

- in the apache config file for the (virtual) host:
# You can choose a different user here, e.g. radicale
WSGIDaemonProcess radicale user=www-data group=www-data threads=9 
inactivity-timeout=300 display-name=%{GROUP}
# If you have a decidate vhost use / here.
WSGIScriptAlias /caldav /usr/share/radicale/radicale.wsgi
<Location "/caldav">
    WSGIProcessGroup radicale
    WSGIApplicationGroup %{GLOBAL}
# When you have in /etc/radicale/config in section [auth]
# type=remote, leave this commented out
#    WSGIPassAuthorization On
    AllowOverride None

# Leave Authentication to Apache, which makes most sense with
# type=remote authentication in radicale
    AuthType Basic
    AuthName "radicale"
    AuthBasicProvider file
    AuthUserFile  /etc/apache2/caldav-passwd
    Require valid-user
</Location>

Bye,

Joerg

Attachment: signature.asc
Description: PGP signature

Reply via email to