<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
<properties>
    <!-- Database - H2 embedded database -->
    <entry key="database.driver">org.h2.Driver</entry>
    <entry key="database.url">jdbc:h2:./data/database</entry>
    <entry key="database.user">sa</entry>
    <entry key="database.password"></entry>

    <!-- Auth0 OpenID Connect Authentication -->
    <!-- These values should be set via environment variables or secrets in production -->
    <entry key="openid.clientId">${TRACCAR_OPENID_CLIENT_ID}</entry>
    <entry key="openid.clientSecret">${TRACCAR_OPENID_CLIENT_SECRET}</entry>
    <entry key="openid.issuerUrl">${AUTH0_DOMAIN}</entry>
    <entry key="openid.force">true</entry>
    <entry key="web.url">${TRACCAR_PUBLIC_URL}</entry>

    <!-- Auth0 Role-based Access Control -->
    <!-- Namespace must match the Auth0 Action that adds groups to tokens -->
    <entry key="openid.group">${TRACCAR_PUBLIC_URL}/groups</entry>
    <entry key="openid.adminGroup">ADMINISTRATOR</entry>
    <entry key="openid.allowGroup">ADMINISTRATOR,COORDINATOR</entry>

    <!-- Logging - set to 'info' in production -->
    <entry key="logger.level">info</entry>
</properties>
