Testing gateway configuration
After saving a gateway, lightwing will generate unique URL. This URL can be accessed using web browser. If configured correctly, lightwing will redirect traffic to the target server. Lightwing will also start the server if it is not running and shuts it down once the idle period is reached.
For this example, lightwing autogenerated URL is: 1-staging1.gateway.lightwing.io
. Running a curl command can confirm it is working:
> curl 1-staging1.gateway.lightwing.io
You can also configure a custom domain to the lightwing generated URL. Read Configuring custom domains for a detailed explanation.