
ArangoDB is an open-source NoSQL database used in modern web applications, which supports models for document, graph, and key-value data. It's managed through a web or command-line interface and uses a declarative query language called AQL (ArangoDB Query Language).
Import repository key.
Update the sources list.
Install ArangoDB.
Verify the installation was successful.
Start ArangoDB.
Monitor the database with status.
Hardening will make blocking unauthorized use of endpoints more strict.
To edit database server settings, navigate and edit the arangod.conf file.
Under the [server] section, append the following text if it's not already there.
Under the [javascript] section, append the following text.
Restart the database to take effect.
Verify changes were successful by checking for errors in status.
To access ArangoDB through the command line, use the arangosh command.
This is meant for development or internal network purposes only. For production applications, continue down the doc for configuring the server through a reverse proxy.
By default, the ArangoDB web interface is only available locally.
To make the server available on the internet, navigate and edit the arangod.conf file.
Under the [server] section, replace the endpoint URL with your server's IP. For example:
Restart the server.
Verify changes were successful by checking for errors in status.
Navigate to your server's IP address at port 8529 in a web browser.
For a production application, it is better to host the database locally and access it through a reverse proxy. This makes it easier to manage multiple services, enforce rate-limiting, SSL, and IP-filtering.
Install Nginx.
Delete default Nginx server block.
Create a new Nginx server block.
Add the following text to the file.
Adjust the rate-limiting rates and zones according to your application and needs.
Restart Nginx for changes to take effect.
Navigate to your server's IP address in a web browser.
You should see the ArangoDB web interface login menu. As a test, try refreshing the page in rapid succession. Soon, the webpage should respond with a 503 HTTP error, which would indicate a successful rate-limited request.
For more information, refer to the official ArangoDB documentation.
0 Comments
Be the first to comment and share your perspective with the community.