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
Allow per-device forward url override. #4630
base: master
Are you sure you want to change the base?
Conversation
I'm not sure if it's going to be useful for a wider audience. There is also a bit of security concern. This means that people can "disable" global forwarding by using incorrect URL or their own URL. But maybe let's keep the PR open and see if anyone else is interested in similar functionality. |
I have the same need and implemented also with device attributes being checked on the code running behind the url being invoked by traccar. |
I have the same need. People can overide global forwarding for owned devices only. Global forwarding could run in parallel if You wory about that. |
Maybe if the global URL is not set, we can use per device. If it is set, we use that.. |
Thats even better for me, because right now I have to forward all the devices and only a few are processed
|
Good point with the possible security issue 🤔. |
@tananaev so I have changed the behavior as suggested above, i.e., giving precedence to the global To make that happen, I have added PTAL and let me know if this is something worth merging and what changes would have to be done. An alternative is to keep the original behavior and add a config option to allow per-device overrides, but that does not easily cover the "forward only for a subset of devices" scenario described by @jcardus above 🤷. |
We just removed those keys a couple of weeks ago. Please don't add them back. Just use URL. |
Not sure how tbh. If it is filled in, it will have precedence over the per-device settings. If it is not, the components |
I see what you mean. Let's leave it for now. I need to think about it. We are actually in the process of changing device/user configuration. |
Hi @tananaev, any thoughts on this one? |
Haven't had time to work on configuration yet. Swarmed with other work. |
I would like to see this implemented, and I like the idea of the global |
This is to allow overriding target urls for forwarding position information and events per device or per device group.
Our use case is 1 Traccar server that needs to forward events to one of N target servers depending on a device group.
@tananaev, please let me know if this is something useful for the core Traccar and any changes needed to get it in ✌️.