summaryrefslogtreecommitdiffstats
path: root/tv/2configs/nginx
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2023-09-12 12:56:39 +0200
committertv <tv@krebsco.de>2023-09-13 16:23:38 +0200
commitfbd485cd86c7e9984819357398f912a2d5510845 (patch)
treee1a9e2eedacfa25018d6b0eef3f4628a4d503ebc /tv/2configs/nginx
parent5370e0485788224126861e076110ac705013d2de (diff)
tv: emigrate
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";
-}