proxigen

1.0.1 • Public • Published

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'

Readme

Keywords

none

Package Sidebar

Install

npm i proxigen

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

3.63 kB

Total Files

3

Last publish

Collaborators

  • iamfat