github.com/NVIDIA/aistore@v1.3.23-0.20240517131212-7df6609be51d/api/env/authn.go (about)

     1  // Package env contains environment variables
     2  /*
     3   * Copyright (c) 2018-2022, NVIDIA CORPORATION. All rights reserved.
     4   */
     5  package env
     6  
     7  // authn environment variables
     8  // see also: docs/environment-vars.md
     9  
    10  var (
    11  	AuthN = struct {
    12  		Enabled   string
    13  		URL       string
    14  		TokenFile string
    15  		ConfDir   string
    16  		LogDir    string
    17  		LogLevel  string
    18  		Port      string
    19  		TTL       string
    20  		UseHTTPS  string
    21  	}{
    22  		Enabled:   "AIS_AUTHN_ENABLED",
    23  		URL:       "AIS_AUTHN_URL",
    24  		TokenFile: "AIS_AUTHN_TOKEN_FILE", // fully qualified
    25  		ConfDir:   "AIS_AUTHN_CONF_DIR",   // contains AuthN config and tokens DB
    26  		LogDir:    "AIS_AUTHN_LOG_DIR",
    27  		LogLevel:  "AIS_AUTHN_LOG_LEVEL",
    28  		Port:      "AIS_AUTHN_PORT",
    29  		TTL:       "AIS_AUTHN_TTL",
    30  		UseHTTPS:  "AIS_AUTHN_USE_HTTPS",
    31  	}
    32  )