Load /tome-test
from www.oliverdavies.uk-tome
Load `/tome-test` from the www.oliverdavies.uk-tome directory.
This commit is contained in:
parent
fe1cd27d59
commit
7faed751c7
1 changed files with 19 additions and 0 deletions
|
@ -12,6 +12,23 @@
|
|||
useACMEHost = "oliverdavies.uk";
|
||||
|
||||
extraConfig =
|
||||
let
|
||||
tomePaths = [ "tome-test" ];
|
||||
|
||||
tomeConfig = builtins.concatStringsSep "\n\n" (
|
||||
builtins.map (path: ''
|
||||
handle /${path} {
|
||||
root * /var/www/vhosts/www.oliverdavies.uk-tome
|
||||
file_server
|
||||
}
|
||||
|
||||
handle_path /${path}/* {
|
||||
root * /var/www/vhosts/www.oliverdavies.uk-tome/${path}
|
||||
file_server
|
||||
}
|
||||
'') tomePaths
|
||||
);
|
||||
in
|
||||
''
|
||||
encode gzip
|
||||
file_server
|
||||
|
@ -25,6 +42,8 @@
|
|||
rewrite @404 /404/index.html
|
||||
file_server
|
||||
}
|
||||
|
||||
${tomeConfig}
|
||||
''
|
||||
+ builtins.readFile ./www.oliverdavies.uk-redirects.caddy;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue