Cloudflared
With Cloudflare Tunnels you can expose your local server to the internet.
Setup
- Make sure you own a domain and it's connected to cloudflare.
- From your site's dashboard, navigate to
Access > Networks > Tunnels
. - Click
Create a tunnel
and selectCloudflared
. - Give it a name and install the connector.
Wildcard
Using a wildcard will allow you to map all apps in your fishweb root folder to a subdomain for your domain. This makes it easier to quickly setup a subdomain for new apps.
- Add
*
as the subdomain and select your domain. Then set origin service.
- Go back to the DNS configuration and create a new
CNAME
record. With name*
and target<tunnel-id>.cfargotunnel.com
.
Specific App
If you don't want all your fishweb apps to be accessible via your domain you can set a specific subdomain for an app.
- Here instead of using a wildcard subdomain put the name of your app's folder.