npm.io
1.0.1 • Published 5 years agoCLI

proxigen

Licence
MIT
Version
1.0.1
Deps
4
Size
4 kB
Vulns
0
Weekly
0

ProxiGen - a proxy client for host remapping powered by RedBird

Usage

yarn global add proxigen
proxigen start

Configuration

# ~/.proxigenrc in YAML format
server:
  port: 80
mappings:
  - from: tank.giot.in
    to: http://localhost:3000
SSL
  1. Generate certifications with certbot and openssl
    # use certbot to generate pems firstly.
    # TODO: cerbot example
    
    # since redbird used by proxigen does not support privkey.pem directly, we need to convert it into rsa key
    openssl rsa -in privkey.pem -out privkey.rsa.pem
  2. Edit ~/.proxigenrc file
    server:
      ssl:
        port: 443
    mappings:
      - from: tank.giot.in/gsen
        to: http://localhost:3000
        options:
          ssl:
            key: '/your/path/to/privkey.rsa.pem'
            cert: '/your/path/to/fullchain.pem'