Menu

#26 Cron task details

closed
Robin
None
2014-08-26
2014-03-27
alan
No

Hi, thank you for this plugin, it's really good.
I need precision about the cron task.
Don't you need to use wget --post-data directive to send the login (and probably the --keep-session-cookies) ?
also the url syntax http://management:aggregate@127.0.0.1 means http://user:password@127.0.0.1 so do i need to implement an htpasswd user and change management / aggregate with those values ?
Thanks for giving me this precision,
regards,

Discussion

  • alan

    alan - 2014-03-27
    • assigned_to: Robin --> nobody
     
  • Robin

    Robin - 2014-03-28
    • status: open --> accepted
    • assigned_to: Robin
     
  • Robin

    Robin - 2014-03-28

    Hi,
    The wget doesn't actually need --post-data because the script is white listed from the list of IP addresses defined as admin IPs. So there is no authentication anymore, and there is no need for an .htaccess either (one could be added for additional protection). The aggregate.php script runs once when called through wget so there is no need for --keep-session-cookies.

    Hope that helps,
    Robin

     
  • Robin

    Robin - 2014-03-28

    Right, the username and password can be removed. This will be clarified in the next release.

     
  • alan

    alan - 2014-04-01

    thanks again, all clear now. Yes the precision of the ip is important since you can put apache listening on a really specific ip (NameVirtualHost) and since the server who launches the wget could be on a totally sub network as well. Anyway thanks a lot.

     
  • Robin

    Robin - 2014-08-26
    • status: accepted --> closed
     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB