trunk-rs / trunk

Build, bundle & ship your Rust WASM application to the web.
https://trunkrs.dev/
Apache License 2.0
3.53k stars 255 forks source link

ssl certs with trunk #550

Closed Omicronlawful closed 1 year ago

Omicronlawful commented 1 year ago

i want to use mkcert for local development. Could you add an option to send the certs with it?

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] commented 1 year ago

This issue was closed because it has been stalled for 5 days with no activity.

rogusdev commented 1 year ago

The feature you are looking for exists but is undocumented: --proxy-insecure as a cli arg like:

trunk serve --proxy-backend=https://localhost:3001/ --proxy-insecure --proxy-rewrite=/api/

The docs need updating at https://trunkrs.dev/configuration/#proxy-cli-flags and I have asked how to do that.

This was added in https://github.com/thedodd/trunk/commit/41e4a6089dbc3fc73b9c5b0f0d48565f8b199b49

rogusdev commented 1 year ago

https://github.com/thedodd/trunk/pull/611 PR for docs