bio.char.lt/bio-char-lt.ngx.ts

17 lines
377 B
TypeScript

#!/usr/bin/env -S deno run -A
import ngx from "https://char.lt/ngx/ngx.ts?v=1";
export const site = ngx("server", [
[
"server_name bio.char.lt",
...ngx.listen(),
...ngx.letsEncrypt("bio.char.lt"),
],
ngx("location /", ["root /srv/http/bio.char.lt/public"]),
]);
if (import.meta.main) {
site.write("/etc/nginx/http.d/bio-char-lt.conf");
}