// This is a example of a configuration for Control-Agent (CA) or simply Agent.
// It uses embedded (i.e., which will be included in configuration objects
// and not stripped by at lexical analysis) comments.

{
    "Control-agent":
    {
        // Global scope
        "comment": "A Control Agent",

        "http-host": "127.0.0.1",

        // If enabling HA and multi-threading, the 8000 port is used by the HA
        // hook library http listener. When using HA hook library with
        // multi-threading to function, make sure the port used by dedicated
        // listener is different (e.g. 8001) than the one used by CA. Note
        // the commands should still be sent via CA. The dedicated listener
        // is specifically for HA updates only.
        "http-port": 8000,

        // Extra HTTP headers to add in responses.
        "http-headers":
        [
            {
                "comment": "HSTS header",
                "name": "Strict-Transport-Security",
                "value": "max-age=31536000"
            }
        ],

        // In authentication
        "authentication":
        {
            "comment": "basic HTTP authentication",

            "type": "basic",

            // In basic HTTP authentication clients
            "clients":
            [
                {
                    "comment": "admin is authorized",
                    "user": "admin",
                    "password": "1234"
                }
            ]
        },

        // In control socket
        "control-sockets":
        {
            "dhcp4":
            {
                "comment": "control socket for DHCPv4 server",
                "socket-type": "unix",
                "socket-name": "kea4-ctrl-socket"
            }
        },

        // In loggers
        "loggers": [
            {
                "comment": "A logger",
                "name": "kea-ctrl-agent"
            }
        ]
    }
}
