updated flake
This commit is contained in:
parent
a2bfb5eb9e
commit
85bae9d67d
1 changed files with 2 additions and 2 deletions
|
|
@ -69,7 +69,7 @@
|
||||||
|
|
||||||
systemd.services.sTodo.preStart = ''
|
systemd.services.sTodo.preStart = ''
|
||||||
[ -f ${sessionKey} ] || {
|
[ -f ${sessionKey} ] || {
|
||||||
"${pkgs.openssl}/bin/openssl" rand -base64 32 > ${sessionKey}
|
"${pkgs.openssl}/bin/openssl" rand 256 > ${sessionKey}
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
systemd.services.sTodo = {
|
systemd.services.sTodo = {
|
||||||
|
|
@ -83,7 +83,7 @@
|
||||||
environment = {
|
environment = {
|
||||||
YESOD_PORT = "${toString cfg.port}";
|
YESOD_PORT = "${toString cfg.port}";
|
||||||
YESOD_APPROOT = "${cfg.appRoot}";
|
YESOD_APPROOT = "${cfg.appRoot}";
|
||||||
YESOD_SQLITE_DATABASE = "/var/lib/sTodo.sqlite3";
|
YESOD_SQLITE_DATABASE = "/var/lib/sTodo/sTodo.sqlite3";
|
||||||
YESOD_STATIC_DIR = "/etc/sTodo/static";
|
YESOD_STATIC_DIR = "/etc/sTodo/static";
|
||||||
YESOD_SESSION_KEY = sessionKey;
|
YESOD_SESSION_KEY = sessionKey;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue