proxy import nginx reads nginx configuration on your machine and writes Domain documents plus a report. It never contacts a server, never runs nginx and never applies anything.
nginx.conf, or every *.conf in it). Without --out the documents go to stdout and the report to stderr. With --out you get one <host>.yaml per host, import-report.md and import-report.json. Existing files are kept unless you pass --force.
What is converted
A redirect only host has no backend in nginx, but a Domain needs an app: pass
--app HOST=APP.
Read the report before applying
Every directive gets a row with its file, line, status, target and note. Rows hold directive names only, never values. If a host had access control that could not be imported, the report warns and the document starts with a warning comment: set the protection on the domain before you send traffic to it.Secrets and safety
- Certificate, key and password files are never opened. Only files matched by
includeare read. - Headers that look like credentials are not written. Give the value to the app as a secret.
- Includes stay inside the directory of the file you passed. Symlinks are not followed, so for a
sites-enabledlayout includesites-availableor copy the files. - Limits come from the environment:
APP_PROXY_IMPORT_MAX_BYTES(4194304),APP_PROXY_IMPORT_MAX_FILES(200),APP_PROXY_IMPORT_MAX_INCLUDE_DEPTH(10),APP_PROXY_IMPORT_MAX_BLOCK_DEPTH(32).
levelrail-cli stack plan NAME -f ./iac. If you depend on directives with no equivalent, run nginx as an ordinary app behind the ingress.