1 lass.cloudkrebs: move config to fastpoke-pages
This commit is contained in:
parent
118b74fdb2
commit
b590d9e21d
@ -6,6 +6,7 @@
|
||||
../../2configs/tv/CAC-CentOS-7-64bit.nix
|
||||
../../2configs/lass/base.nix
|
||||
../../2configs/lass/retiolum.nix
|
||||
../../2configs/lass/fastpoke-pages.nix
|
||||
{
|
||||
networking.interfaces.enp2s1.ip4 = [
|
||||
{
|
||||
|
103
2configs/lass/fastpoke-pages.nix
Normal file
103
2configs/lass/fastpoke-pages.nix
Normal file
@ -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" ''
|
||||
# '';
|
||||
#};
|
||||
}
|
Loading…
Reference in New Issue
Block a user