github.com/minio/console@v1.3.0/api/consts.go (about)

     1  // This file is part of MinIO Console Server
     2  // Copyright (c) 2021 MinIO, Inc.
     3  //
     4  // This program is free software: you can redistribute it and/or modify
     5  // it under the terms of the GNU Affero General Public License as published by
     6  // the Free Software Foundation, either version 3 of the License, or
     7  // (at your option) any later version.
     8  //
     9  // This program is distributed in the hope that it will be useful,
    10  // but WITHOUT ANY WARRANTY; without even the implied warranty of
    11  // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    12  // GNU Affero General Public License for more details.
    13  //
    14  // You should have received a copy of the GNU Affero General Public License
    15  // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    16  
    17  package api
    18  
    19  // list of all console environment constants
    20  const (
    21  	// Constants for common configuration
    22  	ConsoleMinIOServer = "CONSOLE_MINIO_SERVER"
    23  	ConsoleSubnetProxy = "CONSOLE_SUBNET_PROXY"
    24  	ConsoleMinIORegion = "CONSOLE_MINIO_REGION"
    25  	ConsoleHostname    = "CONSOLE_HOSTNAME"
    26  	ConsolePort        = "CONSOLE_PORT"
    27  	ConsoleTLSPort     = "CONSOLE_TLS_PORT"
    28  
    29  	// Constants for Secure middleware
    30  	ConsoleSecureAllowedHosts                    = "CONSOLE_SECURE_ALLOWED_HOSTS"
    31  	ConsoleSecureAllowedHostsAreRegex            = "CONSOLE_SECURE_ALLOWED_HOSTS_ARE_REGEX"
    32  	ConsoleSecureFrameDeny                       = "CONSOLE_SECURE_FRAME_DENY"
    33  	ConsoleSecureContentTypeNoSniff              = "CONSOLE_SECURE_CONTENT_TYPE_NO_SNIFF"
    34  	ConsoleSecureBrowserXSSFilter                = "CONSOLE_SECURE_BROWSER_XSS_FILTER"
    35  	ConsoleSecureContentSecurityPolicy           = "CONSOLE_SECURE_CONTENT_SECURITY_POLICY"
    36  	ConsoleSecureContentSecurityPolicyReportOnly = "CONSOLE_SECURE_CONTENT_SECURITY_POLICY_REPORT_ONLY"
    37  	ConsoleSecureHostsProxyHeaders               = "CONSOLE_SECURE_HOSTS_PROXY_HEADERS"
    38  	ConsoleSecureSTSSeconds                      = "CONSOLE_SECURE_STS_SECONDS"
    39  	ConsoleSecureSTSIncludeSubdomains            = "CONSOLE_SECURE_STS_INCLUDE_SUB_DOMAINS"
    40  	ConsoleSecureSTSPreload                      = "CONSOLE_SECURE_STS_PRELOAD"
    41  	ConsoleSecureTLSRedirect                     = "CONSOLE_SECURE_TLS_REDIRECT"
    42  	ConsoleSecureTLSHost                         = "CONSOLE_SECURE_TLS_HOST"
    43  	ConsoleSecureTLSTemporaryRedirect            = "CONSOLE_SECURE_TLS_TEMPORARY_REDIRECT"
    44  	ConsoleSecureForceSTSHeader                  = "CONSOLE_SECURE_FORCE_STS_HEADER"
    45  	ConsoleSecurePublicKey                       = "CONSOLE_SECURE_PUBLIC_KEY"
    46  	ConsoleSecureReferrerPolicy                  = "CONSOLE_SECURE_REFERRER_POLICY"
    47  	ConsoleSecureFeaturePolicy                   = "CONSOLE_SECURE_FEATURE_POLICY"
    48  	ConsoleSecureExpectCTHeader                  = "CONSOLE_SECURE_EXPECT_CT_HEADER"
    49  	PrometheusURL                                = "CONSOLE_PROMETHEUS_URL"
    50  	PrometheusAuthToken                          = "CONSOLE_PROMETHEUS_AUTH_TOKEN"
    51  	PrometheusJobID                              = "CONSOLE_PROMETHEUS_JOB_ID"
    52  	PrometheusExtraLabels                        = "CONSOLE_PROMETHEUS_EXTRA_LABELS"
    53  	ConsoleLogQueryURL                           = "CONSOLE_LOG_QUERY_URL"
    54  	ConsoleLogQueryAuthToken                     = "CONSOLE_LOG_QUERY_AUTH_TOKEN"
    55  	ConsoleMaxConcurrentUploads                  = "CONSOLE_MAX_CONCURRENT_UPLOADS"
    56  	ConsoleMaxConcurrentDownloads                = "CONSOLE_MAX_CONCURRENT_DOWNLOADS"
    57  	ConsoleDevMode                               = "CONSOLE_DEV_MODE"
    58  	ConsoleAnimatedLogin                         = "CONSOLE_ANIMATED_LOGIN"
    59  	LogSearchQueryAuthToken                      = "LOGSEARCH_QUERY_AUTH_TOKEN"
    60  	SlashSeparator                               = "/"
    61  	LocalAddress                                 = "127.0.0.1"
    62  )