diff --git a/bio-char-lt.ngx.ts b/bio-char-lt.ngx.ts index d88ae22..1e3a652 100644 --- a/bio-char-lt.ngx.ts +++ b/bio-char-lt.ngx.ts @@ -2,7 +2,7 @@ import ngx from "https://char.lt/ngx/ngx.ts?v=1"; -export const site = ngx("server", [ +export const config = ngx("server", [ [ "server_name bio.char.lt", ...ngx.listen(), @@ -11,6 +11,8 @@ export const site = ngx("server", [ ngx("location /", ["root /srv/http/bio.char.lt/public"]), ]); +export const path = "/etc/nginx/http.d/bio-char-lt.conf"; + if (import.meta.main) { - site.write("/etc/nginx/http.d/bio-char-lt.conf"); + config.write(path); }