File
Blob: samples/python-benchmark/config.capnp
| 1 | using Workerd = import "/workerd/workerd.capnp"; |
| 2 | |
| 3 | const config :Workerd.Config = ( |
| 4 | services = [ |
| 5 | (name = "main", worker = .mainWorker), |
| 6 | ], |
| 7 | |
| 8 | sockets = [ |
| 9 | # Serve HTTP on port 8080. |
| 10 | ( name = "http", |
| 11 | address = "*:8080", |
| 12 | http = (), |
| 13 | service = "main" |
| 14 | ), |
| 15 | ], |
| 16 | ); |
| 17 | |
| 18 | const mainWorker :Workerd.Worker = ( |
| 19 | modules = [ |
| 20 | (name = "worker.py", pythonModule = embed "./worker.py"), |
| 21 | ], |
| 22 | compatibilityDate = "2025-11-15", |
| 23 | compatibilityFlags = ["python_workers"], |
| 24 | ); |