src/server/daemon/location.c

changeset 641
159172937c86
parent 640
a95045234b9b
child 642
7b71e2973acc
--- a/src/server/daemon/location.c	Sun Nov 23 14:59:52 2025 +0100
+++ b/src/server/daemon/location.c	Sun Nov 23 15:05:37 2025 +0100
@@ -71,6 +71,13 @@
                 return 1;
             }
         }
+    } else if(!cx_strcasecmp(name, "VFS")) {
+        DIR_CHECK_ARGC(1);
+        location->config.vfs = cx_strdup_a(a, dir->args->value);
+        VfsType *vfs = vfs_get_type(cx_strcast(location->config.vfs));
+        if(!vfs) {
+            log_ereport(LOG_MISCONFIG, "unknown VFS type %s", location->config.vfs.ptr);
+        }
     } else if(!cx_strcasecmp(name, "Location")) {
         WSLocation *sub_location = cfg_location_get(cfg, dir);
         if(!sub_location) {

mercurial