How to use cron with authentication ?

by vincen, Sunday, May 26, 2024, 09:48 (62 days ago)

Hi

I have activated login/pass in Selfoss but unhappy it blocks the cron to run as it gets an authorisation denied from Selfoss.
Is there a way to workaround that ? or to whitelist an IP address for Selfoss so cron script can execute properly ?

Thanks

Vincèn

How to use cron with authentication ?

by jtojnar, Monday, May 27, 2024, 23:23 (60 days ago) @ vincen

Hi. If you can run commands, you can have cron execute php path/to/selfoss/cliupdate.php.

If you can only trigger HTTP requests, you will need to specify username and password. Preferably as POST parameters but GET (query string) parameters will work too (just note that your web server might include GET parameters in logs).

How to use cron with authentication ?

by vincen, Tuesday, May 28, 2024, 09:22 (60 days ago) @ jtojnar

Thanks will try that :)

RSS Feed of thread
powered by my little forum