Skip to content

Commit

Permalink
fix: don't do cursed stuff here yet
Browse files Browse the repository at this point in the history
basically reverts 64a840c
  • Loading branch information
soopyc committed Sep 10, 2023
1 parent 64a840c commit 522d47e
Showing 1 changed file with 4 additions and 19 deletions.
23 changes: 4 additions & 19 deletions global/utils.nix
Original file line number Diff line number Diff line change
@@ -1,32 +1,17 @@
# see /docs/utils.md for a usage guide
{
inputs,
system,
# inputs,
# system,
...
}: rec {
mkVhost = {extraConfig ? "", ...} @ opts:
mkVhost = {...} @ opts:
{
# ideally mkOverride/mkDefault would be used, but i have 0 idea how it works.
forceSSL = true;
useACMEHost = "global.c.soopy.moe";
kTLS = true;
}
// opts
// {
# we do some funny things here
locations =
opts.locations
// {
"/_cgi/error/" = {alias = "${inputs.mystia.packages.${system}.staticly}/nginx_error_pages/";};
};
extraConfig =
''
error_page 503 /_cgi/error/503.html;
error_page 502 /_cgi/error/502.html;
error_page 404 /_cgi/error/404.html;
''
+ extraConfig;
};
// opts;

mkSimpleProxy = {
port,
Expand Down

0 comments on commit 522d47e

Please sign in to comment.