mirror of
https://github.com/usetrmnl/byos_laravel.git
synced 2026-01-13 15:07:49 +00:00
feat: option to refresh proxy by cron syntax, update readme
This commit is contained in:
parent
fa85c82010
commit
d400704d14
3 changed files with 9 additions and 3 deletions
|
|
@ -1,5 +1,7 @@
|
|||
## TRMNL BYOS (PHP/Laravel)
|
||||
|
||||
[](https://github.com/usetrmnl/byos_laravel/actions/workflows/test.yml)
|
||||
|
||||
Laravel Trmnl Server is a self-hostable implementation of a TRMNL server, built with Laravel.
|
||||
It enables you to manage TRMNL devices, generate screens dynamically, and can act as a proxy for the TRMNL API (native plugin system).
|
||||
Inspired by [usetrmnl/byos_sinatra](https://github.com/usetrmnl/byos_sinatra).
|
||||
|
|
@ -236,7 +238,7 @@ Here are some features and improvements that are open for contribution:
|
|||
- Provide Web UI controls to enable/disable plugins.
|
||||
|
||||
##### 📦 Visual Studio Code Devcontainer
|
||||
* Add a .devcontainer to this repo for easier development with Docker.
|
||||
* ~~Add a .devcontainer to this repo for easier development with Docker.~~ ✅
|
||||
|
||||
##### Improve Code Coverage
|
||||
|
||||
|
|
@ -259,7 +261,7 @@ Contributions are welcome! If you’d like to improve the project, follow these
|
|||
- Push your branch and create a PR.
|
||||
- Provide a clear description of your changes.
|
||||
|
||||
🚀 Thank you for contributing! Every contribution helps improve the project.
|
||||
Thank you for contributing!
|
||||
|
||||
### License
|
||||
MIT
|
||||
|
|
|
|||
|
|
@ -38,6 +38,7 @@ return [
|
|||
'trmnl' => [
|
||||
'proxy_base_url' => env('TRMNL_PROXY_BASE_URL', 'https://trmnl.app'),
|
||||
'proxy_refresh_minutes' => env('TRMNL_PROXY_REFRESH_MINUTES', 15),
|
||||
'proxy_refresh_cron' => env('TRMNL_PROXY_REFRESH_CRON'),
|
||||
'override_orig_icon' => env('TRMNL_OVERRIDE_ORIG_ICON', false),
|
||||
],
|
||||
|
||||
|
|
|
|||
|
|
@ -2,4 +2,7 @@
|
|||
|
||||
use App\Jobs\FetchProxyCloudResponses;
|
||||
|
||||
Schedule::job(FetchProxyCloudResponses::class, [])->cron(sprintf('*/%s * * * *', intval(config('services.trmnl.proxy_refresh_minutes', 15))));
|
||||
Schedule::job(FetchProxyCloudResponses::class, [])->cron(
|
||||
config('services.trmnl.proxy_refresh_cron') ? config('services.trmnl.proxy_refresh_cron') :
|
||||
sprintf('*/%s * * * *', intval(config('services.trmnl.proxy_refresh_minutes', 15)))
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue