summaryrefslogtreecommitdiffhomepage
path: root/public/v2/apps/jsreport.json
blob: 7c5f47b7f86e38a6072f9611cbc8109fe50995d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{
    "captainVersion": "2",
    "documentation": "Taken from https://hub.docker.com/r/jsreport/jsreport/",
    "displayName": "",
    "description": "jsreport is an open source reporting platform where reports are designed using popular javascript templating engines",
    "dockerCompose": {
        "version": "3.3",
        "services": {
            "$$cap_appname": {
                "image": "jsreport/jsreport:$$cap_jsreport_version",
                "volumes": [
                    "$$cap_appname-data:/jsreport"
                ],
                "restart": "always",
                "containerHttpPort": "5488",
                "environment": {
                    "extensions_authentication_admin_username": "$$cap_jsreport_adminusername",
                    "extensions_authentication_admin_password": "$$cap_jsreport_password",
                    "extensions_authentication_cookieSession_secret": "$$cap_jsreport_secret"
                }
            }
        }
    },
    "instructions": {
        "start": "Reporting tools for creating PDF, HTMLS, Excel by converting your HTML + CSS + Javascript knowledge.",
        "end": "Congratulations! You have the new jsReport instance running. Happy reporting!"
    },
    "variables": [{
            "id": "$$cap_jsreport_version",
            "label": "version",
            "defaultValue": "2.4.0-full",
            "description": "Check out their Docker page for the valid tags https://hub.docker.com/r/jsreport/jsreport/tags",
            "validRegex": "/^([^\\s^\\/])+$/"
        },
        {
            "id": "$$cap_jsreport_adminusername",
            "label": "Admin user name",
            "defaultValue": "admin",
            "description": "Only use alphanumeric chars.",
            "validRegex": "/^([a-zA-Z0-9])+$/"
        },
        {
            "id": "$$cap_jsreport_password",
            "label": "Admin password",
            "validRegex": "/^\\s*\\S.*$/"
        },
        {
            "id": "$$cap_jsreport_secret",
            "label": "Session secret",
            "defaultValue": "long-secret",
            "validRegex": "/^\\s*\\S.*$/"
        }
    ]

}