mirror of
https://github.com/kiberpipa/nix-rehash.git
synced 2024-10-26 11:28:14 +03:00
Store logs in /data too
This commit is contained in:
parent
e89a6588c3
commit
3d820187a9
@ -9,6 +9,7 @@ let
|
||||
|
||||
mysqlDataPath = "/data/mysql";
|
||||
wordpressUploads = "/data/uploads";
|
||||
apacheLogs = "/data/log";
|
||||
|
||||
# Our bare-bones wp-config.php file using the above settings
|
||||
wordpressConfig = pkgs.writeText "wp-config.php" ''
|
||||
@ -89,6 +90,9 @@ in {
|
||||
# We'll set the wordpress package as our document root
|
||||
documentRoot = wordpress;
|
||||
|
||||
# Let's store our logs in the volume as well
|
||||
logDir = apacheLogs;
|
||||
|
||||
# And enable the PHP5 apache module
|
||||
extraModules = [ { name = "php5"; path = "${pkgs.php}/modules/libphp5.so"; } ];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user