From 91a883ba9512cfa57e820dbbc49020d54abe59b7 Mon Sep 17 00:00:00 2001 From: zefie Date: Mon, 19 Jul 2021 15:06:15 -0400 Subject: [PATCH] Update ServiceVault.md --- ServiceVault.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/ServiceVault.md b/ServiceVault.md index 4b6d806f..f3b36e79 100644 --- a/ServiceVault.md +++ b/ServiceVault.md @@ -1,8 +1,15 @@ ## Brief ServiceVault Explanation -The server will look for a subdirectory under the running directory, called `ServiceVault` (might be user-configurable in the future). +The server will scan configured ServiceVaults in order of priority and look for files within them. -Within that directory, it looks for a subdirectory named after the wtv-service URL requested. +Currently only 2 Service Vaults are supported, the `User Server Vault` and the `Service Vault`. + +The paths to the Service Vaults are user configurable in user_config.json or config.json + +The `User Service Vault` has priority, and files found in that Service Vault will be loaded, even if the +file exists in the `Service Vault`. + +Within the Service Vaults, the server looks for a subdirectory named after the wtv-service URL requested. The server will then look for files in sequential order when requesting a URL, stopping at the first match.