2024-12-11 11:59:50 +00:00
|
|
|
import ngx from "jsr:@char/ngx@0.1";
|
|
|
|
|
|
|
|
export const domain = "charlotte.partners"
|
|
|
|
|
|
|
|
export const config = ngx("server", [
|
|
|
|
[
|
|
|
|
`server_name ${domain}`,
|
|
|
|
...ngx.listen(),
|
|
|
|
...ngx.letsEncrypt(domain),
|
|
|
|
],
|
|
|
|
ngx("location /", [
|
|
|
|
"add_header Access-Control-Allow-Origin *",
|
|
|
|
"if_modified_since off",
|
|
|
|
"expires off",
|
|
|
|
"etag off",
|
|
|
|
`root /srv/www/${domain}`,
|
|
|
|
]),
|
2024-12-18 21:10:39 +00:00
|
|
|
ngx("location = /", [
|
|
|
|
"return 302 https://bsky.app/profile/charlotte.partners",
|
|
|
|
]),
|
2024-12-11 11:59:50 +00:00
|
|
|
]);
|
|
|
|
|
|
|
|
if (import.meta.main) console.log(config.build());
|