summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--2configs/lass/fastpoke-pages.nix121
1 files changed, 61 insertions, 60 deletions
diff --git a/2configs/lass/fastpoke-pages.nix b/2configs/lass/fastpoke-pages.nix
index 2fd9a86..4db4847 100644
--- a/2configs/lass/fastpoke-pages.nix
+++ b/2configs/lass/fastpoke-pages.nix
@@ -1,10 +1,37 @@
{ config, lib, pkgs, ... }:
with lib;
-{
+
+let
+ createStaticPage = domain:
+ {
+ tv.nginx.servers."${domain}" = {
+ server-names = [
+ "${domain}"
+ "www.${domain}"
+ ];
+ locations = [
+ (nameValuePair "/" ''
+ root /var/lib/http/${domain};
+ '')
+ ];
+ };
+ #networking.extraHosts = ''
+ # 10.243.206.102 ${domain}
+ #'';
+ };
+
+in {
imports = [
../../3modules/tv/nginx.nix
../../3modules/lass/iptables.nix
+ ] ++ map createStaticPage [
+ "habsys.de"
+ "pixelpocket.de"
+ "karlaskop.de"
+ "ubikmedia.de"
+ "apanowicz.de"
+ "aidsballs.de"
];
lass.iptables = {
@@ -15,72 +42,46 @@ with lib;
};
};
- #createStaticPage = domain:
- # {
- # irc.nginx.servers."${domain}" = {
- # server-names = [
- # "${domain}"
- # "www.${domain}"
- # ];
- # locations = [
- # (nameValuePair "/" ''
- # root /var/lib/http/${domain};
- # '')
- # ];
- # };
- # networking.extraHosts = ''
- # 10.243.206.102 ${domain}
- # '';
- # };
-
- #map createStaticPage [
- # "habsys.de"
- # "pixelpocket.de"
- # "karlaskop.de"
- # "ubikmedia.de"
- # "apanowicz.de"
- # "aidsballs.de"
- #];
tv.nginx = {
enable = true;
servers = {
- "habsys.de" = {
- server-names = [
- "habsys.de"
- "www.habsys.de"
- ];
- locations = [
- (nameValuePair "/" ''
- root /var/lib/http/habsys.de;
- '')
- ];
- };
+ #"habsys.de" = {
+ # server-names = [
+ # "habsys.de"
+ # "www.habsys.de"
+ # ];
+ # locations = [
+ # (nameValuePair "/" ''
+ # root /var/lib/http/habsys.de;
+ # '')
+ # ];
+ #};
- "karlaskop.de" = {
- server-names = [
- "karlaskop.de"
- "www.karlaskop.de"
- ];
- locations = [
- (nameValuePair "/" ''
- root /var/lib/http/karlaskop.de;
- '')
- ];
- };
+ #"karlaskop.de" = {
+ # server-names = [
+ # "karlaskop.de"
+ # "www.karlaskop.de"
+ # ];
+ # locations = [
+ # (nameValuePair "/" ''
+ # root /var/lib/http/karlaskop.de;
+ # '')
+ # ];
+ #};
- "pixelpocket.de" = {
- server-names = [
- "pixelpocket.de"
- "www.karlaskop.de"
- ];
- locations = [
- (nameValuePair "/" ''
- root /var/lib/http/karlaskop.de;
- '')
- ];
- };
+ #"pixelpocket.de" = {
+ # server-names = [
+ # "pixelpocket.de"
+ # "www.karlaskop.de"
+ # ];
+ # locations = [
+ # (nameValuePair "/" ''
+ # root /var/lib/http/karlaskop.de;
+ # '')
+ # ];
+ #};
};
};