jakdept / goki

A markdown based wiki
MIT License
2 stars 0 forks source link

rewrite server to work from config.json #1

Closed jakdept closed 9 years ago

jakdept commented 9 years ago

Instead of using a .ini configuration file, rewrite the server to use a .json config file. An example config file is:

{
  "global": {
    "port": "8080",
    "hostname": "wiki.hostbaitor.com"
  },
  "server": [
    {
      "Path": "/var/www/wiki/",
      "Prefix": "/",
      "Default": "index",
      "ServerType": "markdown",
      "Restricted": [
        "internal",
        "handbook"
      ]
    },
    {
      "Path": "/var/www/wiki/",
      "Prefix": "/raw/",
      "Default": {},
      "ServerType": "raw",
      "Restricted": [
        "md",
        "ini",
        "json"
      ]
    },
    {
      "Path": "/var/www/backend/public/",
      "Prefix": "/site/",
      "Default": {},
      "ServerType": "raw",
      "Restricted": [
        "md",
        "ini",
        "json"
      ]
    }
  ]
}
jakdept commented 9 years ago

Server compiles as of 3ce867714713749ac8acdb871367f6a3b8b80c24 after rewrite and reworking for config.json.

jakdept commented 9 years ago

resolved