cameronhunter/local-ssl-proxy
소개
자체 서명 인증서를 사용하는 간단한 SSL HTTP 프록시입니다. 로컬 개발 전용입니다.
시스템 및 인프라측정된 스타 증가
- in 24h
- -1
- in 7 days
- -1
- in 15 days
- -1
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Originallocal-ssl-proxy
Simple SSL HTTP proxy using a self-signed certificate. Intended for local development only.
Quick Start
The package supports immediate use via npx or you can install it
globally.
Use via npx:
npx local-ssl-proxy
Install globally:
npm install -g local-ssl-proxy
Usage
To start a proxy from port 9001 to 9000 run:
local-ssl-proxy --source 9001 --target 9000
Start your web server on the target port (9000 in the example) and navigate to https://localhost:<source-port> (https://localhost:9001 in the example). You'll get a warning because the certificate is self-signed, this is safe to ignore during development.
Using a dynamic DNS provider such as noip or DynDNS or a static IP (if you have one) you can open a port in your firewall to allow external sites to call into your web server. This is great for developing applications using OAuth without having to deploy externally.
Advanced
You can also pass a configuration file, this helps share setups with team members. These can contain multiple proxies that local-ssl-proxy will open concurrently.
Example config:
{
"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"
}
}
And run the proxy with the configuration file:
local-ssl-proxy --config config.json
Run SSL proxy with a self-signed trusted certificate
You can use it to host any domain, just change localhost to anything you like, wildcards are also supported.
- Install mkcert (
choco install mkcert/brew install mkcert) - Run
mkcert -install - Run
mkcert localhost - Run
local-ssl-proxy --key localhost-key.pem --cert localhost.pem --source 9001 --target 9000
- You're all set! Just go to https://localhost:9001 and see your project working!
관련 프로젝트 살펴보기
불러오는 중…