21 lines
525 B
TypeScript
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());
|