location / {
        proxy_pass           http://[::1]:22050;
        proxy_set_header     X-Script-Name /;
        proxy_set_header     X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header     X-Remote-User $remote_user;
        auth_basic           "Radicale";
        auth_basic_user_file /etc/radicale/htpasswd;
    }

    location /.web/ {
        proxy_pass           http://[::1]:22050;
        proxy_set_header     X-Script-Name /;
        proxy_set_header     X-Forwarded-For $proxy_add_x_forwarded_for;
    }