All Downloads are FREE. Search and download functionalities are using the official Maven repository.

p.http-server.5.0.0.source-code.httpservers-example.json Maven / Gradle / Ivy

The newest version!
{
	"httpservers": [
		{
			"enable": true,
			"description": "HTTP server",
			"port": 8080,
			// number of threads
			// not present or setting to 0 to let system determine.
			"threads": 0
		},{
			"enabled":true,  
            // valid values are:
			//   - DEFAULT or not set: System determines which provider to use.
            //   - JDK: use the JDK provider
            //   - OPENSSL: use the OpenSSL provider
            //   - OPENSSL_REFCNT: use OpenSSL-based implementation which does not
            //                     have finalizers and instead implements
            //                     ReferenceCounted.
			"provider": "DEFAULT"
			"description": "HTTPS server",
			"port": 8443,
			// number of threads
			// not present or setting to 0 to let system determine.
			"threads":0,
			// Type of the reverse proxy before this HTTP service. Current valid
            // values are
            //  - NONE: no reverse proxy
            //  - APACHE: Apache HTTP server as reverse proxy
            "reverseProxy": "NONE",
			"tls": {
				// allowed values:
              	//   none   - no client authentication;
                //   optional - client authentication is wanted;
                //   require - client authentication is needed
				"clientauth": "optional",
				// optional
				"protocols": ["TLSv1.2"],
				// optional
				"ciphersuites": [
					"TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256",
					"TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256",
					"TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256",
					"TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256"],
				"keystore": {
					"store": {
						// either "file" to specify the file name or
						// "value" to embed the base64-encoded content
						"file": "xipki/security/tlskeys/tls-server.p12"
					},
					"type": "pkcs12",
					"password": "1234",
					//"keyAlias": "abc",
					//"keyPassword": "1234"
				},
				// truststore is Required if client authentication is wanted or needed.
				"truststore": {
					"store": {
						// either "file" to specify the file name or
						// "value" to embed the base64-encoded content
						"file": "xipki/security/tlskeys/tls-ca-cert.p12"
					},
					"type": "pkcs12",
					"password": "1234",
				}
			}
		}
	]
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy