summaryrefslogtreecommitdiffstats
path: root/tv/2configs/nginx
diff options
context:
space:
mode:
Diffstat (limited to 'tv/2configs/nginx')
-rw-r--r--tv/2configs/nginx/default.nix22
l---------tv/2configs/nginx/lib1
-rw-r--r--tv/2configs/nginx/public_html.nix18
3 files changed, 0 insertions, 41 deletions
diff --git a/tv/2configs/nginx/default.nix b/tv/2configs/nginx/default.nix
deleted file mode 100644
index 6844df99b..000000000
--- a/tv/2configs/nginx/default.nix
+++ /dev/null
@@ -1,22 +0,0 @@
-with import ./lib;
-{ config, ... }: {
- services.nginx = {
- enableReload = true;
-
- recommendedGzipSettings = true;
- recommendedOptimisation = true;
- recommendedTlsSettings = true;
-
- virtualHosts.${toJSON ""} = {
- default = true;
- extraConfig = ''
- error_page 400 =444 /;
- return 444;
- '';
- rejectSSL = true;
- };
- };
- tv.iptables = {
- input-retiolum-accept-tcp = singleton "http";
- };
-}
diff --git a/tv/2configs/nginx/lib b/tv/2configs/nginx/lib
deleted file mode 120000
index dc598c56d..000000000
--- a/tv/2configs/nginx/lib
+++ /dev/null
@@ -1 +0,0 @@
-../lib \ No newline at end of file
diff --git a/tv/2configs/nginx/public_html.nix b/tv/2configs/nginx/public_html.nix
deleted file mode 100644
index c2403cd8d..000000000
--- a/tv/2configs/nginx/public_html.nix
+++ /dev/null
@@ -1,18 +0,0 @@
-with import ./lib;
-{ config, ... }: {
- services.nginx = {
- enable = true;
- virtualHosts.default = {
- serverAliases = [
- "localhost"
- "${config.krebs.build.host.name}"
- "${config.krebs.build.host.name}.hkw"
- "${config.krebs.build.host.name}.r"
- ];
- locations."~ ^/~([a-z]+)(?:/(.*))?\$" = {
- alias = "/srv/$1/public_html/$2";
- };
- };
- };
- tv.iptables.input-internet-accept-tcp = singleton "http";
-}