Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow disabling HTTP in Neo4j server
Before this change, HTTP connector had to be enabled in order to start the database. HTTPS and Bolt connectors were optional. This commit allows disabling the HTTP connector via: ``` dbms.connector.http.enabled=false ``` setting. It is also possible to disable both HTTP and HTTPS making the database only accessible via Bolt: ``` dbms.connector.http.enabled=false dbms.connector.https.enabled=false ``` Such configuration will make Neo4j not start an embedded Jetty server. Neo4j browser and REST endpoints will thus not be accessible on the usual addresses 'http://localhost:7474' and 'https://localhost:7473'. Disabling HTTP can be useful when operators need to enforce only secure connections. HTTP connector was mandatory because server bootstrappers were only able to instantiate Neo4j server, which created the database. So lifecycle of the core database was managed entirely by the server. This commit makes bootstrappers able to create core database separately from a server component. Based on connector configuration bootstrappers can decide if server component is needed or not. Dummy `DisabledNeoServer` is instantiated when HTTP and HTTPS are turned off. `AbstractNeoServer`, which is the base for all server implementations, is now able to start when either HTTP or HTTPS is enabled.
- Loading branch information
Showing
42 changed files
with
1,226 additions
and
633 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
66 changes: 0 additions & 66 deletions
66
...ity/kernel/src/main/java/org/neo4j/kernel/configuration/ServerConfigurationValidator.java
This file was deleted.
Oops, something went wrong.
47 changes: 0 additions & 47 deletions
47
...kernel/src/test/java/org/neo4j/kernel/configuration/ServerConfigurationValidatorTest.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.