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