tlsd 2.6.6 → 2.7.0

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/tlsd +4 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tlsd",
3
- "version": "2.6.6",
3
+ "version": "2.7.0",
4
4
  "description": "A server for web app prototyping with HTTPS and Websockets",
5
5
  "main": "tlsd.js",
6
6
  "bin": {
package/tlsd CHANGED
@@ -97,8 +97,11 @@ fi
97
97
 
98
98
  if [ "$cmd" = "domain" ] ; then
99
99
  domain="$2"
100
+ root="$3"
100
101
  if cd "$home" ; then
101
- npx greenlock add --subject "$domain" --altnames "$domain"
102
+ if npx greenlock add --subject "$domain" --altnames "$domain" ; then
103
+ ln -s "$root" "$home/domains/$domain"
104
+ fi
102
105
  exit 0
103
106
  else
104
107
  exit 1