Skip to content

Commit 347732a

Browse files
authored
build: Create yarn https:proxy command (#78774)
This creates a new command `yarn https-proxy` to help people use their dev servers over https. The json file content was generated using `caddy adapt` with this config as input: ``` :8003 reverse_proxy localhost:8000 tls ./config/localhost.pem ./config/localhost-key.pem ``` Relates to getsentry/sentry-docs#11520
1 parent 6e3a1e1 commit 347732a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@
245245
"build-js-loader": "ts-node scripts/build-js-loader.ts",
246246
"validate-api-examples": "yarn --cwd api-docs openapi-examples-validator ../tests/apidocs/openapi-derefed.json --no-additional-properties",
247247
"mkcert-localhost": "mkcert -key-file config/localhost-key.pem -cert-file config/localhost.pem localhost 127.0.0.1 dev.getsentry.net *.dev.getsentry.net && mkcert -install",
248+
"https-proxy": "caddy run --config - <<< '{\"apps\":{\"http\":{\"servers\":{\"srv0\":{\"listen\":[\":8003\"],\"routes\":[{\"handle\":[{\"handler\":\"reverse_proxy\",\"upstreams\":[{\"dial\":\"localhost:8000\"}]}]}],\"tls_connection_policies\":[{\"certificate_selection\":{\"any_tag\":[\"cert0\"]}}]}}},\"tls\":{\"certificates\":{\"load_files\":[{\"certificate\":\"./config/localhost.pem\",\"key\":\"./config/localhost-key.pem\",\"tags\":[\"cert0\"]}]}}}}'",
248249
"extract-ios-device-names": "ts-node scripts/extract-ios-device-names.ts"
249250
},
250251
"browserslist": {

0 commit comments

Comments
 (0)