Configuring secure access to your Neo4j instance
Securing access to the Neo4j production server is a very important aspect of production deployment and by no means should it be accessible to all. Security comes at many levels with Neo4j.
In this recipe, you will learn how to secure access to the Neo4j server.
Getting ready
To get started with this recipe, install and run the Neo4j graph database server from the recipes of Chapter 1, Getting Started with Neo4j.
How to do it...
We will consider the following scenarios to explain this recipe:
- Your application code and Neo4j server are running on the same machine. This will mean that if the Neo4j server is run on
localhost
, it can be accessed by the application code, we need to, perform the following steps:- Add the following values to your
conf/neo4j-server.properties
line:conf/neo4j-server.propertiesorg.neo4j.server.webserver.address=127.0.0.1
- Restart the Neo4j server using
./bin/neo4j restart
.
- Add the following values to your
- Your application code and Neo4j server are running on...