nginx

package
v0.0.0-...-37b7bf9 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConfig

func NewConfig(balancer *balancerv1alpha1.Balancer) string

NewConfig generates the `nginx.conf` with the given Balancer instance. Example: ===================== nginx.conf =====================

events {
    worker_connections 1024;
}
stream {
    server {
        listen 80 tcp;
        proxy_pass upstream_http;
    }
    upstream upstream_http {
        server example-balancer-v1-backend:80 weight=20;
        server example-balancer-v2-backend:80 weight=80;
    }
}

======================================================

Types

This section is empty.

Jump to

Keyboard shortcuts

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