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.
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.
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.
What I Have Tried So Far:
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.
Attempted to disable SSO:
yunohost app setting kanboard unprotected_uris -v /
yunohost app setting kanboard protected_uris -d
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.
Verified Kanboardās file structure:
/var/www/kanboard/jsonrpc.php exists.
I can provide the output of ls -l /var/www/kanboard.
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.
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!
Share relevant logs or error messages
< HTTP/1.1 302 Moved Temporarily
< Location: https://tetik.local/yunohost/admin