mirror of
https://github.com/vector-im/element-call.git
synced 2026-09-22 22:29:30 +00:00
Allow overriding the dev server TLS certificate via environment
EC_DEV_TLS_KEY / EC_DEV_TLS_CERT point vite at a key pair the developer's browser already trusts, instead of the checked-in Element Call Dev CA. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5.1
parent
5c6fa7c864
commit
302f6f7efa
+8
-2
@@ -125,8 +125,14 @@ export default ({
|
||||
port: 3000,
|
||||
fs: { allow },
|
||||
https: {
|
||||
key: fs.readFileSync("./backend/dev_tls_m.localhost.key"),
|
||||
cert: fs.readFileSync("./backend/dev_tls_m.localhost.crt"),
|
||||
// EC_DEV_TLS_KEY / EC_DEV_TLS_CERT let a developer serve a certificate
|
||||
// their browser already trusts (e.g. one signed by a local mkcert root).
|
||||
key: fs.readFileSync(
|
||||
process.env.EC_DEV_TLS_KEY ?? "./backend/dev_tls_m.localhost.key",
|
||||
),
|
||||
cert: fs.readFileSync(
|
||||
process.env.EC_DEV_TLS_CERT ?? "./backend/dev_tls_m.localhost.crt",
|
||||
),
|
||||
},
|
||||
},
|
||||
worker: {
|
||||
|
||||
Reference in New Issue
Block a user