From 99893b0bd1e9ef72fec8becd125898a4c0a229a9 Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Sat, 10 Nov 2018 20:26:23 -0700 Subject: [PATCH] Yet more updates with config new --- core/oputil/oputil_config.js | 1 + misc/config_template.in.hjson | 47 +++++++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+) diff --git a/core/oputil/oputil_config.js b/core/oputil/oputil_config.js index de4731f7..eade918b 100644 --- a/core/oputil/oputil_config.js +++ b/core/oputil/oputil_config.js @@ -34,6 +34,7 @@ const ConfigIncludeKeys = [ 'theme', 'loginServers', 'contentServers', + 'fileBase.areaStoragePrefix', ]; const QUESTIONS = { diff --git a/misc/config_template.in.hjson b/misc/config_template.in.hjson index 901bd0c2..b20b21a9 100644 --- a/misc/config_template.in.hjson +++ b/misc/config_template.in.hjson @@ -171,6 +171,53 @@ } } + // + // ENiGMA½ comes with a very powerful File Base, but may be a bit strange + // until you get used to it. Please see the documentation! + // + fileBase: { + // + // Storage tags with relative paths (that is, paths that do not start + // with a "/") are relative to the following path: + // + areaStoragePrefix: XXXXX + + // + // Storage tags create a tag -> directory (relative or full path) + // that can be used in areas. + // + storageTags: { + // + // Example storage tag: "super_l33t_warez": + // super_l33t_warez: "/path/to/super/l33t/warez" + // + } + + areas: { + // + // Example area with the areaTag of "an_example_area": + // an_example_area: { + // name: "Example File Area" + // desc: "It's just an example, yo!" + // storageTags: [ + // "super_l33t_warez" + // ] + // } + // + // File Base Areas are read-only (ie: download only) by default. + // To make a uploadable area, set ACS as you like. For example, + // to allow all users to upload to an area: + // + // an_example_area: { + // // ... + // acs: { + // write: GM[users] + // } + // } + } + } + + // General user configuration users: { // // ENiGMA½ utilizes user groups similar to Windows and *nix. Built in groups