@@ -19,7 +19,7 @@ import (
1919 "github.com/spf13/cobra"
2020)
2121
22- const inletsProDefaultVersion = "0.9.18 "
22+ const inletsProDefaultVersion = "0.9.21 "
2323const inletsProControlPort = 8123
2424
2525func init () {
@@ -49,7 +49,7 @@ func init() {
4949 createCmd .Flags ().String ("endpoint" , "ovh-eu" , "API endpoint (ovh), default: ovh-eu" )
5050 createCmd .Flags ().String ("consumer-key" , "" , "The Consumer Key for using the OVH API" )
5151
52- createCmd .Flags ().Bool ("tcp" , true , `Provision an exit-server with inlets Pro running as a TCP server` )
52+ createCmd .Flags ().Bool ("tcp" , true , `Provision an exit-server with inlets running as a TCP server` )
5353
5454 createCmd .Flags ().StringArray ("letsencrypt-domain" , []string {}, `Domains you want to get a Let's Encrypt certificate for` )
5555 createCmd .Flags ().String ("letsencrypt-issuer" , "prod" , `The issuer endpoint to use with Let's Encrypt - \"prod\" or \"staging\"` )
@@ -59,22 +59,35 @@ func init() {
5959 _ = createCmd .Flags ().MarkHidden ("pro" )
6060 createCmd .Flags ().DurationP ("poll" , "n" , time .Second * 2 , "poll every N seconds, use a higher value if you encounter rate-limiting" )
6161
62- createCmd .Flags ().String ("inlets-pro-version" , inletsProDefaultVersion , `Binary release version for inlets Pro` )
63-
62+ createCmd .Flags ().String ("inlets-version" , inletsProDefaultVersion , `Binary release version for inlets` )
6463}
6564
6665// clientCmd represents the client sub command.
6766var createCmd = & cobra.Command {
6867 Use : "create" ,
69- Short : "Create an exit-server with inlets Pro preinstalled." ,
70- Long : `Create an exit-server with inlets Pro preinstalled on cloud infrastructure
71- with inlets Pro preloaded as a systemd service. The estimated cost of each
68+ Short : "Create an exit-server with inlets preinstalled." ,
69+ Long : `Create an exit-server with inlets preinstalled on cloud infrastructure
70+ with inlets preloaded as a systemd service. The estimated cost of each
7271VM along with what OS version and spec will be used is explained in the
7372project docs.` ,
74- Example : ` inletsctl create \
73+ Example : ` # Create a TCP tunnel server
74+ inletsctl create \
7575 --provider [digitalocean|equinix-metal|ec2|scaleway|civo|gce|azure|linode|hetzner] \
7676 --access-token-file $HOME/access-token \
77- --region lon1` ,
77+ --region lon1
78+
79+ # Create a HTTPS tunnel server, terminating TLS with a certificate
80+ # from Let's Encrypt
81+ inletsctl create \
82+ --letsencrypt-domain inlets.example.com \
83+ --letsencrypt-email [email protected] 84+
85+ # Create a HTTPS tunnel server with multiple domains
86+ inletsctl create \
87+ --letsencrypt-domain tunnel1.example.com \
88+ --letsencrypt-domain tunnel2.example.com \
89+ --letsencrypt-email [email protected] 90+ ` ,
7891 RunE : runCreate ,
7992 SilenceUsage : true ,
8093 SilenceErrors : true ,
@@ -264,10 +277,11 @@ func runCreate(cmd *cobra.Command, _ []string) error {
264277 }
265278 }
266279
267- inletsProVersion , err := cmd .Flags ().GetString ("inlets-pro- version" )
280+ inletsProVersion , err := cmd .Flags ().GetString ("inlets-version" )
268281 if err != nil {
269282 return err
270283 }
284+
271285 if len (inletsProVersion ) == 0 {
272286 inletsProVersion = inletsProDefaultVersion
273287 }
@@ -336,7 +350,7 @@ func runCreate(cmd *cobra.Command, _ []string) error {
336350
337351 if hostStatus .Status == "active" {
338352 if len (letsencryptDomains ) > 0 {
339- fmt .Printf (`inlets Pro HTTPS (%s) server summary:
353+ fmt .Printf (`inlets HTTPS (%s) server summary:
340354 IP: %s
341355 HTTPS Domains: %v
342356 Auth-token: %s
@@ -368,7 +382,7 @@ To delete:
368382
369383 return nil
370384 } else {
371- fmt .Printf (`inlets Pro TCP (%s) server summary:
385+ fmt .Printf (`inlets TCP (%s) server summary:
372386 IP: %s
373387 Auth-token: %s
374388
@@ -527,7 +541,7 @@ func createHost(provider, name, region, zone, projectID, userData, inletsPort st
527541
528542 return & provision.BasicHost {
529543 Name : name ,
530- OS : "ubuntu/images/hvm-ssd/ubuntu-focal-20 .04-amd64-server-20210621 " ,
544+ OS : "ubuntu/images/hvm-ssd/ubuntu-jammy-22 .04-amd64-server-20230516 " ,
531545 Plan : "t3.nano" ,
532546 Region : region ,
533547 UserData : base64 .StdEncoding .EncodeToString ([]byte (userData )),
0 commit comments