summaryrefslogtreecommitdiffstats
path: root/lass
diff options
context:
space:
mode:
authorlassulus <lass@blue.r>2018-10-23 15:44:33 +0200
committerlassulus <lass@blue.r>2018-10-23 15:44:33 +0200
commit55439da05492618e190d7fad361fd550c50619e8 (patch)
tree182975ab7cdea91b11a2c2f64c952b59bf11d988 /lass
parent9aaa04783aa3eb339822f2fe80353758fa433ff9 (diff)
l websites domsen: ensure databases & users exist
Diffstat (limited to 'lass')
-rw-r--r--lass/2configs/websites/domsen.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/lass/2configs/websites/domsen.nix b/lass/2configs/websites/domsen.nix
index e1c1313ea..828cab95f 100644
--- a/lass/2configs/websites/domsen.nix
+++ b/lass/2configs/websites/domsen.nix
@@ -66,6 +66,12 @@ in {
])
];
+ services.mysql.ensureDatabases = [ "ubikmedia_de" "o_ubikmedia_de" ];
+ services.mysql.ensureUsers = [
+ { ensurePermissions = { "ubikmedia_de.*" = "ALL"; }; name = "nginx"; }
+ { ensurePermissions = { "o_ubikmedia_de.*" = "ALL"; }; name = "nginx"; }
+ ];
+
services.nginx.virtualHosts."ubikmedia.de".locations."/piwika".extraConfig = ''
try_files $uri $uri/ /index.php?$args;
'';