This commit is contained in:
swrup 2025-11-11 02:07:51 +01:00
parent aa2ff7b2f0
commit 2f3113f55d
11742 changed files with 1223940 additions and 0 deletions

View file

@ -0,0 +1,42 @@
open Mirage
(* Network configuration *)
let stack = generic_stackv4 default_network
(* Certificates *)
let secrets = generic_kv_ro "../../../certificates"
(* Dependencies *)
let server =
let packages =
[ package "tls-mirage"
; package ~pin:"git+https://github.com/anmonteiro/httpun#master" "httpun"
; package
~pin:"git+https://github.com/anmonteiro/httpun#master"
"httpun-lwt"
; package
~pin:"git+https://github.com/anmonteiro/httpun#master"
"httpun-mirage"
; package ~pin:"file://../../.." "h2"
; package ~pin:"file://../../.." "h2-lwt"
; package ~pin:"file://../../.." "h2-mirage"
]
in
foreign
~packages
"Unikernel.Make"
(random @-> stackv4 @-> kv_ro @-> console @-> pclock @-> job)
let () =
register
"alpn_unikernel"
[ server
$ default_random
$ stack
$ secrets
$ default_console
$ default_posix_clock
]