Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RFC: ProxyRule #133

Open
leon3s opened this issue Feb 21, 2023 · 0 comments
Open

RFC: ProxyRule #133

leon3s opened this issue Feb 21, 2023 · 0 comments
Labels
ncdproxy Include change in `bin/ncdproxy` nproxy Include change in `bin/nproxy` question Further information is requested RFC Request for comment

Comments

@leon3s
Copy link
Member

leon3s commented Feb 21, 2023

Could be nice to brainstorm about how the resource ProxyRule should be defined.

We should be able to :

  • enable a hostname to target a cargo at specific location using http and https
  • redirect domain to another eg: www.domain.com -> domain.com
  • enable tcp / udp to target a specific cargo at specific port
  • pass extra http header ?

What else should we have ?

This is for now how look look like http and https to target a cargo at specific location:

  • Http

    Resources:
      - Name: resource-example
        Kind: ProxyRule
        Config:
          # List of cargo to watch updates
          Watch:
            - get-started@global
          Http:
            Domain: get-started.com
            Network: Public
            # Optional SSL config
            Ssl:
              Certificate: /path/to/cert
              CertificateKey: /path/to/cert
              DhParam: /path/to/dhparam
            # Http location
            Locations:
              - Path: /
                Target:
                  # The cargo to target for the location
                  Key: get-started@global
                  Port: 9000
  • Stream

    Resources:
        - Name: resource-example
          Kind: ProxyRule
          Config:
            # List of cargo to watch updates
            Watch:
              - get-started@global
            Stream:
              Network: Public
              # The protocol to use Tcp | Udp
              Protocol: Tcp
              Port: 8888
              # Optional SSL config
              Ssl:
                Certificate: /path/to/cert
                CertificateKey: /path/to/cert
                DhParam: /path/to/dhparam
              # Http location
              Target:
                # The cargo to target for the location
                Key: get-started@global
                Port: 9000
@leon3s leon3s added help wanted Extra attention is needed question Further information is requested labels Feb 21, 2023
@leon3s leon3s changed the title [RFC] ProxyRule RFC: ProxyRule Apr 3, 2023
@leon3s leon3s added RFC Request for comment and removed help wanted Extra attention is needed labels Apr 22, 2023
@leon3s leon3s added ncdproxy Include change in `bin/ncdproxy` nproxy Include change in `bin/nproxy` labels May 29, 2023
@leon3s leon3s pinned this issue May 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ncdproxy Include change in `bin/ncdproxy` nproxy Include change in `bin/nproxy` question Further information is requested RFC Request for comment
Projects
Status: Todo
Development

No branches or pull requests

1 participant