Add your Arweave gateway to Media Network
To scale your vartex gateway and make it available through a community-powered CDN, you can register it as a resource on Media Network using the Media App front-end.
- Make sure you have vartex installed.
- Make sure your gateway is accessible.
- Make sure you have a compatible wallet with enough MEDIA to use the CDN service. MEDIA is currently available to buy in the following markets.
Step 1 - Find out Arweave's gateway port and IP address:
In this step you'll have to find out the details about your Arweave gateway to be able to add it later on to Media Network. You can check what is running in each port by exectuing the following command:
In this case we can check that the docker container running the gateway is running on port 3000 under PID 19079
Now let's check the external IP address of your device:
In this case, we can check that the external IP address is 18.104.22.168 using the eno1 interface.
This means your Arweave gateway is running at the following URL, which is what you'll need to add as a CDN resource:
Step 2 - Add your resource to the network
Access the Media App, connect your wallet and add a new CDN resource. Specify IP, port and approve the transaction.
Add a custom CNAME
Finalizing the process
After the transaction is confirmed on the blockchain, a new random subdomain will be assigned to you. This is your new endpoint URL cached by Media Network.
Congrats! Your Arweave gateway is now powered and scaled by Media Network's dCDN. End-users accessing the new link will load the resources from their closest Media Edge node instead of your original server.
You can now serve any content hosted on the Arweave network to your end-users, through your own Arweave Miner/Gateway combination via Media's dCDN.