Aller au contenu
EN English versionDemander une démo

Read nginx configuration from the GitOps repository

For an organisation administrator. Procedure connector.web_server.nginx, version 1, reviewed 2026-10-16 against the vendor’s own pages. It applies to the connector type web_server/nginx.

It ships with the platform. In the console it opens with How to set this up, beside the form that adds the connector and on the connector’s settings.

Addresses are written <api_url>, <public_url> and <org> here: the console shows the same text with your deployment’s own.

  • The configuration lives in a GitOps repository; the platform reads the files from there, not from the live server.
  • Changes are proposed as pull requests (propose_nginx_config). Validation (nginx -t) runs in the runner on the agent’s workspace; files that exist only on the server, such as certificates, are reported as missing: the report is shown, not hidden.

Create a token (a fine-grained personal access token on the repository, or a GitHub App’s) that can read contents and open pull requests there.

Contents read, and pull requests write on that repository. Nothing reaches the server: the release process applies what is merged.

  1. Administration, Connectors, Declare: capability Web server, type nginx.
  2. repo: owner/repo. ref, root if your layout differs. api_url for a self-hosted forge.
  3. token: in the password field.

Press Test, then call list_nginx_files and read_nginx_file.

  • 404 on the repository or the root: wrong repo, ref or root, or the token cannot see it.
  • 401 or 403: the token is wrong, expired or too narrow.
  • nginx -t reports a missing file: a certificate or an include that exists only on the server.
Field What to put in it
api_url the forge’s API, https://api.github.com by default
ref the branch or commit read, main by default
repo owner/repo of the GitOps repository
root the directory that holds the configuration, nginx by default
token a token that can read, and open pull requests on, the repository, typed once

Hosts the platform must be allowed to reach:

  • api.github.com