1
1
Fork 0

Compare commits

...

3 Commits

Author SHA1 Message Date
Jaculabilis ac18512e25 Move inquisitor to nebula 2023-04-22 23:19:23 +00:00
Jaculabilis e589b56f1b Update inquisitor 2023-04-22 23:19:23 +00:00
Jaculabilis 9755c7f86d Add newtab vhost 2023-04-22 23:19:23 +00:00
2 changed files with 11 additions and 3 deletions

View File

@ -83,6 +83,14 @@
"www.ktvb.site" = static-site "www.ktvb.site"; "www.ktvb.site" = static-site "www.ktvb.site";
"mirror.alogoulogoi.com" = static-site "mirror.alogoulogoi.com"; "mirror.alogoulogoi.com" = static-site "mirror.alogoulogoi.com";
"www.alogoulogoi.com" = static-site "www"; "www.alogoulogoi.com" = static-site "www";
newtab = {
listen = [ { addr = "10.22.20.1"; port = 80; } ];
root = "/srv/newtab/";
extraConfig = ''
access_log /var/log/nginx/access_newtab.log;
index index.html;
'';
};
# Deny all other subdomains # Deny all other subdomains
"alogoulogoi.com" = { "alogoulogoi.com" = {
default = true; default = true;

View File

@ -5,8 +5,8 @@ let
inquisitorSource = pkgs.fetchFromGitHub { inquisitorSource = pkgs.fetchFromGitHub {
owner = "Jaculabilis"; owner = "Jaculabilis";
repo = "Inquisitor"; repo = "Inquisitor";
rev = "dd3a8016d3148681886c9a2bba465d5eab85a0ac"; rev = "addcb4f1a56c878b58f2e1c38dfd485761b31306";
sha256 = "0p9yyl2b043vnla4i3pa07i394jlwiw6aj9p7s7njavdqbja639d"; sha256 = "0jjl92nf1y40acdly1kls0mppcadvmgbfr6qwczxni1f1zphw3as";
}; };
inquisitor = pkgs.callPackage inquisitorSource { inherit pkgs; }; inquisitor = pkgs.callPackage inquisitorSource { inherit pkgs; };
@ -116,7 +116,7 @@ in
# Set up nginx to reverse proxy from the beatific url to the inq server # Set up nginx to reverse proxy from the beatific url to the inq server
services.nginx.enable = true; services.nginx.enable = true;
services.nginx.virtualHosts.inquisitorHost = { services.nginx.virtualHosts.inquisitorHost = {
listen = [ { addr = "10.7.3.1"; port = 80; } ]; listen = [ { addr = "10.22.20.1"; port = 80; } ];
locations."/".extraConfig = '' locations."/".extraConfig = ''
access_log /var/log/nginx/access.inquisitor.log; access_log /var/log/nginx/access.inquisitor.log;
proxy_buffering off; proxy_buffering off;