Add ngx script for nginx config
parent
932164294e
commit
316d7b52d8
|
@ -0,0 +1,3 @@
|
||||||
|
[submodule "ngx"]
|
||||||
|
path = ngx
|
||||||
|
url = git@lavender.software:char/ngx.git
|
|
@ -0,0 +1,12 @@
|
||||||
|
#!/usr/bin/env -S deno run -A
|
||||||
|
|
||||||
|
import ngx from "https://char.lt/ngx/ngx.ts?v=1";
|
||||||
|
|
||||||
|
ngx("server", [
|
||||||
|
[
|
||||||
|
"server_name bio.char.lt",
|
||||||
|
...ngx.listen(),
|
||||||
|
...ngx.letsEncrypt("bio.char.lt"),
|
||||||
|
],
|
||||||
|
ngx("location /", ["root /srv/http/bio.char.lt/public"]),
|
||||||
|
]).write("/etc/nginx/http.d/bio-char-lt.conf");
|
Loading…
Reference in New Issue