
server {
    bind_address              = "127.0.0.1"
    bind_port                 = "8081"
    bind_http_port            = "8082"
    trust_domain              = "example.com"
    data_dir                  = "@l_prefix@/var/spire/data/spire-server.d"
    plugin_dir                = "@l_prefix@/etc/spire/spire-server.d"
    log_level                 = "DEBUG"
    umask                     = ""
    upstream_bundle           = true
    svid_ttl                  = "1h"
    ca_subject = {
        Country               = [ "US" ],
        Organization          = [ "SPIFFE" ],
        CommonName            = "",
    }
}

plugins {
    DataStore "sql" {
        enabled               = true
        plugin_data {
            database_type     = "sqlite3"
            connection_string = "@l_prefix@/var/spire/data/spire-server.db"
        }
    }
    NodeAttestor "join_token" {
        enabled               = true
        plugin_data {
            trust_domain      = "example.com"
        }
    }
    NodeResolver "noop" {
        enabled               = true
        plugin_data {}
    }
    KeyManager "memory" {
        enabled               = true
        plugin_data {}
    }
    UpstreamCA "disk" {
        enabled               = true
        plugin_data {
            trust_domain      = "example.com"
            ttl               = "1h"
            key_file_path     = "@l_prefix@/etc/spire/spire-ca.key"
            cert_file_path    = "@l_prefix@/etc/spire/spire-ca.crt"
        }
    }
}

