summaryrefslogtreecommitdiffstats
path: root/2configs/lass
diff options
context:
space:
mode:
authorlassulus <lass@aidsballs.de>2015-07-23 02:20:44 +0200
committerlassulus <lass@aidsballs.de>2015-07-23 02:20:44 +0200
commitb590d9e21d8c99a91fd419c3e0bea949a9ac6849 (patch)
tree9e8fd206116785d90b5ffcccb28354e4ebda8f7f /2configs/lass
parent118b74fdb21d348c82b4bdc8ba88e5f39afe2ea7 (diff)
1 lass.cloudkrebs: move config to fastpoke-pages
Diffstat (limited to '2configs/lass')
-rw-r--r--2configs/lass/fastpoke-pages.nix103
1 files changed, 103 insertions, 0 deletions
diff --git a/2configs/lass/fastpoke-pages.nix b/2configs/lass/fastpoke-pages.nix
new file mode 100644
index 000000000..2fd9a863a
--- /dev/null
+++ b/2configs/lass/fastpoke-pages.nix
@@ -0,0 +1,103 @@
+{ config, lib, pkgs, ... }:
+
+with lib;
+{
+ imports = [
+ ../../3modules/tv/nginx.nix
+ ../../3modules/lass/iptables.nix
+ ];
+
+ lass.iptables = {
+ tables = {
+ filter.INPUT.rules = [
+ { predicate = "-p tcp --dport http"; target = "ACCEPT"; }
+ ];
+ };
+ };
+
+ #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;
+ '')
+ ];
+ };
+
+ "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;
+ '')
+ ];
+ };
+
+ };
+ };
+
+ networking.extraHosts = ''
+ 10.243.206.102 habsys.de karlaskop.de pixelpocket.de ubikmedia.de apanowicz.de
+ 10.243.206.102 aidsballs.de
+ '';
+
+ #services.postgresql = {
+ # enable = true;
+ #};
+
+ #config.services.vsftpd = {
+ # enable = true;
+ # userlistEnable = true;
+ # userlistFile = pkgs.writeFile "vsftpd-userlist" ''
+ # '';
+ #};
+}