-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
✨ Health Checks for Links #79
Conversation
Wow, nice work! Let me check that and I'll merge it :) Edit: Give me some time, I'll add some nice enhancements to that (vue instead of blade for example) |
Can individual links be excluded from the check? I also use the tool for links in the local network. |
Some things to note, I used a Chrome user agent because sites like reddit block requests made with guzzle's default user agent. Even though with this user agent, some sites still manage to block and I have not been able to figure out how. |
As of now there's no way to exclude links, but the setting will come disabled by default so those links won't be pinged. It's easy to add a way to exclude links but I'm not familiar with vue enough to build the interface for it. |
To Do
|
# Conflicts: # composer.lock
…health checks disabled
@MarceauKa I've been learning vuejs for a while so if you haven't converted the control panel to vue, I'd like to give it a try. Let me know : ) |
I'm working to release that, don't worry! :D |
Hi, just merged this with a lot of improvements. Look at this commit: fd2acc7 There are major changes in UI, commands, translations, controllers and migration |
Released in 1.2.43 |
Here's a new feature that checks the http status code for each link using guzzle.
Once enabled, the health check task is hardcoded to run every 10 minutes, and only check up to a maximum of 20 links. You can configure how often to check each link at Settings. It is currently defaulted to 7 days, max 365.
guzzlehttp/guzzle is used to make the checks.
2 database columns
http_status
andhttp_checked_at
are added to thelinks
table.I'm not familiar with vue so the links dashboard and dead links pages are done the traditional way using blade templates.