[HELP] Kanboard API Requests Returning 302 Redirect

What type of hardware are you using: Virtual machine
What YunoHost version are you running: 12.0.11
What app is this about: kanboard

Describe your issue

Hello,

I have successfully installed Kanboard on YunoHost, but I keep getting a 302 redirect error when making API requests. I would appreciate any help on this issue.

:light_bulb: System Information:

YunoHost Version: 12.0.11
Kanboard Version: 1.2.43~ynh2
Installation Environment: Virtual machine running on VirtualBox
Domain: Local domain (tetik.local)
Access: Not publicly accessible, only running within the local network.

:pushpin: Issue Description:

API requests (http://tetik.local/kanboard/jsonrpc.php) are not working.
When I test using cURL, I always get the following response:

curl -v -X POST http://tetik.local/kanboard/jsonrpc.php

Output:

< HTTP/1.1 302 Moved Temporarily
< Location: https://tetik.local/yunohost/admin

This means that my API calls are always redirected to the YunoHost admin panel.

:magnifying_glass_tilted_left: What I Have Tried So Far:

:one: Tried disabling Kanboard API authentication:

Added the following line to /var/www/kanboard/config.php:

define(ā€˜KANBOARD_API_AUTHENTICATION’, false);

Restarted services using systemctl restart nginx php8.3-fpm.

:two: Attempted to disable SSO:

yunohost app setting kanboard unprotected_uris -v /
yunohost app setting kanboard protected_uris -d

:three: Checked Nginx configuration:

Removed the following line from /etc/nginx/conf.d/tetik.local.d/kanboard.conf:

include conf.d/yunohost_panel.conf.inc;
Restarted Nginx with systemctl restart nginx, but the issue persists.

:four: Verified Kanboard’s file structure:

/var/www/kanboard/jsonrpc.php exists.
I can provide the output of ls -l /var/www/kanboard.

:five: Checked Nginx redirection settings:

Output of grep -R ā€œyunohostā€ /etc/nginx/conf.d/:

/etc/nginx/conf.d/default.d/redirect_to_admin.conf: return 302 https://$host/yunohost/admin;
/etc/nginx/conf.d/tetik.local.conf: include /etc/nginx/conf.d/yunohost_sso.conf.inc;
/etc/nginx/conf.d/tetik.local.conf: include /etc/nginx/conf.d/yunohost_admin.conf.inc;
Ran nginx -t to test the configuration, and no errors were found.

:hammer_and_wrench: What I Need Help With:

How can I prevent Kanboard API requests from being redirected to the YunoHost admin panel?
Is there any additional setting in YunoHost that causes this automatic redirection?
Do I need to configure Kanboard differently to make it work without SSO?
I would really appreciate any suggestions or guidance. I can provide logs and additional details if needed.

Thanks in advance! :blush:

Share relevant logs or error messages

< HTTP/1.1 302 Moved Temporarily
< Location: https://tetik.local/yunohost/admin

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.