ma nginx/wiki: index to makefu.html
This commit is contained in:
parent
78486827c3
commit
9b3d1c8b31
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user