cameronhunter / local-ssl-proxy

Simple SSL HTTP proxy using a self-signed certificate. Intended for local development only.
MIT License
690 stars 66 forks source link

Add key and cert and hostname params to example config in README.md #115

Closed aacic closed 1 year ago

aacic commented 1 year ago

As explained here:

https://github.com/cameronhunter/local-ssl-proxy/issues/113

Using a config.json per the instructions fails:

{
  "My proxy": {
    "source": 3001,
    "target": 3000
  },
  "Another proxy": {
    "source": 9999,
    "target": 9000
  }
}

I've updated the config in README.MD to:

{
  "My proxy": {
    "source": 3001,
    "target": 3000,
    "key": "localhost-key.pem",
    "cert": "localhost.pem",
    "hostname": "localhost"
  },
  "Another proxy": {
    "source": 9999,
    "target": 9000,
    "key": "localhost-key.pem",
    "cert": "localhost.pem",
    "hostname": "localhost"
  }
}
cameronhunter commented 1 year ago

Thanks for the contribution!