ma nginx/wiki: index to makefu.html

This commit is contained in:
makefu 2018-03-23 10:28:33 +01:00
parent 78486827c3
commit 9b3d1c8b31
No known key found for this signature in database
GPG Key ID: 36F7711F3FC0F225

View File

@ -17,6 +17,7 @@ let
# contains:
# user1 = pass1
# userN = passN
# afterwards put /var/www/<ext-dom>/user1.html as tiddlywiki
tw-pass-file = "${sec}/tw-pass.ini";
in {
@ -45,7 +46,7 @@ in {
systemd.services.prepare-tw = {
wantedBy = [ "local-fs.target" ];
before = [ "phpfpm.service" ];
before = [ "phpfpm.service" "nginx.service" ];
serviceConfig = {
ExecStart = pkgs.writeScript "prepare-tw-service" ''
#!/bin/sh
@ -92,6 +93,7 @@ in {
locations = {
"/" = {
root = wiki-dir;
index = "makefu.html";
extraConfig = ''
expires -1;
autoindex on;