summaryrefslogtreecommitdiffstats
path: root/lass/2configs/websites/fritz.nix
blob: c022dfbe2d24d79c7201fb51ef113f56b3534606 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
{ config, pkgs, lib, ... }:

let
  inherit (import ../../4lib { inherit lib pkgs; })
    manageCerts
    activateACME
    ssl
    servePage
    serveWordpress;

in {
  imports = [
    #( manageCerts [ "biostase.de" ])
    #( servePage [ "biostase.de" ])

    #( manageCerts [ "gs-maubach.de" ])
    #( servePage [ "gs-maubach.de" ])

    #( manageCerts [ "spielwaren-kern.de" ])
    #( servePage [ "spielwaren-kern.de" ])

    #( manageCerts [ "societyofsimtech.de" ])
    #( servePage [ "societyofsimtech.de" ])

    #( manageCerts [ "ttf-kleinaspach.de" ])
    #( servePage [ "ttf-kleinaspach.de" ])

    #( manageCerts [ "edsn.de" ])
    #( servePage [ "edsn.de" ])

    #( manageCerts [ "eab.berkeley.edu" ])
    #( servePage [ "eab.berkeley.edu" ])

    ( manageCerts [ "eastuttgart.de" ])
    ( serveWordpress [ "eastuttgart.de" ])

    ( manageCerts [ "habsys.de" ])
    ( servePage [ "habsys.de" ])
  ];

  services.mysql = {
    enable = true;
    package = pkgs.mariadb;
    rootPassword = toString (<secrets/mysql_rootPassword>);
  };

  services.mysqlBackup = {
    enable = true;
    databases = [
      "eastuttgart_de"
    ];
    location = "/bku/sql_dumps";
  };

  #lass.owncloud = {
  #  "o.ubikmedia.de" = {
  #    instanceid = "oc8n8ddbftgh";
  #  };
  #};

  #services.mysql = {
  #  enable = true;
  #  package = pkgs.mariadb;
  #  rootPassword = toString (<secrets/mysql_rootPassword>);
  #};
}