@ossy/deployment-tools 0.0.11 → 0.0.13
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/Caddfyle +9 -0
- package/caddyfile.json +114 -0
- package/dist/index.js +20 -7
- package/package.json +1 -1
- package/src/caddy-client.js +19 -6
- package/src/index.js +1 -1
package/Caddfyle
ADDED
package/caddyfile.json
ADDED
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
{
|
|
2
|
+
"apps":{
|
|
3
|
+
"http":{
|
|
4
|
+
"servers":{
|
|
5
|
+
"srv0":{
|
|
6
|
+
"listen":[
|
|
7
|
+
":443"
|
|
8
|
+
],
|
|
9
|
+
"routes":[
|
|
10
|
+
{
|
|
11
|
+
"match":[
|
|
12
|
+
{
|
|
13
|
+
"host":[
|
|
14
|
+
"*.qa.ossy.com"
|
|
15
|
+
]
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"handle":[
|
|
19
|
+
{
|
|
20
|
+
"handler":"subroute",
|
|
21
|
+
"routes":[
|
|
22
|
+
{
|
|
23
|
+
"group":"group2",
|
|
24
|
+
"handle":[
|
|
25
|
+
{
|
|
26
|
+
"handler":"subroute",
|
|
27
|
+
"routes":[
|
|
28
|
+
{
|
|
29
|
+
"handle":[
|
|
30
|
+
{
|
|
31
|
+
"handler":"reverse_proxy",
|
|
32
|
+
"upstreams":[
|
|
33
|
+
{
|
|
34
|
+
"dial":"localhost:3005"
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
]
|
|
39
|
+
}
|
|
40
|
+
]
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
"match":[
|
|
44
|
+
{
|
|
45
|
+
"host":[
|
|
46
|
+
"ci.qa.example.com"
|
|
47
|
+
]
|
|
48
|
+
}
|
|
49
|
+
]
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"group":"group2",
|
|
53
|
+
"handle":[
|
|
54
|
+
{
|
|
55
|
+
"handler":"subroute",
|
|
56
|
+
"routes":[
|
|
57
|
+
{
|
|
58
|
+
"handle":[
|
|
59
|
+
{
|
|
60
|
+
"body":"Wrong turn!",
|
|
61
|
+
"handler":"static_response"
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
]
|
|
66
|
+
}
|
|
67
|
+
]
|
|
68
|
+
}
|
|
69
|
+
]
|
|
70
|
+
}
|
|
71
|
+
],
|
|
72
|
+
"terminal":true
|
|
73
|
+
}
|
|
74
|
+
]
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"tls":{
|
|
79
|
+
"automation":{
|
|
80
|
+
"policies":[
|
|
81
|
+
{
|
|
82
|
+
"subjects":[
|
|
83
|
+
"*.qa.ossy.com"
|
|
84
|
+
],
|
|
85
|
+
"issuers":[
|
|
86
|
+
{
|
|
87
|
+
"challenges":{
|
|
88
|
+
"dns":{
|
|
89
|
+
"provider":{
|
|
90
|
+
"max_retries":10,
|
|
91
|
+
"name":"route53"
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"module":"acme"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"challenges":{
|
|
99
|
+
"dns":{
|
|
100
|
+
"provider":{
|
|
101
|
+
"max_retries":10,
|
|
102
|
+
"name":"route53"
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
"module":"zerossl"
|
|
107
|
+
}
|
|
108
|
+
]
|
|
109
|
+
}
|
|
110
|
+
]
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
package/dist/index.js
CHANGED
|
@@ -28462,16 +28462,29 @@ class CaddyClient {
|
|
|
28462
28462
|
automation: {
|
|
28463
28463
|
policies: [
|
|
28464
28464
|
{
|
|
28465
|
-
|
|
28465
|
+
subjects:['*.qa.ossy.com'],
|
|
28466
|
+
issuers:[
|
|
28466
28467
|
{
|
|
28467
|
-
|
|
28468
|
-
|
|
28469
|
-
|
|
28470
|
-
|
|
28468
|
+
challenges:{
|
|
28469
|
+
dns:{
|
|
28470
|
+
provider:{
|
|
28471
|
+
'max_retries': 10,
|
|
28471
28472
|
name: 'route53'
|
|
28472
28473
|
}
|
|
28473
28474
|
}
|
|
28474
|
-
}
|
|
28475
|
+
},
|
|
28476
|
+
module: 'acme'
|
|
28477
|
+
},
|
|
28478
|
+
{
|
|
28479
|
+
challenges:{
|
|
28480
|
+
dns:{
|
|
28481
|
+
provider:{
|
|
28482
|
+
'max_retries': 10,
|
|
28483
|
+
name: 'route53'
|
|
28484
|
+
}
|
|
28485
|
+
}
|
|
28486
|
+
},
|
|
28487
|
+
module: 'zerossl'
|
|
28475
28488
|
}
|
|
28476
28489
|
]
|
|
28477
28490
|
}
|
|
@@ -28853,7 +28866,7 @@ Environment=DEPLOYMENT_TOOLS_ENVIRONMENT_NAME=${environmentName}
|
|
|
28853
28866
|
Environment=DEPLOYMENT_TOOLS_CI_SUB_DOMAIN=${ciSubDomain}
|
|
28854
28867
|
Environment=DEPLOYMENT_TOOLS_PORT=${port}
|
|
28855
28868
|
User=root
|
|
28856
|
-
ExecStart=npx @ossy/deployment-tools start-container-manager
|
|
28869
|
+
ExecStart=sudo npx @ossy/deployment-tools start-container-manager
|
|
28857
28870
|
Restart=on-failure
|
|
28858
28871
|
|
|
28859
28872
|
[Install]
|
package/package.json
CHANGED
package/src/caddy-client.js
CHANGED
|
@@ -60,16 +60,29 @@ class CaddyClient {
|
|
|
60
60
|
automation: {
|
|
61
61
|
policies: [
|
|
62
62
|
{
|
|
63
|
-
|
|
63
|
+
subjects:['*.qa.ossy.com'],
|
|
64
|
+
issuers:[
|
|
64
65
|
{
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
66
|
+
challenges:{
|
|
67
|
+
dns:{
|
|
68
|
+
provider:{
|
|
69
|
+
'max_retries': 10,
|
|
69
70
|
name: 'route53'
|
|
70
71
|
}
|
|
71
72
|
}
|
|
72
|
-
}
|
|
73
|
+
},
|
|
74
|
+
module: 'acme'
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
challenges:{
|
|
78
|
+
dns:{
|
|
79
|
+
provider:{
|
|
80
|
+
'max_retries': 10,
|
|
81
|
+
name: 'route53'
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
module: 'zerossl'
|
|
73
86
|
}
|
|
74
87
|
]
|
|
75
88
|
}
|
package/src/index.js
CHANGED
|
@@ -32,7 +32,7 @@ Environment=DEPLOYMENT_TOOLS_ENVIRONMENT_NAME=${config.environmentName}
|
|
|
32
32
|
Environment=DEPLOYMENT_TOOLS_CI_SUB_DOMAIN=${config.ciSubDomain}
|
|
33
33
|
Environment=DEPLOYMENT_TOOLS_PORT=${config.port}
|
|
34
34
|
User=root
|
|
35
|
-
ExecStart=npx @ossy/deployment-tools start-container-manager
|
|
35
|
+
ExecStart=sudo npx @ossy/deployment-tools start-container-manager
|
|
36
36
|
Restart=on-failure
|
|
37
37
|
|
|
38
38
|
[Install]
|