1
0
Fork 0

Improve mathechor.de deploy

This commit is contained in:
Malte 2023-03-09 14:34:08 +01:00
parent 3cde3709da
commit e65c2b3e57
3 changed files with 7 additions and 6 deletions

View file

@ -419,11 +419,11 @@
"nixpkgs": []
},
"locked": {
"lastModified": 1677874343,
"narHash": "sha256-54yDdis5DAWnpX9/UXKlsoI3on+vR8YbFFbApL7pMg8=",
"lastModified": 1678368437,
"narHash": "sha256-xK1OBcXSv8XjeifNQ7ZEI6a8HwtnSrGTO4vIWlspr60=",
"ref": "refs/heads/main",
"rev": "130ef074ddf1547be26e9914c4f9dc5b3f70a2eb",
"revCount": 193,
"rev": "99cedc438df0474c7217aee01049e64a1edb3a1e",
"revCount": 194,
"type": "git",
"url": "ssh://git@hera.m-0.eu/config-secrets"
},

View file

@ -30,5 +30,6 @@ in {
"haskell-taskwarrior.run" = mkJob "haskell-taskwarrior";
"nix-output-monitor.run" = mkJob "nix-output-monitor";
"hochzeitsseite.run" = mkJob "hochzeitsseite";
"mathechor.de.run" = mkJob "mathechor.de";
};
}

View file

@ -13,7 +13,7 @@
enableACME = true;
locations = {
"/" = {
root = "/var/www/mathechor/public";
root = "/var/cache/gc-links/mathechor.de/public";
index = "index.html";
extraConfig = "location ~* .(otf)$ {add_header Access-Control-Allow-Origin *;}";
};
@ -24,7 +24,7 @@
enableACME = true;
locations = {
"/" = {
root = "/var/www/mathechor/intern";
root = "/var/cache/gc-links/mathechor.de/intern";
index = "index.html";
extraConfig = ''
if ($query_string ~ "pw=([A-Za-z]*)") {