ngx/test.ts

14 lines
279 B
TypeScript

import { letsEncrypt, listenv4v6, br, ng } from "./ngineer.ts";
const conf = ng("server", [
...listenv4v6(),
br,
"server_name mydomain.com",
br,
...letsEncrypt("mydomain.com"),
br,
ng("location /", ["root /srv/http/mydomain.com"]),
]);
console.log(conf.build());