Compare commits
3 Commits
08c0e42639
...
ac18512e25
Author | SHA1 | Date |
---|---|---|
Jaculabilis | ac18512e25 | |
Jaculabilis | e589b56f1b | |
Jaculabilis | 9755c7f86d |
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue