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

19 lines
410 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 = "/etc/nginx/http.d/bio-char-lt.conf";
if (import.meta.main) {
config.write(path);
}