infra/ngx/zplc.ts
2025-03-17 18:12:14 +00:00

21 lines
525 B
TypeScript

import ngx from "jsr:@char/ngx@0.2";
export const config = ngx("", [
ngx("server", [
[
ngx.serverName("zplc.cerulea.blue"),
ngx.listen(),
"listen 80",
"listen [::]:80",
ngx.letsEncrypt("zplc.cerulea.blue"),
],
ngx("location /", [
"proxy_pass http://127.0.0.1:2485",
"proxy_http_version 1.1",
"proxy_set_header Host $host",
"proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for",
]),
]),
]);
if (import.meta.main) console.log(config.build());