diff --git a/docs/config.md b/docs/config.md index 31616db..188f1af 100644 --- a/docs/config.md +++ b/docs/config.md @@ -6,6 +6,110 @@ Websites evolve over time, and PagePark has features that help you adjust things All the values described here are added to a config.json file that's stored at the top level of a domain folder. Any time a request comes in for that domain, we read the config.json file in its folder, if there is one, and the values are applied to the request. +#### File extensions + +The extension of a file determines how PagePark serves it. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +.txt + + + +The text in the file is returned, the type is text/plain. + + + +applejoke.txt + +
+ +.xml + + + +The text in the file is returned, the type is text/xml. + + + +davetwitterfeed.xml + +
+ +.json + + + +The text in the file is returned, the type is application/json. + + + +demo.json + +
+ +.opml + + + +The outline is rendered as an expandable outline, the type returned is text/html. + + + +states.opml + +
+ + + +Any page can be written in JavaScript. + +PagePark runs the script, and then returns the value it returns, which usually is HTML text. + #### flProcessScriptFiles If you set this value false, none of the JavaScript files in the domain folder will be processed. They will be served as text, with the source code in the file. @@ -16,7 +120,7 @@ Example:
{
 
-        "flProcessScriptFiles": false
+   "flProcessScriptFiles": false
 
-        }
+ }