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

19 lines
415 B
TypeScript

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