Skip to content

Use upstream directives #2

Description

@Lordfirespeed

Any hostname that we proxy_pass to should be part of an upstream block.

Example (before)

server {
    server_name whatever.durhack.com;
    proxy_pass http://127.0.0.1:8080$request_uri;
}

Example (after)

upstream whatever-backend {
    server 127.0.0.1:8080;
}

server {
    server_name whatever.durhack.com;
    proxy_pass http://whatever-backend$request_uri;
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions