You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+16-18
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
# Expose localhost using EC2
2
-
Expose an app/api running on local host to public internet using AWS EC2
2
+
Reverse proxy that creates a secure tunnel from public endpoint to locally running web service
3
3
4
4
### Requirements
5
5
- Access to an AWS account and [AWS CLI](https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html#getting-started-install-instructions) configured.
@@ -29,7 +29,7 @@ The public DNS names for EC2 instances are long and messy. To avoid that, an `A`
29
29
30
30
:warning: Requires an active hosted zone on `route53`.
31
31
32
-
-**DOMAIN**: Domain name registered using `route53`. *Example: `mywebsite.com`*
32
+
-**HOSTED_ZONE**: Hosted zone name registered using `route53`. *Example: `mywebsite.com`*
33
33
-**SUBDOMAIN**: Sub-domain that has to be added for the domain name. *Example: `tunnel`*
34
34
35
35
:bulb: `tunnel.mywebsite.com` will be the endpoint to access the localhost from public internet.
@@ -47,17 +47,17 @@ The public DNS names for EC2 instances are long and messy. To avoid that, an `A`
47
47
48
48
:warning: Some web browsers might throw a warning and some might even block a self-signed certificate/private CA.
<liclass="nav-item nav-item-this"><ahref="">Expose localhost using EC2</a></li>
@@ -44,7 +44,7 @@ <h3>Navigation</h3>
44
44
45
45
<sectionid="expose-localhost-using-ec2">
46
46
<h1>Expose localhost using EC2<aclass="headerlink" href="#expose-localhost-using-ec2" title="Permalink to this heading">¶</a></h1>
47
-
<p>Expose an app/api running on local host to public internet using AWS EC2</p>
47
+
<p>Reverse proxy that creates a secure tunnel from public endpoint to locally running web service</p>
48
48
<sectionid="requirements">
49
49
<h2>Requirements<aclass="headerlink" href="#requirements" title="Permalink to this heading">¶</a></h2>
50
50
<ulclass="simple">
@@ -76,7 +76,7 @@ <h3>Environment Variables:<a class="headerlink" href="#environment-variables" ti
76
76
<summary><strong>Setup a custom endpoint</strong></summary><p>The public DNS names for EC2 instances are long and messy. To avoid that, an <codeclass="docutils literal notranslate"><spanclass="pre">A</span></code> record can be added to the <codeclass="docutils literal notranslate"><spanclass="pre">route53</span></code> hosted zone.</p>
77
77
<p>:warning: Requires an active hosted zone on <codeclass="docutils literal notranslate"><spanclass="pre">route53</span></code>.</p>
78
78
<ulclass="simple">
79
-
<li><p><strong>DOMAIN</strong>: Domain name registered using <codeclass="docutils literal notranslate"><spanclass="pre">route53</span></code>. <em>Example: <codeclass="docutils literal notranslate"><spanclass="pre">mywebsite.com</span></code></em></p></li>
79
+
<li><p><strong>HOSTED_ZONE</strong>: Hosted zone name registered using <codeclass="docutils literal notranslate"><spanclass="pre">route53</span></code>. <em>Example: <codeclass="docutils literal notranslate"><spanclass="pre">mywebsite.com</span></code></em></p></li>
80
80
<li><p><strong>SUBDOMAIN</strong>: Sub-domain that has to be added for the domain name. <em>Example: <codeclass="docutils literal notranslate"><spanclass="pre">tunnel</span></code></em></p></li>
81
81
</ul>
82
82
<p> :bulb: <codeclass="docutils literal notranslate"><spanclass="pre">tunnel.mywebsite.com</span></code> will be the endpoint to access the localhost from public internet.</p>
@@ -91,16 +91,19 @@ <h3>Certificate:<a class="headerlink" href="#certificate" title="Permalink to th
91
91
</ul>
92
92
<details>
93
93
<summary><strong>Generate self-signed SSL certificate</strong></summary><p>:warning: Some web browsers might throw a warning and some might even block a self-signed certificate/private CA.</p>
<p>Simply let <codeclass="docutils literal notranslate"><spanclass="pre">expose</span></code> create a self-signed SSL certificate and a private key. <strong>(Default behavior)</strong></p>
94
+
<p><codeclass="docutils literal notranslate"><spanclass="pre">expose</span></code> creates a self-signed SSL certificate and a private key by default.</p>
100
95
<ulclass="simple">
101
96
<li><p><strong>EMAIL_ADDRESS</strong>: Email address to create the self-signed SSL and private key. Defaults to <codeclass="docutils literal notranslate"><spanclass="pre">USER@expose-localhost.com</span></code></p></li>
102
97
<li><p><strong>ORGANIZATION</strong>: Organization name for the certificate. Defaults to the AWS endpoint.</p></li>
@@ -144,11 +145,11 @@ <h3>Tunneling:<a class="headerlink" href="#tunneling" title="Permalink to this h
144
145
<sectionid="limitations">
145
146
<h2>Limitations<aclass="headerlink" href="#limitations" title="Permalink to this heading">¶</a></h2>
146
147
<p>Currently <codeclass="docutils literal notranslate"><spanclass="pre">expose</span></code> cannot handle, tunneling multiple port numbers without modifying the following env vars in the <codeclass="docutils literal notranslate"><spanclass="pre">.env</span></code> file.</p>
Copy file name to clipboardexpand all lines: docs/_sources/README.md.txt
+16-18
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
# Expose localhost using EC2
2
-
Expose an app/api running on local host to public internet using AWS EC2
2
+
Reverse proxy that creates a secure tunnel from public endpoint to locally running web service
3
3
4
4
### Requirements
5
5
- Access to an AWS account and [AWS CLI](https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html#getting-started-install-instructions) configured.
@@ -29,7 +29,7 @@ The public DNS names for EC2 instances are long and messy. To avoid that, an `A`
29
29
30
30
:warning: Requires an active hosted zone on `route53`.
31
31
32
-
- **DOMAIN**: Domain name registered using `route53`. *Example: `mywebsite.com`*
32
+
- **HOSTED_ZONE**: Hosted zone name registered using `route53`. *Example: `mywebsite.com`*
33
33
- **SUBDOMAIN**: Sub-domain that has to be added for the domain name. *Example: `tunnel`*
34
34
35
35
:bulb: `tunnel.mywebsite.com` will be the endpoint to access the localhost from public internet.
@@ -47,17 +47,17 @@ The public DNS names for EC2 instances are long and messy. To avoid that, an `A`
47
47
48
48
:warning: Some web browsers might throw a warning and some might even block a self-signed certificate/private CA.
0 commit comments