From 77a5af4b6b00999bf842040afc985fc9dc117c90 Mon Sep 17 00:00:00 2001 From: videogame hacker Date: Thu, 16 Nov 2023 04:37:56 +0000 Subject: [PATCH] Actually we should export the path too --- bio-char-lt.ngx.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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); }