-
After cloning the project, edit your
/etc/hosts
file to add the following line at the end of the file:127.0.0.1 proxied.local
-
open a terminal and navigate to the
nginx-https-proxy
folder. Run thegenerate.sh
script to create a set of keys for local https:/path/to/repo $ cd nginx-https-proxy /path/to/repo/nginx-https-proxy $ ./generate.sh
-
Start the proxy demo by running
docker compose up
:/path/to/repo/nginx-https-proxy $ docker compose up
-
In a new terminal window, navigate back to the root of the project and run
yarn install
:/path/to/repo $ yarn install
-
Once the dependencies are installed, run
edg dev
to start up the edgio dev server:/path/to/repo $ edg dev
-
Test that the proxied call works properly by navigating to
http://localhost:3000
in your browser. You should see the contents of the nginx server, which is only available via HTTPS. You can further verify that the nginx service is only available by HTTPS by curlinghttp://proxied.local
- you should get a "Connection refused" error. If you curlhttps://proxied.local
however, you should get the boilerplate HTML page.