Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
f.cricket.1.6.6.source-code.cricket.json Maven / Gradle / Ivy
{
"@type": "org.cricketmsf.config.ConfigSet",
"description": "This is sample configuration",
"services": [
{
"@type": "org.cricketmsf.config.Configuration",
"id": "Microsite",
"service": "org.cricketmsf.services.Microsite",
"description":"Cricket Microsite service",
"properties": {
"httpd-not-used":"jetty",
"host": "0.0.0.0",
"port": "7070",
"wsport": "",
"ssl": "false",
"threads": "0",
"shutdown-delay":"2",
"filter-not-used": "org.cricketmsf.microsite.auth.SecurityJettyFilter",
"filter": "org.cricketmsf.microsite.auth.SecurityFilter",
"cors": "Access-Control-Allow-Origin:*|Access-Control-Allow-Credentials:true|Access-Control-Allow-Methods: POST, PATCH, GET, OPTIONS, DELETE, PUT|Access-Control-Allow-Headers:Authentication|Access-Control-Max-Age: 1728000",
"time-zone": "GMT",
"user-confirm": "true",
"initial-admin-email": "user@domain",
"initial-admin-password": "cricket",
"admin-notification-email": "",
"restricted-resources": "DELETE@/api/auth GET@/api/user PUT@/api/user DELETE@/api/user *@/api/cm *@/api/alert *@/api/system",
"file.upload.maxsize": "1000000",
"backup-folder": "./backup",
"backup-strategy": "week",
"request-encoding": "UTF-8",
"serviceurl": "http://localhost:7070",
"servicename": "",
"maintenance-paths": "/api/system /api/cm /api/auth /api/user /admin",
"default-language": "en",
"SRVC_NAME_ENV_VARIABLE": "CRICKET_SERVICE_NAME",
"SRVC_URL_ENV_VARIABLE": "CRICKET_URL",
"SSL_ENV_VARIABLE": "CRICKET_SSL",
"www-theme": "theme0"
},
"ports": [
{
"name": "StatusService",
"interfaceName": "HttpAdapterIface",
"classFullName": "org.cricketmsf.in.http.StandardHttpAdapter",
"properties": {
"context": "/api/status"
}
},
{
"name": "WwwService",
"interfaceName": "HtmlGenAdapterIface",
"classFullName": "org.cricketmsf.in.http.HtmlGenAdapter",
"properties": {
"context": "/",
"use-cache": "true",
"page-processor": "true"
}
},
{
"name": "Logger",
"interfaceName": "LoggerAdapterIface",
"classFullName": "org.cricketmsf.out.log.Slf4jLogger",
"properties": {
"name": "Microsite",
"level": "FINE",
"log-file-name": "./logs/cricket%g.log",
"max-size": "1000000",
"count": "10",
"console": "true"
}
},
{
"name": "GdprLogger",
"interfaceName": "LoggerAdapterIface",
"classFullName": "org.cricketmsf.out.log.FileLogger",
"properties": {
"name": "Microsite",
"log-file-name": "./logs/gdpr.log"
}
},
{
"name": "Database",
"interfaceName": "KeyValueDBIface",
"classFullName": "org.cricketmsf.out.db.KeyValueDB",
"properties": {
"path": "./data",
"name": "local"
}
},
{
"name": "Scheduler",
"interfaceName": "SchedulerIface",
"classFullName": "org.cricketmsf.in.scheduler.Scheduler",
"properties": {
"path": "./data",
"envVariable": "SCHEDULER_DB_PATH",
"file": "scheduler.xml",
"init.0":"Data1,MICROSITE,EVENT,CLEAR_DATA,05:00:00 GMT|*24h,_|_;",
"init.1":"Data2,MICROSITE,EVENT,BACKUP,06:00:00 GMT|*24h,_"
}
},
{
"name": "UserService",
"interfaceName": "HttpAdapterIface",
"classFullName": "org.cricketmsf.microsite.in.http.UserApi",
"properties": {
"context": "/api/user"
}
},
{
"name": "RecoveryService",
"interfaceName": "HttpAdapterIface",
"classFullName": "org.cricketmsf.microsite.in.http.UserApi",
"properties": {
"context": "/api/recover"
}
},
{
"name": "AuthService",
"interfaceName": "HttpAdapterIface",
"classFullName": "org.cricketmsf.microsite.in.http.AuthApi",
"properties": {
"context": "/api/auth"
}
},
{
"name": "ConfirmationService",
"interfaceName": "HttpAdapterIface",
"classFullName": "org.cricketmsf.microsite.in.http.ConfirmationApi",
"properties": {
"context": "/api/confirm"
}
},
{
"name": "ContentManager",
"interfaceName": "HttpAdapterIface",
"classFullName": "org.cricketmsf.microsite.in.http.ContentApi",
"properties": {
"context": "/api/cm"
}
},
{
"name": "ContentService",
"interfaceName": "HttpAdapterIface",
"classFullName": "org.cricketmsf.microsite.in.http.ContentApi",
"properties": {
"context": "/api/cs"
}
},
{
"name": "AlertService",
"interfaceName": "HttpAdapterIface",
"classFullName": "org.cricketmsf.microsite.in.http.AlertApi",
"properties": {
"context": "/api/alert"
}
},
{
"name": "SystemService",
"interfaceName": "HttpAdapterIface",
"classFullName": "org.cricketmsf.microsite.in.http.SystemApi",
"properties": {
"context": "/api/system",
"dump-request": "false"
}
},
{
"name": "userAdapter",
"interfaceName": "UserAdapterIface",
"classFullName": "org.cricketmsf.microsite.out.user.UserEmbededAdapter",
"properties": {
"helper-name": "userDB"
}
},
{
"name": "userDB",
"interfaceName": "SqlDBIface",
"classFullName": "org.cricketmsf.microsite.out.db.H2UserDB",
"properties": {
"path": "./data",
"file": "user",
"test-query": "select * from serviceversion",
"version": "2",
"name": "user",
"user": "sa",
"password": "",
"encrypted": "true",
"filePassword":"cr1Ck37#@"
}
},
{
"name": "authAdapter",
"interfaceName": "AuthAdapterIface",
"classFullName": "org.cricketmsf.microsite.out.auth.AuthEmbededAdapter",
"properties": {
"helper-name": "authDB",
"helper-name-2": "userAdapter",
"token-timeout": "1800"
}
},
{
"name": "authDB",
"interfaceName": "SqlDBIface",
"classFullName": "org.cricketmsf.microsite.out.db.H2AuthDB",
"properties": {
"path":"./data",
"file": "auth",
"test-query": "select * from serviceversion",
"version": "1",
"name": "auth",
"user": "sa",
"password": ""
}
},
{
"name": "cmsDB",
"interfaceName": "SqlDBIface",
"classFullName": "org.cricketmsf.microsite.out.db.H2CmsDB",
"properties": {
"path":"./data",
"file": "cms",
"test-query": "select * from serviceversion",
"version": "1",
"name": "content",
"user": "sa",
"password": ""
}
},
{
"name": "cmsRuleEngine",
"interfaceName": "RuleEngineIface",
"classFullName": "org.cricketmsf.microsite.cms.DefaultRuleEngine",
"properties": {
}
},
{
"name": "cmsAdapter",
"interfaceName": "CmsIface",
"classFullName": "org.cricketmsf.microsite.cms.CmsEmbededAdapter",
"properties": {
"helper-name": "cmsDB",
"rule-engine": "cmsRuleEngine",
"root-path": "./www/",
"file-path": "./files/",
"file-path-published": "./www/assets/",
"index-file": "index.html"
}
},
{
"name": "emailSender",
"interfaceName": "EmailSenderIface",
"classFullName": "org.cricketmsf.microsite.out.notification.SmtpSender",
"properties": {
"from": "",
"mailhost": "",
"user": "",
"password": "",
"debug-session": "false"
}
},
{
"name": "watchdog",
"interfaceName": "WatchdogIface",
"classFullName": "org.cricketmsf.in.file.FileTailer",
"properties": {
"path": "./tmp/test.txt",
"sampling-interval": "1000",
"event-category": "FILE_CHANGED"
}
},
{
"name": "Dispatcher",
"interfaceName": "DispatcherIface",
"classFullName": "org.cricketmsf.out.dispatcher.QueueDispatcher",
"description": "using internal Queue",
"properties": {
"event-types": "*",
"queue-client-name": "QueueClient"
}
},
{
"name": "QueueClient",
"interfaceName": "QueueClientIface",
"classFullName": "org.cricketmsf.out.queue.SimpleQueueClient",
"description": "using internal Queue",
"properties": {
"queue-adapter-name": "Queue"
}
},
{
"name": "QueueSubscriber",
"interfaceName": "QueueClientIface",
"classFullName": "org.cricketmsf.in.queue.SimpleQueueSubscriber",
"description": "using internal Queue",
"properties": {
"queue-adapter-name": "Queue",
"channels": "*"
}
},
{
"name": "Queue",
"interfaceName": "QueueIface",
"classFullName": "org.cricketmsf.out.queue.SimpleQueue",
"description": "=",
"properties": {
"mode":"queue"
}
},
{
"name": "Autostart",
"interfaceName": "AutostartIface",
"classFullName": "org.cricketmsf.out.autostart.Autostart",
"description": "",
"properties": {
"subfolders":"./logs:./data:./www"
}
},
{
"name": "OpenApi",
"interfaceName": "OpenApiIface",
"classFullName": "org.cricketmsf.in.openapi.OpenApi",
"description": "",
"properties": {
"context": "/api"
}
}
]
},
{
"@type": "org.cricketmsf.config.Configuration",
"id": "BasicService",
"service": "org.cricketmsf.services.BasicService",
"properties": {
"host": "0.0.0.0",
"port": "7070",
"wsport": "",
"threads": "0",
"filter": "org.cricketmsf.SecurityFilter",
"cors": "Access-Control-Allow-Origin:*",
"time-zone": "GMT",
"SRVC_NAME_ENV_VARIABLE": "CRICKET_NAME",
"request-encoding": "UTF-8",
"file-upload-maxsize": "1000000",
"serviceurl": "http://localhost:7070",
"terms":"https://github.com/gskorupa/cricket"
},
"ports": [
{
"name": "Echo",
"interfaceName": "",
"adapterClassName": "org.cricketmsf.in.http.EchoAdapter",
"properties": {
"context": "/api/echo"
}
},
{
"name": "Greeter",
"interfaceName": "",
"adapterClassName": "org.cricketmsf.in.http.GreeterAdapter",
"properties": {
"context": "/api/greeting"
}
},
{
"name": "StatusService",
"interfaceName": "HttpAdapterIface",
"classFullName": "org.cricketmsf.in.http.StandardHttpAdapter",
"properties": {
"context": "/api/status"
}
},
{
"name": "Logger",
"interfaceName": "LoggerAdapterIface",
"classFullName": "org.cricketmsf.out.log.Slf4jLogger",
"properties": {
"name": "BasicService",
"level": "FINEST",
"log-file-name": "./logs/cricket%g.log",
"max-size": "1000000",
"count": "10",
"console": "true"
}
},
{
"name": "CacheDB",
"interfaceName": "KeyValueDBIface",
"classFullName": "org.cricketmsf.out.db.KeyValueDB",
"properties": {
"path": "./data",
"name": "local"
}
},
{
"name": "Scheduler",
"interfaceName": "SchedulerIface",
"classFullName": "org.cricketmsf.in.scheduler.Scheduler",
"properties": {
"path": "./data",
"envVariable": "SCHEDULER_DB_PATH",
"file": "scheduler.xml"
}
},
{
"name": "Dispatcher",
"interfaceName": "DispatcherIface",
"classFullName": "org.cricketmsf.out.dispatcher.QueueDispatcher",
"description": "using internal Queue",
"properties": {
"event-types": "TEST",
"queue-client-name": "QueueClient"
}
},
{
"name": "QueueClient",
"interfaceName": "QueueClientIface",
"classFullName": "org.cricketmsf.out.queue.SimpleQueueClient",
"description": "using internal Queue",
"properties": {
"queue-adapter-name": "Queue"
}
},
{
"name": "QueueSubscriber",
"interfaceName": "QueueClientIface",
"classFullName": "org.cricketmsf.in.queue.SimpleQueueSubscriber",
"description": "using internal Queue",
"properties": {
"queue-adapter-name": "Queue",
"channels": "TEST"
}
},
{
"name": "Queue",
"interfaceName": "QueueIface",
"classFullName": "org.cricketmsf.out.queue.SimpleQueue",
"description": "=",
"properties": {
}
},
{
"name": "WwwService",
"interfaceName": "HtmlGenAdapterIface",
"classFullName": "org.cricketmsf.in.http.HtmlGenAdapter",
"properties": {
"context": "/",
"use-cache": "true",
"page-processor": "false",
"dump-request": "false"
}
},
{
"name": "WwwFileReader",
"interfaceName": "FileReaderAdapterIface",
"classFullName": "org.cricketmsf.out.file.FileReaderAdapter",
"properties": {
"root": "./www/",
"index-file": "index.html"
}
},
{
"name": "WsAdapter",
"interfaceName": "InboundAdapterIface",
"classFullName": "org.cricketmsf.in.websocket.WebsocketAdapter",
"description": "default websocket adapter",
"properties": {
"context":"/test"
}
},
{
"name": "Autostart",
"interfaceName": "AutostartIface",
"classFullName": "org.cricketmsf.out.autostart.Autostart",
"description": "",
"properties": {
"subfolders":"./logs:./data"
}
},
{
"name": "OpenApi",
"interfaceName": "OpenApiIface",
"classFullName": "org.cricketmsf.in.openapi.OpenApi",
"description": "",
"properties": {
"context": "/api"
}
}
]
},
{
"@type": "org.cricketmsf.config.Configuration",
"id": "MinimalService",
"service": "org.cricketmsf.services.MinimalService",
"properties": {
"host": "0.0.0.0",
"port": "7070",
"wsport": "",
"threads": "0",
"filter": "org.cricketmsf.SecurityFilter",
"cors": "Access-Control-Allow-Origin:*",
"time-zone": "GMT",
"SRVC_NAME_ENV_VARIABLE": "CRICKET_NAME",
"request-encoding": "UTF-8",
"file-upload-maxsize": "1000000",
"serviceurl": "http://localhost:7070",
"terms":"https://github.com/gskorupa/cricket"
},
"ports": [
{
"name": "OpenApi",
"interfaceName": "OpenApiIface",
"classFullName": "org.cricketmsf.in.openapi.OpenApi",
"description": "",
"properties": {
"context": "/api"
}
},
{
"name": "Hello",
"interfaceName": "",
"classFullName": "org.cricketmsf.in.http.EchoAdapter",
"description": "",
"properties": {
"context": "/api/echo"
}
},
{
"name": "HelloAPI",
"interfaceName": "",
"classFullName": "org.cricketmsf.in.hello.HelloAdapter",
"properties": {
"context": "/api/hello"
}
}
]
}
]
}