This section will cover the nginx configuration features Depfloy provides to keep your projects running smoothly.

Nginx Configuration

You can configure the nginx configuration of your projects by navigating to the "Edit Nginx Template" section in the project summary page at https://app.depfloy.com/projects/<projectID>/summary.

This section allows you to adjust the nginx configuration for your project. We don't recommend changing the SSL, www redirect configuration and proxy settings. Depfloy automatically provides these for you. You can use this area to add an additional parameter to your project.

Nginx Configuration

For example, if you want to add a custom header to your project, you can add the following code to the nginx configuration:

add_header X-Custom-Header "Custom Value";

You can also add a custom error page to your project by adding the following code to the nginx configuration:

error_page 404 /404.html;

Was this page helpful?