github.com/mdaxf/iac@v0.0.0-20240519030858-58a061660378/configuration.json (about)

     1  {
     2      "instance":"IAC_Instance",
     3      "name":"IAC",
     4      "version":"1.0.0",
     5      "description":"IAC is a framework for building web applications with Go.",
     6      "author":"IAC",
     7      "singalrconfig":{
     8          "serverwc": "ws://127.0.0.1:8222",
     9          "server": "http://127.0.0.1:8222",
    10          "hub": "/iacmessagebus"
    11      },
    12      "transaction":{
    13          "timeout": 30
    14      },
    15      "database":{
    16          "type":"mysql",        
    17          "connection": "user:iacf12345678@tcp(localhost:3306)/iac?timeout=5s",
    18          "maxidleconns":5,
    19          "maxopenconns":10,
    20          "timeout": 5
    21      },
    22      "altdatabases":[
    23          {
    24              "name": "conn1",
    25              "type":"mysql",
    26              "connection":"user:iacf12345678@tcp(localhost:3306)/iac"
    27          }
    28      ],
    29      "documentdb":{
    30          "type": "mongodb",
    31          "connection": "mongodb://localhost:27017",
    32          "database": "IAC_CFG"
    33      },
    34      "webserver":{
    35          "port": 8000,
    36          "paths":{
    37              "portal": {                
    38                  "path":"../iac-ui/portal",
    39                  "home":"../iac-ui/portal/uipage.html"},
    40              "portal2": {            
    41                  "path":"../iac-whiteboard/.next",
    42                  "home":"../iac-whiteboard/.next"}
    43          },
    44          "proxy":{
    45              "draw": "http://localhost:3000"
    46          },
    47          "headers":{
    48              "Access-Control-Allow-Origin": "*",
    49              "Access-Control-Allow-Credentials": "true",
    50              "Access-Control-Allow-Methods": "POST, OPTIONS, GET, PUT, DELETE",
    51              "Access-Control-Allow-Headers": "Accept, Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization",
    52              "Access-Control-Expose-Headers": "Content-Length",
    53              "Content-Type": "application/json; charset=utf-8"            
    54          }
    55      },
    56      "appserver":{
    57          "url": "http://127.0.0.1:8080",
    58          "apikey": "ahbcgj"
    59      },
    60      "log":{
    61          "adapter": "console", 
    62          "level": "performance",
    63          "performance": true,
    64          "performancethread": 1,
    65          "file":{
    66              "folder": "c:\\\\temp\\\\iac_loger", 
    67              "file": "iac.log",
    68              "maxlines":10000,
    69              "maxsize": 1024},
    70          "console":{},
    71          "multiplefile":{
    72              "folder": "c:\\\\temp\\\\iac_loger", 
    73              "file": "iac.log",
    74              "maxlines":10000,
    75              "maxsize": 1024,
    76              "maxfiles": 10
    77          },
    78          "documentdb":{
    79              "conn": "mongodb://localhost:27017",
    80              "db": "IAC_CACHE",
    81              "collection": "logger"
    82          }
    83      },
    84      "cache":{
    85          "adapter": "memory",
    86          "interval": 7200, 
    87          "objectinterval": 1800,
    88          "testsessiontimeout": 900,       
    89          "redis":{
    90              "key": "collectionname",
    91              "conn": 6379,
    92              "password": "",
    93              "dbNum": 0,
    94              "thePassWord": 3600
    95          },
    96          "memcache":{
    97              "conn": "127.0.0.1:11211"
    98          },
    99          "file":{
   100              "CachePath": "./cache",
   101              "FileSuffix": ".cache",
   102              "DirectoryLevel": 2,
   103              "EmbedExpiry": 120
   104          },
   105          "documentdb":{
   106              "conn": "mongodb://localhost:27017",
   107              "db": "IAC_CACHE",
   108              "collection": "cache"
   109          }
   110      },
   111      "translation":{
   112          "autopopulate": true,
   113          "cache": true
   114      }
   115  }