Our NGINX Boilerplate gives you a barebones environment for web services. NGINX is a lightweight and powerful webserver, which can be used to serve applications, as well as function as a reverse proxy, load balancer or HTTP cache.

Installation

To create a new project with nginx:

  • Log in to the Divio Cloud Control Panel. 
  • Select Add new Project, with the following options:
  • Creation: New
  • Python: No Python
  • Boilerplate: NGINX

Local Development

Setting up a project locally is very easy and fast, the only commands you need to run a project are:

  • divio project setup PROJECT_NAME 
  • divio project run PROJECT_NAME 

You can install the Divio CLI by downloading the Divio App.

Documentation

For further information on using NGINX please consult the official NGINX documentation.

Configuration and usage

Database

Divio Cloud provides a Postgres database for each project.

  • user: postgres 
  • database: db 
  • password: not required - use '' 
  • host: localhost 
  • port: 5432 

Additional components and commands

You can install additional components and run set-up commands in the environment by specifying them in the project's Dockerfile .

Did this answer your question?