Skip to content
File

Blob: src/workerd/api/tests/starttls-nodejs-test.wd-test

822 bytes
1# Copyright (c) 2017-2024 Cloudflare, Inc.
2# Licensed under the Apache 2.0 license found in the LICENSE file or at:
3# https://opensource.org/licenses/Apache-2.0
4 
5using Workerd = import "/workerd/workerd.capnp";
6 
7const config :Workerd.Config = (
8 services = [
9 (
10 name = "main",
11 worker = (
12 modules = [
13 (name = "worker.js", esModule = embed "starttls-nodejs-test.js")
14 ],
15 compatibilityFlags = ["nodejs_compat", "experimental"],
16 bindings = [
17 (name = "STARTTLS_CA_PORT", fromEnvironment = "STARTTLS_CA_PORT"),
18 ],
19 )
20 ),
21 ( name = "internet",
22 network = (
23 allow = ["private"],
24 tlsOptions = (
25 trustedCertificates = [
26 embed "starttls-server.pem",
27 ],
28 ),
29 )
30 ),
31 ],
32);