update ngx path variable

main
Charlotte Som 2023-12-04 17:22:03 +00:00
parent 846fffac03
commit 4915dd2be6
1 changed files with 2 additions and 2 deletions

View File

@ -11,8 +11,8 @@ export const config = ngx("server", [
ngx("location /", ["root /srv/http/bio.char.lt/public"]),
]);
export const path = "/etc/nginx/http.d/bio-char-lt.conf";
export const path = "bio-char-lt.conf";
if (import.meta.main) {
config.write(path);
config.write(`/etc/nginx/http.d/${path}`);
}