From kromonos, 10 Months ago, written in nginx.
This paste is a reply to nginx radicale from derhil - view diff
Embed
  1.     listen 80;
  2.     listen [::]:80;
  3.     servername example.com
  4.  
  5.     root /pfad/zum/radicale/oder/leer
  6.  
  7.     location /dav/ {
  8.             proxy_pass           http://localhost:5232/;
  9.             proxy_set_header     X-Script-Name /dav;
  10.             proxy_set_header     X-Forwarded-For $proxy_add_x_forwarded_for;
  11.             proxy_set_header     X-Remote-User $remote_user;
  12.             proxy_read_timeout   300;
  13.             auth_basic           "Radicale - Password Required";
  14.             auth_basic_user_file radicale.passwd;
  15.     }
  16. }
  17.