Score:0

nginx radicale reverse proxy: 403 Error

kw flag
Nic

Made some attempts to configure a reverse proxy for radicale. Site is up and running meaning I can connect to the webui but im getting a 403 error when I attempt to connect it to my client (Calcurse-caldav).

Here is the error in question error: The server at cal.xxx.re replied with HTTP status code 403 (Forbidden) error: while trying to access https://cal.xxx.re/var/lib/radicale/collections/.

Here are the configs for the setup

1- /etc/radicale/config

[server]
hosts = 0.0.0.0:5232, [::]:5232

[auth]
type = htpasswd
htpasswd_filename = /etc/radicale/users
htpasswd_encryption = bcrypt

2- /etc/nginx/site-enabled/cal

server {
    listen 443 ssl;
    listen [::]:443 ssl;
    server_name cal.xxx.re;
    location / {
        proxy_pass http://localhost:5232/; # The / is important!
        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;
        proxy_set_header Host $http_host;
        proxy_pass_header Authorization;

    }

    ssl_certificate /etc/letsencrypt/live/cal.afu.re/fullchain.pem; # managed by Certbot
    ssl_certificate_key /etc/letsencrypt/live/cal.afu.re/privkey.pem; # managed by Certbot
}

3- config/calcurse/caldav/config

[General]
Binary = /usr/bin/calcurse
Hostname = cal.xxx.re
Path = /var/lib/radicale/collections/
SyncFilter = cal,todo

I made sure bcrypt was installed. What should I investigate to solve this 403 error ? Any suggestion will be greatly appreciated !

djdomi avatar
za flag
welcome, please read [ask] I miss here a lot of information, which could be already provided if you usually read the guide ;)
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.