@uscreen.de/dev-service 0.11.9 → 0.11.12
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uscreen.de/dev-service",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.12",
|
|
4
4
|
"description": "cli to manage services in dev repos",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -42,17 +42,17 @@
|
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@uscreen.de/eslint-config-prettystandard-node": "^0.2.2",
|
|
44
44
|
"husky": ">=6",
|
|
45
|
-
"lint-staged": ">=12.3.
|
|
46
|
-
"tap": "^
|
|
45
|
+
"lint-staged": ">=12.3.7",
|
|
46
|
+
"tap": "^16.0.1"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"c8": "^7.11.0",
|
|
50
|
-
"commander": "^9.
|
|
50
|
+
"commander": "^9.1.0",
|
|
51
51
|
"fs-extra": "^10.0.1",
|
|
52
|
-
"nanoid": "^3.3.
|
|
52
|
+
"nanoid": "^3.3.2",
|
|
53
53
|
"parse-json": "^6.0.2",
|
|
54
54
|
"read-pkg": "^7.1.0",
|
|
55
|
-
"yaml": "^
|
|
55
|
+
"yaml": "^2.0.1"
|
|
56
56
|
},
|
|
57
57
|
"lint-staged": {
|
|
58
58
|
"*.js": "eslint --cache --fix"
|
package/src/install.js
CHANGED
|
@@ -31,8 +31,8 @@ const OPTIONS_PATH = path.resolve(SERVICES_DIR, '.options')
|
|
|
31
31
|
* Helper methods
|
|
32
32
|
*/
|
|
33
33
|
const getName = (service) => {
|
|
34
|
-
const
|
|
35
|
-
const [name] =
|
|
34
|
+
const withoutTag = service.replace(/:[a-z0-9_][a-z0-9_.-]{0,127}$/i, '')
|
|
35
|
+
const [name] = withoutTag.split('/').slice(-1)
|
|
36
36
|
|
|
37
37
|
return name
|
|
38
38
|
}
|
|
@@ -1 +1,47 @@
|
|
|
1
1
|
Add your ssl certificates here.
|
|
2
|
+
|
|
3
|
+
Or create some locally trusted with `mkcert` (https://mkcert.dev)
|
|
4
|
+
|
|
5
|
+
Domain + Subdomain:
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
mkcert -key-file key.pem -cert-file cert.pem example.com *.example.com
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Or just localhost:
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
mkcert -key-file key.pem -cert-file cert.pem localhost
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Should output
|
|
18
|
+
|
|
19
|
+
```
|
|
20
|
+
❯ mkcert -key-file key.pem -cert-file cert.pem localhost
|
|
21
|
+
|
|
22
|
+
Created a new certificate valid for the following names 📜
|
|
23
|
+
- "localhost"
|
|
24
|
+
|
|
25
|
+
The certificate is at "cert.pem" and the key at "key.pem" ✅
|
|
26
|
+
|
|
27
|
+
It will expire on 10 August 2024 🗓
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Now add them to your config:
|
|
31
|
+
|
|
32
|
+
```
|
|
33
|
+
server {
|
|
34
|
+
listen 80;
|
|
35
|
+
server_name localhost;
|
|
36
|
+
return 301 https://$host$request_uri;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
server {
|
|
40
|
+
listen 443 ssl http2;
|
|
41
|
+
server_name localhost;
|
|
42
|
+
|
|
43
|
+
ssl_certificate ssl/cert.pem;
|
|
44
|
+
ssl_certificate_key ssl/key.pem;
|
|
45
|
+
# ...
|
|
46
|
+
}
|
|
47
|
+
```
|