@things-factory/operato-hub 8.0.0-beta.1 → 8.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +44 -44
- package/installer/config.production.js +0 -63
- package/installer/docker-compose.yml +0 -54
- package/installer/install.sh +0 -54
- package/installer/migrate.sh +0 -1
- package/installer/operato-hub.conf.sample +0 -33
- package/installer/start.sh +0 -18
- package/installer/stop.sh +0 -1
- package/installer/upgrade.sh +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/operato-hub",
|
|
3
|
-
"version": "8.0.0-beta.
|
|
3
|
+
"version": "8.0.0-beta.2",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -63,53 +63,53 @@
|
|
|
63
63
|
"@operato/scene-table": "^8.0.0-beta",
|
|
64
64
|
"@operato/scene-visualizer": "^8.0.0-beta",
|
|
65
65
|
"@operato/scene-wheel-sorter": "^8.0.0-beta",
|
|
66
|
-
"@things-factory/api": "^8.0.0-beta.
|
|
67
|
-
"@things-factory/apptool-ui": "^8.0.0-beta.
|
|
68
|
-
"@things-factory/attachment-base": "^8.0.0-beta.
|
|
69
|
-
"@things-factory/auth-base": "^8.0.0-beta.
|
|
70
|
-
"@things-factory/auth-ui": "^8.0.0-beta.
|
|
71
|
-
"@things-factory/biz-base": "^8.0.0-beta.
|
|
72
|
-
"@things-factory/biz-ui": "^8.0.0-beta.
|
|
73
|
-
"@things-factory/board-service": "^8.0.0-beta.
|
|
74
|
-
"@things-factory/board-ui": "^8.0.0-beta.
|
|
75
|
-
"@things-factory/code-ui": "^8.0.0-beta.
|
|
76
|
-
"@things-factory/component-ui": "^8.0.0-beta.
|
|
77
|
-
"@things-factory/context-ui": "^8.0.0-beta.
|
|
78
|
-
"@things-factory/document-template-ui": "^8.0.0-beta.
|
|
79
|
-
"@things-factory/env": "^8.0.0-beta.
|
|
80
|
-
"@things-factory/evaluation": "^8.0.0-beta.
|
|
81
|
-
"@things-factory/export-ui": "^8.0.0-beta.
|
|
82
|
-
"@things-factory/export-ui-csv": "^8.0.0-beta.
|
|
83
|
-
"@things-factory/export-ui-excel": "^8.0.0-beta.
|
|
84
|
-
"@things-factory/help": "^8.0.0-beta.
|
|
85
|
-
"@things-factory/i18n-base": "^8.0.0-beta.
|
|
86
|
-
"@things-factory/import-ui": "^8.0.0-beta.
|
|
87
|
-
"@things-factory/import-ui-excel": "^8.0.0-beta.
|
|
88
|
-
"@things-factory/integration-accounting": "^8.0.0-beta.
|
|
89
|
-
"@things-factory/integration-fulfillment": "^8.0.0-beta.
|
|
90
|
-
"@things-factory/integration-lmd": "^8.0.0-beta.
|
|
91
|
-
"@things-factory/integration-marketplace": "^8.0.0-beta.
|
|
92
|
-
"@things-factory/integration-pos": "^8.0.0-beta.
|
|
93
|
-
"@things-factory/integration-sellercraft": "^8.0.0-beta.
|
|
94
|
-
"@things-factory/integration-sftp": "^8.0.0-beta.
|
|
95
|
-
"@things-factory/lite-menu": "^8.0.0-beta.
|
|
96
|
-
"@things-factory/more-ui": "^8.0.0-beta.
|
|
97
|
-
"@things-factory/notification": "^8.0.0-beta.
|
|
98
|
-
"@things-factory/pdf": "^8.0.0-beta.
|
|
99
|
-
"@things-factory/product-ui": "^8.0.0-beta.
|
|
100
|
-
"@things-factory/resource-ui": "^8.0.0-beta.
|
|
101
|
-
"@things-factory/sales-base": "^8.0.0-beta.
|
|
102
|
-
"@things-factory/setting-ui": "^8.0.0-beta.
|
|
103
|
-
"@things-factory/shell": "^8.0.0-beta.
|
|
104
|
-
"@things-factory/system": "^8.0.0-beta.
|
|
105
|
-
"@things-factory/warehouse-base": "^8.0.0-beta.
|
|
106
|
-
"@things-factory/worksheet-base": "^8.0.0-beta.
|
|
66
|
+
"@things-factory/api": "^8.0.0-beta.2",
|
|
67
|
+
"@things-factory/apptool-ui": "^8.0.0-beta.2",
|
|
68
|
+
"@things-factory/attachment-base": "^8.0.0-beta.2",
|
|
69
|
+
"@things-factory/auth-base": "^8.0.0-beta.2",
|
|
70
|
+
"@things-factory/auth-ui": "^8.0.0-beta.2",
|
|
71
|
+
"@things-factory/biz-base": "^8.0.0-beta.2",
|
|
72
|
+
"@things-factory/biz-ui": "^8.0.0-beta.2",
|
|
73
|
+
"@things-factory/board-service": "^8.0.0-beta.2",
|
|
74
|
+
"@things-factory/board-ui": "^8.0.0-beta.2",
|
|
75
|
+
"@things-factory/code-ui": "^8.0.0-beta.2",
|
|
76
|
+
"@things-factory/component-ui": "^8.0.0-beta.2",
|
|
77
|
+
"@things-factory/context-ui": "^8.0.0-beta.2",
|
|
78
|
+
"@things-factory/document-template-ui": "^8.0.0-beta.2",
|
|
79
|
+
"@things-factory/env": "^8.0.0-beta.2",
|
|
80
|
+
"@things-factory/evaluation": "^8.0.0-beta.2",
|
|
81
|
+
"@things-factory/export-ui": "^8.0.0-beta.2",
|
|
82
|
+
"@things-factory/export-ui-csv": "^8.0.0-beta.2",
|
|
83
|
+
"@things-factory/export-ui-excel": "^8.0.0-beta.2",
|
|
84
|
+
"@things-factory/help": "^8.0.0-beta.2",
|
|
85
|
+
"@things-factory/i18n-base": "^8.0.0-beta.2",
|
|
86
|
+
"@things-factory/import-ui": "^8.0.0-beta.2",
|
|
87
|
+
"@things-factory/import-ui-excel": "^8.0.0-beta.2",
|
|
88
|
+
"@things-factory/integration-accounting": "^8.0.0-beta.2",
|
|
89
|
+
"@things-factory/integration-fulfillment": "^8.0.0-beta.2",
|
|
90
|
+
"@things-factory/integration-lmd": "^8.0.0-beta.2",
|
|
91
|
+
"@things-factory/integration-marketplace": "^8.0.0-beta.2",
|
|
92
|
+
"@things-factory/integration-pos": "^8.0.0-beta.2",
|
|
93
|
+
"@things-factory/integration-sellercraft": "^8.0.0-beta.2",
|
|
94
|
+
"@things-factory/integration-sftp": "^8.0.0-beta.2",
|
|
95
|
+
"@things-factory/lite-menu": "^8.0.0-beta.2",
|
|
96
|
+
"@things-factory/more-ui": "^8.0.0-beta.2",
|
|
97
|
+
"@things-factory/notification": "^8.0.0-beta.2",
|
|
98
|
+
"@things-factory/pdf": "^8.0.0-beta.2",
|
|
99
|
+
"@things-factory/product-ui": "^8.0.0-beta.2",
|
|
100
|
+
"@things-factory/resource-ui": "^8.0.0-beta.2",
|
|
101
|
+
"@things-factory/sales-base": "^8.0.0-beta.2",
|
|
102
|
+
"@things-factory/setting-ui": "^8.0.0-beta.2",
|
|
103
|
+
"@things-factory/shell": "^8.0.0-beta.2",
|
|
104
|
+
"@things-factory/system": "^8.0.0-beta.2",
|
|
105
|
+
"@things-factory/warehouse-base": "^8.0.0-beta.2",
|
|
106
|
+
"@things-factory/worksheet-base": "^8.0.0-beta.2",
|
|
107
107
|
"koa2-swagger-ui": "^5.0.2",
|
|
108
108
|
"swagger-jsdoc": "^6.2.8",
|
|
109
109
|
"yamljs": "^0.3.0"
|
|
110
110
|
},
|
|
111
111
|
"devDependencies": {
|
|
112
|
-
"@things-factory/builder": "^8.0.0-beta.
|
|
112
|
+
"@things-factory/builder": "^8.0.0-beta.2"
|
|
113
113
|
},
|
|
114
|
-
"gitHead": "
|
|
114
|
+
"gitHead": "f03431a09435511b2595515658f9cb8f78ba4ebb"
|
|
115
115
|
}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
domainType: 'company',
|
|
3
|
-
useVirtualHostBasedDomain: true,
|
|
4
|
-
subdomainOffset: 2,
|
|
5
|
-
SECRET: '0xD58F835B61C217A76CA5FA4a70a1D0d4D79dAC19', // temporary...
|
|
6
|
-
email: {
|
|
7
|
-
host: 'smtp.office365.com', // your sender-email smtp host
|
|
8
|
-
port: 587, // smtp server port
|
|
9
|
-
secure: false, // true for 465, false for other ports
|
|
10
|
-
auth: {
|
|
11
|
-
user: 'your sender-email',
|
|
12
|
-
pass: 'your sender-email password' // generated ethereal password
|
|
13
|
-
},
|
|
14
|
-
secureConnection: false,
|
|
15
|
-
tls: {
|
|
16
|
-
ciphers: 'SSLv3'
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
logger: {
|
|
20
|
-
file: {
|
|
21
|
-
filename: 'logs/application-%DATE%.log',
|
|
22
|
-
datePattern: 'YYYY-MM-DD-HH',
|
|
23
|
-
zippedArchive: false,
|
|
24
|
-
maxSize: '20m',
|
|
25
|
-
maxFiles: '2d',
|
|
26
|
-
level: 'info'
|
|
27
|
-
},
|
|
28
|
-
console: {
|
|
29
|
-
level: 'silly'
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
// ormconfig: {
|
|
33
|
-
// name: 'default',
|
|
34
|
-
// type: 'sqlite',
|
|
35
|
-
// database: 'db.sqlite',
|
|
36
|
-
// synchronize: false,
|
|
37
|
-
// logging: true,
|
|
38
|
-
// logger: 'debug'
|
|
39
|
-
// },
|
|
40
|
-
ormconfig: {
|
|
41
|
-
name: 'default',
|
|
42
|
-
type: 'postgres',
|
|
43
|
-
host: 'postgres',
|
|
44
|
-
port: 5432,
|
|
45
|
-
database: 'postgres',
|
|
46
|
-
username: 'postgres',
|
|
47
|
-
password: 'abcd1234',
|
|
48
|
-
synchronize: true,
|
|
49
|
-
logging: true
|
|
50
|
-
},
|
|
51
|
-
scheduler: {
|
|
52
|
-
/* Name to be used for setting client's "application" properties when registering a schedule */
|
|
53
|
-
application: 'operato-hub',
|
|
54
|
-
/* Base endpoint to be used for setting "callback" properties when registering a schedule */
|
|
55
|
-
callbackBase: 'http://app:3000',
|
|
56
|
-
/*
|
|
57
|
-
Scheduler service endpoint
|
|
58
|
-
caution) endpoint for "localhost" has some problem.
|
|
59
|
-
https://github.com/node-fetch/node-fetch/issues/1624
|
|
60
|
-
*/
|
|
61
|
-
endpoint: 'http://scheduler:9902'
|
|
62
|
-
}
|
|
63
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
version: '3'
|
|
2
|
-
services:
|
|
3
|
-
nginx:
|
|
4
|
-
image: hatiolab/operato-nginx:latest
|
|
5
|
-
ports:
|
|
6
|
-
- ${HostPort}:80
|
|
7
|
-
depends_on:
|
|
8
|
-
- app
|
|
9
|
-
app:
|
|
10
|
-
container_name: operato-hub
|
|
11
|
-
image: hatiolab/operato-hub:latest
|
|
12
|
-
privileged: true
|
|
13
|
-
volumes:
|
|
14
|
-
- ./logs:/app/logs
|
|
15
|
-
- ./config.production.js:/app/config.production.js
|
|
16
|
-
ports:
|
|
17
|
-
- 4000:3000
|
|
18
|
-
depends_on:
|
|
19
|
-
- postgres
|
|
20
|
-
- mosquitto
|
|
21
|
-
- scheduler
|
|
22
|
-
logging:
|
|
23
|
-
driver: 'json-file'
|
|
24
|
-
options:
|
|
25
|
-
max-size: '100m'
|
|
26
|
-
max-file: '3'
|
|
27
|
-
postgres:
|
|
28
|
-
image: postgres:13.2
|
|
29
|
-
container_name: db-operato-hub
|
|
30
|
-
environment:
|
|
31
|
-
POSTGRES_PASSWORD: abcd1234
|
|
32
|
-
POSTGRES_USER: postgres
|
|
33
|
-
PGDATA: /var/lib/postgresql/data/pgdata
|
|
34
|
-
volumes:
|
|
35
|
-
- ./postgres_data:/var/lib/postgresql/data/pgdata
|
|
36
|
-
ports:
|
|
37
|
-
- '55432:5432'
|
|
38
|
-
mosquitto:
|
|
39
|
-
image: eclipse-mosquitto:1.6.12
|
|
40
|
-
ports:
|
|
41
|
-
- 1883:1883
|
|
42
|
-
- 9001:9001
|
|
43
|
-
scheduler:
|
|
44
|
-
image: hatiolab/schevt-mgr:latest
|
|
45
|
-
container_name: scheduler
|
|
46
|
-
volumes:
|
|
47
|
-
- ./config.yaml:/app/config.yaml
|
|
48
|
-
ports:
|
|
49
|
-
- '9902:9902'
|
|
50
|
-
logging:
|
|
51
|
-
driver: 'json-file'
|
|
52
|
-
options:
|
|
53
|
-
max-size: '100m'
|
|
54
|
-
max-file: '3'
|
package/installer/install.sh
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
if [ -f "config.production.js" ] ; then
|
|
2
|
-
echo "config.production.js exist"
|
|
3
|
-
else
|
|
4
|
-
echo "config.production.js create"
|
|
5
|
-
curl -O https://raw.githubusercontent.com/things-factory/things-factory/master/packages/operato-hub/installer/config.production.js
|
|
6
|
-
fi
|
|
7
|
-
|
|
8
|
-
if [ -f "start.sh" ] ; then
|
|
9
|
-
echo "start.sh exist"
|
|
10
|
-
else
|
|
11
|
-
echo "start.sh create"
|
|
12
|
-
curl -O https://raw.githubusercontent.com/things-factory/things-factory/master/packages/operato-hub/installer/start.sh
|
|
13
|
-
fi
|
|
14
|
-
|
|
15
|
-
if [ -f "stop.sh" ] ; then
|
|
16
|
-
echo "stop.sh exist"
|
|
17
|
-
else
|
|
18
|
-
echo "stop.sh create"
|
|
19
|
-
curl -O https://raw.githubusercontent.com/things-factory/things-factory/master/packages/operato-hub/installer/stop.sh
|
|
20
|
-
fi
|
|
21
|
-
|
|
22
|
-
if [ -f "upgrade.sh" ] ; then
|
|
23
|
-
echo "upgrade.sh exist"
|
|
24
|
-
else
|
|
25
|
-
echo "upgrade.sh create"
|
|
26
|
-
curl -O https://raw.githubusercontent.com/things-factory/things-factory/master/packages/operato-hub/installer/upgrade.sh
|
|
27
|
-
fi
|
|
28
|
-
|
|
29
|
-
if [ -f "migrate.sh" ] ; then
|
|
30
|
-
echo "migrate.sh exist"
|
|
31
|
-
else
|
|
32
|
-
echo "migrate.sh create"
|
|
33
|
-
curl -O https://raw.githubusercontent.com/things-factory/things-factory/master/packages/operato-hub/installer/migrate.sh
|
|
34
|
-
fi
|
|
35
|
-
|
|
36
|
-
if [ -f "docker-compose.yml" ] ; then
|
|
37
|
-
echo "docker-compose.yml exist"
|
|
38
|
-
else
|
|
39
|
-
echo "docker-compose.yml create"
|
|
40
|
-
curl -O https://raw.githubusercontent.com/things-factory/things-factory/master/packages/operato-hub/installer/docker-compose.yml
|
|
41
|
-
fi
|
|
42
|
-
|
|
43
|
-
chmod u+x start.sh
|
|
44
|
-
chmod u+x stop.sh
|
|
45
|
-
chmod u+x upgrade.sh
|
|
46
|
-
chmod u+x migrate.sh
|
|
47
|
-
|
|
48
|
-
echo "HostPort=3000" > .env
|
|
49
|
-
|
|
50
|
-
docker pull hatiolab/operato-hub:latest
|
|
51
|
-
|
|
52
|
-
docker pull hatiolab/operato-nginx:latest
|
|
53
|
-
|
|
54
|
-
docker-compose create
|
package/installer/migrate.sh
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
docker exec -it operato-hub npm run migration -- --mode=production
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
server {
|
|
2
|
-
|
|
3
|
-
server_name hub.myoperato.com;
|
|
4
|
-
access_log off;
|
|
5
|
-
|
|
6
|
-
location / {
|
|
7
|
-
proxy_pass http://localhost:4000;
|
|
8
|
-
proxy_set_header Host $host:$server_port;
|
|
9
|
-
proxy_set_header X-Forwarded-Host $server_name;
|
|
10
|
-
proxy_set_header X-Real-IP $remote_addr;
|
|
11
|
-
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
12
|
-
proxy_set_header Upgrade $http_upgrade;
|
|
13
|
-
proxy_set_header Connection "upgrade";
|
|
14
|
-
proxy_http_version 1.1;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
listen [::]:443 ssl ipv6only=on; # managed by Certbot
|
|
18
|
-
listen 443 ssl; # managed by Certbot
|
|
19
|
-
ssl_certificate /etc/letsencrypt/live/hub.myoperato.com/fullchain.pem; # managed by Certbot
|
|
20
|
-
ssl_certificate_key /etc/letsencrypt/live/hub.myoperato.com/privkey.pem; # managed by Certbot
|
|
21
|
-
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
|
|
22
|
-
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
server {
|
|
27
|
-
server_name hub.myoperato.com;
|
|
28
|
-
|
|
29
|
-
listen 80 default_server;
|
|
30
|
-
listen [::]:80 default_server;
|
|
31
|
-
|
|
32
|
-
return 301 https://$host$request_uri;
|
|
33
|
-
}
|
package/installer/start.sh
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
HOST_PORT=3000
|
|
2
|
-
|
|
3
|
-
if [ $# -eq 0 ] ; then
|
|
4
|
-
echo "Warning: default port 3000"
|
|
5
|
-
else
|
|
6
|
-
HOST_PORT=$1
|
|
7
|
-
fi
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
echo "HOST_PORT : ${HOST_PORT}"
|
|
11
|
-
|
|
12
|
-
echo "HostPort="$HOST_PORT > .env
|
|
13
|
-
|
|
14
|
-
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
|
|
15
|
-
xhost +"local:docker@"
|
|
16
|
-
fi
|
|
17
|
-
|
|
18
|
-
docker-compose up -d
|
package/installer/stop.sh
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
docker-compose stop
|
package/installer/upgrade.sh
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
curl -fsSL https://raw.githubusercontent.com/things-factory/things-factory/master/packages/operato-hub/installer/install.sh | bash -s
|