Setting default device limit server wide.

RichardG3 years ago

I have my own traccar demo server which I will allow people to self-register and add 1 device to trial traccar.

Is there a way to set the default device limit to 1 for new user registrations? Admin would have the ability to change it on a per user basis.

I can't see anything in traccar.xml documentation about this.

Anton Tananaev3 years ago

Not sure if there's documentation, but I think there's a configuration option for that.

RichardG3 years ago

I've tried adding the below keys within traccar.xml with no luck.
<entry key='deviceLimit'>1</entry>
and also
<entry key='default.deviceLimit'>1</entry>

as per https://github.com/traccar/traccar/pull/2595

Any other ideas?

Anton Tananaev3 years ago
RichardG3 years ago

Thanks. Working perfectly with key: <entry key='users.defaultDeviceLimit'>1</entry>