inlets / inletsctl

Create inlets servers on the top cloud platforms
https://docs.inlets.dev/
MIT License
457 stars 63 forks source link

Add OVH as new cloud provider for inletsctl #113

Closed dirien closed 2 years ago

dirien commented 2 years ago

Signed-off-by: Engin Diri engin.diri@mail.schwarz

Description

Fixes #112

How Has This Been Tested?

How are existing users impacted? What migration steps/scripts do we need?

inletsctl . create -p ovh -a xxx --secret-key yy --consumer-key zz --project-id ww
Using provider: ovh
Requesting host: tender-booth8 in DE1, from ovh
Host: 04790f26-1042-408e-bb2f-1d869acba505, status: BUILDING
[1/500] Host: 04790f26-1042-408e-bb2f-1d869acba505, status: BUILD
[2/500] Host: 04790f26-1042-408e-bb2f-1d869acba505, status: BUILD
[3/500] Host: 04790f26-1042-408e-bb2f-1d869acba505, status: BUILD
[4/500] Host: 04790f26-1042-408e-bb2f-1d869acba505, status: BUILD
[5/500] Host: 04790f26-1042-408e-bb2f-1d869acba505, status: BUILD
[6/500] Host: 04790f26-1042-408e-bb2f-1d869acba505, status: active
inlets PRO TCP (0.8.8) server summary:
  IP: 135.125.245.141
  Auth-token: xx
Create exit node:
nlets-pro tcp client --url "wss://135.125.245.141:8123" \
  --token "GtvTLNLJR2O3CdVru817dPAIFWa3WlChlmZFnZ20NXQOMkERfxRvDofMOxt31duC" \
  --upstream $UPSTREAM \
  --ports $PORTS

2021/08/04 12:57:28 Starting TCP client. Version 0.8.5 - 8db64ded51b1455cf4ad027c52bc9cfbeb55c4b3
2021/08/04 12:57:28 Licensed to: Engin Diri <Engin.Diri@mail.schwarz>, expires: 18 day(s)
2021/08/04 12:57:28 Upstream server: localhost, for ports: 8080
inlets-pro client. Copyright Alex Ellis, OpenFaaS Ltd 2020
INFO[2021/08/04 12:57:29] Connecting to proxy                           url="wss://135.125.245.141:8123/connect"
INFO[2021/08/04 12:57:29] Connection established.. OK.

Test local service:

curl 135.125.245.141:8080
<!DOCTYPE html>
<html>
<head>
<title>Welcome to nginx!</title>
<style>
    body {
        width: 35em;
        margin: 0 auto;
        font-family: Tahoma, Verdana, Arial, sans-serif;
    }
</style>
</head>
<body>
<h1>Welcome to nginx!</h1>
<p>If you see this page, the nginx web server is successfully installed and
working. Further configuration is required.<
...

Checklist:

I have:

dirien commented 2 years ago

Hi @alexellis, when you got time can you check this PR?

alexellis commented 2 years ago

LGTM, please can you add instructions to the docs for this new provider?

https://docs.inlets.dev/#/tools/inletsctl?id=inletsctl-reference-documentation