Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 20 for globalIsTLS (0.18 sec)

  1. cmd/common-main.go

    		// This will save users from providing a certificate with IP or FQDN SAN that points to the local host.
    		os.Setenv("CONSOLE_MINIO_SERVER", fmt.Sprintf("%s://127.0.0.1:%s", getURLScheme(globalIsTLS), globalMinioPort))
    	}
    	if value := env.Get(config.EnvMinIOLogQueryURL, ""); value != "" {
    		os.Setenv("CONSOLE_LOG_QUERY_URL", value)
    		if value := env.Get(config.EnvMinIOLogQueryAuthToken, ""); value != "" {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat May 04 00:17:57 GMT 2024
    - 35.8K bytes
    - Viewed (2)
  2. cmd/handler-utils.go

    			success = false
    			if err != nil && !errors.Is(err, context.Canceled) {
    				replLogIf(GlobalContext, err)
    			}
    		},
    	})
    
    	r.URL.Scheme = "http"
    	if globalIsTLS {
    		r.URL.Scheme = "https"
    	}
    
    	r.URL.Host = ep.Host
    	f.ServeHTTP(w, r)
    	return
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 15.5K bytes
    - Viewed (3)
  3. cmd/globals.go

    	globalAuthNPlugin *idplugin.AuthNPlugin
    
    	// CA root certificates, a nil value means system certs pool will be used
    	globalRootCAs *x509.CertPool
    
    	// IsSSL indicates if the server is configured with SSL.
    	globalIsTLS bool
    
    	globalTLSCerts *certs.Manager
    
    	globalHTTPServer        *xhttp.Server
    	globalTCPOptions        xhttp.TCPOptions
    	globalHTTPServerErrorCh = make(chan error)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 24 04:08:47 GMT 2024
    - 16.5K bytes
    - Viewed (0)
  4. cmd/notification.go

    	length := len(sys.allPeerClients)
    	if length == 0 {
    		// For single node erasure setup.
    		return nil
    	}
    	results := make([]madmin.NetperfNodeResult, length)
    
    	scheme := "http"
    	if globalIsTLS {
    		scheme = "https"
    	}
    
    	var wg sync.WaitGroup
    	for index := range sys.peerClients {
    		if sys.peerClients[index] == nil {
    			continue
    		}
    		wg.Add(1)
    		go func(index int) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 12 18:13:36 GMT 2024
    - 44.5K bytes
    - Viewed (0)
  5. cmd/peer-rest-client.go

    	gridConn func() *grid.Connection
    }
    
    // Returns a peer rest client.
    func newPeerRESTClient(peer *xnet.Host, gridHost string) *peerRESTClient {
    	scheme := "http"
    	if globalIsTLS {
    		scheme = "https"
    	}
    
    	serverURL := &url.URL{
    		Scheme: scheme,
    		Host:   peer.String(),
    		Path:   peerRESTPath,
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 25.8K bytes
    - Viewed (0)
  6. cmd/object-handlers_test.go

    	credentials auth.Credentials, t *testing.T,
    ) {
    	// Set SSL to on to do encryption tests
    	globalIsTLS = true
    	defer func() { globalIsTLS = false }()
    
    	var (
    		oneMiB        int64 = 1024 * 1024
    		key32Bytes          = generateBytesData(32 * humanize.Byte)
    		key32BytesMd5       = md5.Sum(key32Bytes)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 160K bytes
    - Viewed (0)
  7. cmd/api-response.go

    	// unit tests do not have host set.
    	if r.Host == "" {
    		return path.Clean(r.URL.Path)
    	}
    	proto := handlers.GetSourceScheme(r)
    	if proto == "" {
    		proto = getURLScheme(globalIsTLS)
    	}
    	u := &url.URL{
    		Host:   r.Host,
    		Path:   path.Join(SlashSeparator, bucket, object),
    		Scheme: proto,
    	}
    	// If domain is set then we need to use bucket DNS style.
    	for _, domain := range domains {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 33.3K bytes
    - Viewed (2)
  8. cmd/admin-handlers.go

    		case <-healthCtx.Done():
    			return
    		}
    	}
    }
    
    func getTLSInfo() madmin.TLSInfo {
    	tlsInfo := madmin.TLSInfo{
    		TLSEnabled: globalIsTLS,
    		Certs:      []madmin.TLSCert{},
    	}
    
    	if globalIsTLS {
    		for _, c := range globalPublicCerts {
    			check := xxh3.Hash(c.RawIssuer)
    			check ^= xxh3.Hash(c.RawSubjectPublicKeyInfo)
    			// We XOR, so order doesn't matter.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 29 17:39:04 GMT 2024
    - 97.8K bytes
    - Viewed (2)
  9. cmd/endpoint.go

    				}
    				return u.String()
    			}
    		}
    	}
    	host := globalMinioHost
    	if host == "" {
    		host = sortIPs(localIP4.ToSlice())[0]
    	}
    	return fmt.Sprintf("%s://%s", getURLScheme(globalIsTLS), net.JoinHostPort(host, globalMinioPort))
    }
    
    // LocalDisksPaths returns the disk paths of the local disks
    func (l EndpointServerPools) LocalDisksPaths() []string {
    	var disks []string
    	for _, ep := range l {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 21 11:43:18 GMT 2024
    - 34.1K bytes
    - Viewed (0)
  10. cmd/object-handlers.go

    	// and hence expected to have same credentials.
    	core, err := miniogo.NewCore(host, &miniogo.Options{
    		Creds:     credentials.NewStaticV4(cred.AccessKey, cred.SecretKey, ""),
    		Secure:    globalIsTLS,
    		Transport: getRemoteInstanceTransport(),
    	})
    	if err != nil {
    		return nil, err
    	}
    	core.SetAppInfo("minio-federated", ReleaseTag)
    	return core, nil
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu May 02 20:15:54 GMT 2024
    - 125.2K bytes
    - Viewed (0)
Back to top