nginx

package
v2.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2026 License: Apache-2.0 Imports: 15 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package nginx writes the nginx configuration of a gateway, which picks the route of each request as the Envoy configuration of the same input does and sends the request to the same service, and the script beside it, which reads what nginx's own directives cannot: the name of each header of a request.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(in generator.Input) ([]generator.File, error)

Generate returns the whole nginx.conf as the configuration and the script it loads, proxyfile.js. Its error is a generator.Refused that names each value whose nginx form is longer than nginx reads, by its key; any other error means a route goes to a service that is not declared or has no port of the kind the route needs, a pattern holds what the pattern writer does not know, a rate limit has no rate nginx writes (rateOf), which nginx's declaration refuses first, or a token the file writes is longer than nginx reads although no value was refused: a bug in proxyfile.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL