Flux from First Principles: Decentralized Cloud Hosting, Containers, and Incentives
Published by Weisser Zwerg Blog on
Exploring FluxCloud for hosting a static website with containers, separate storage, and IPFS
Rationale
In Arweave and AR.IO from First Principles and Ethereum Swarm from First Principles, we explored decentralized storage for published files. Flux is a distributed Web3 cloud for running many kinds of applications and services. Independent infrastructure providers supply the computing resources, and its FluxCloud platform lets developers deploy containerized applications on that network. Here, we will focus on using it to run the server that delivers our website.
A useful starting analogy is FluxCloud ≈ Railway + independent infrastructure providers + token-based incentives. It describes the broad idea while leaving the practical differences to explore.
Our first experiment will use a simple nginx container serving generated website files from storage that we can update independently.
Republishing would then mean replacing the website files while the container keeps running.
We will work through how Flux provides the storage and container runtime.
A second approach runs IPFS nodes on Flux to pin each published website revision and serve it through IPFS gateways. We will also try the AR.IO gateways and ArNS naming system introduced in the Arweave article. The current AR.IO record tooling can save IPFS targets, but the tested gateways did not serve our IPFS publication. The naming appendix records that limitation and the working ENS and Unstoppable Domains alternatives.
As in the earlier articles, we will learn the system by foot: understand its moving parts, deploy something small, and follow what happens when we publish an update.
Before we start …
… we have to separate a few concepts that the word “cloud” tends to hide. With Flux, we rent computing resources, arrange how our files reach the machines running our application, and pay for those resources over time. The blockchain and its coin support that arrangement, while the website itself runs as an ordinary application.
To make these concepts concrete, suppose our entire website consists of index.html and style.css, as in the Swarm experiment.
We will follow those files through the nginx and IPFS approaches and see what changes when we correct a sentence in index.html, including which steps need a signature or a payment.
I want to work through the following aspects.
- Deploying containers
- Storage and publication updates
- Paying for hosting
- Blockchains and tokens involved
- Login, ownership, and payment identities
- Acquiring the funds we need
- Website over time
Deploying Containers
If you have used Docker Compose or Kubernetes, you already know the broad process. We choose container images, describe how they should run, and give that configuration to a system that creates and manages the deployment. The model is configuration → desired state → runtime makes it happen. Flux adds distributed placement across independent providers, signed ownership of the application configuration, and a prepaid hosting term.
Flux defines its own application specification and orchestration layer, while building on Docker’s container ecosystem. The configuration describes familiar things such as images, commands, environment variables, ports, volumes, and resource requirements. An existing Compose or Kubernetes configuration needs adaptation to Flux’s schema and its placement and storage rules.
For our website, the specification describes the server and its storage arrangement.
Supplying index.html and style.css is another operation.
We want to update those files while nginx keeps running, so it helps to understand both parts from the beginning.
The Application and Its Providers
A FluxNode is a server operated by an infrastructure provider. Its operator supplies hardware, maintains FLUX collateral, and meets the network’s performance requirements. As publishers, we rent capacity on those servers through FluxCloud. We can deploy our application without operating a FluxNode ourselves. The FluxNode introduction describes the provider’s side of this arrangement.
A component describes a container we want to run, such as nginx. An application instance is a deployment of the whole component arrangement on a particular FluxNode. With one component and three instances, we would have three nginx containers, each reading files from its own machine. If we added a helper component, three instances would normally give us three copies of that pair.
FluxCloud supports single-instance deployments, introduced with FluxCloud v2.5.0.
For v8 application specifications, the Flux v8.25.0 general instance-count check permits 1-100 instances after the activation at mainnet block 2,176,519.
See the docs for details:
The browser console adds a storage-dependent minimum for v8 applications:
| Storage configuration | Minimum instances in the form |
|---|---|
| Data synchronization disabled | 1 |
Syncthing enabled by any component’s r:, s:, or g: data path |
2 |
The frontend’s instance-count rules enforce this distinction. The node validator’s general lower bound and the console’s synchronized-storage lower bound describe different checks. The Docker registration guide still lists a minimum of three; the current v8 console offers the choices above.
Our nginx example uses three instances so that we can explore file replication and consistency across providers.
Its r: storage puts it in the console’s two-instance minimum category; the third copy is our choice for this experiment.
A single-instance experiment would use a volume path with data synchronization disabled.
Choose the Container Images
Each component uses an image from a registry, such as nginx:stable from Docker Hub.
We can use an existing image or build and publish our own.
The image must be available from a registry that the FluxNodes can reach.
The Docker deployment settings support Docker Hub and other registries, including authentication for private images through the Enterprise option.
Along with the registry reference, we specify the component’s commands, environment variables, ports, storage paths, and resource requirements. These are familiar from a Compose service definition. A version tag tells us which release we requested. Registry publishers can move tags, so recording the resolved image digest also tells us which image actually ran.
See Docker’s explanation of tags and digests for details.
Describe the Desired State
Flux’s configuration format is JSON.
An application has overall settings, such as its name, owner, and requested instance count. Its compose array contains the component definitions.
The following extract shows the core of our nginx example. Registration requires additional fields.
{
"version": 8,
"name": "exampleblog",
"instances": 3,
"compose": [
{
"name": "web",
"repotag": "nginx:stable",
"ports": [31080],
"containerPorts": [80],
"containerData": "r:/usr/share/nginx/html",
"cpu": 0.5,
"ram": 500,
"hdd": 5
}
]
}
Here, specification v8 identifies Flux’s JSON schema, including its fields and validation rules. Flux v8.25.0 identifies the software release whose implementation was examined for this article. Those are separate version numbers. Flux maintains the schema and its validator in its own code.
See Flux v8.25.0 specification validator for details.
The other settings request three application instances, each with an nginx container, a mapping from exposed port 31080 to container port 80, half a CPU core, 500 MB RAM, and 5 GB disk.
The containerData field mounts the document root at /usr/share/nginx/html.
Its r: prefix selects a replicated storage mode, which we will explore in the storage section.
FluxCloud’s registration forms provide a graphical way to construct this specification. An actual multi-component JSON example is available in Flux’s explorer repository.
Authorize and Register the Application
In the normal FluxCloud workflow, we validate the configuration, review the hosting quote and term, and sign an application message using the owner’s identity. Flux distributes the registration, tests whether the image can be pulled and launched, and presents the payment step. Confirmed payment enables the paid deployment. The registration guide walks through that sequence.
The signature gives the network a way to verify who authorized the configuration. For native FLUX payment, the blockchain transaction also carries the application-message hash that associates payment with the registration. Nodes exchange the full application message through the Flux network. We will return to this relationship in the blockchain section.
See Flux v8.25.0 payment processing for details.
Let Flux Place the Instances
Each provider runs Flux node software. Its application-spawning process looks for registered applications that have fewer instances than requested. A candidate node checks whether it can host the application. That includes available resources, image compatibility, port availability, placement restrictions, and the copies already running or being installed elsewhere. Nodes announce installation claims and check the count again to coordinate their attempts.
This is the distributed scheduling part of “makes it happen”. The requested instance count remains the target as machines join or disappear, providing the desired-state behavior familiar from Kubernetes controllers.
See Flux v8.25.0 application spawning for details.
Start the Containers on Each Host
Each hosting node translates the specification into local Docker operations. The installer creates the application’s Docker network, pulls the component images, prepares the storage, configures ports and resource limits, and creates the containers. Flux’s startup logic then brings them into service, including any storage-readiness conditions.
See Flux v8.25.0 application installer for details.
For this deployment path, the execution chain is
Flux application specification
|
Flux node software
|
Docker Engine API
|
Containers
Flux constructs the Docker configuration and calls Docker directly to create networks and containers.
See Flux v8.25.0 Docker integration for details.
For our nginx example, the resulting deployment would look like this.
One registered application specification
|
three application instances
|
+----------+----------+
| | |
Provider A Provider B Provider C
| | |
Docker Docker Docker
| | |
nginx nginx nginx
| | |
local data local data local data
+----------+----------+
configured file sync
A Flux instance is reasonably comparable to one deployed copy of a Compose stack. Flux supplies the placement and lifecycle management around those copies. Our generated website files go into the document root, and the configured synchronization distributes them among its copies. A later article correction changes those files. Changing the nginx image, allocated RAM, or instance count changes the application specification.
Keep the Deployment Running
Local monitoring and reconciliation handle container state and recoverable faults. The network’s spawning process can arrange replacement instances when the deployment falls below its requested count.
See Flux v8.25.0 application reconciliation for details.
FluxCloud exposes both the global specification and each node’s local specification. We can compare the intended configuration with what a particular machine has installed. The Specifications panel provides a backend selector for that inspection.
How Does a Reader Reach nginx?
The container port is where nginx listens inside the container, conventionally port 80.
The exposed port on each hosting node forwards traffic to that listener.
In our example, node port 31080 forwards to port 80 inside nginx.
FluxCloud also gives the application a public hostname, its Flux Domain Name (FDN), through which readers can reach it over HTTPS.
See Flux port bindings for the two port settings.
Who Chooses the Flux Domain Name?
In the Docker deployment workflow, we choose the application name in the specification. Flux then automatically derives the hostname from that registered name, converted to lowercase. Here, “automatically generated” means that the platform constructs and manages the DNS name from the application name we supplied.
For the documented app.runonflux.io service, our application named exampleblog has names of this form.
exampleblog.app.runonflux.io general application name
exampleblog_31080.app.runonflux.io name for exposed port 31080
The general application name is an alias for the first exposed port in the specification. The port-specific names let an application expose several services through separate hostnames. The domain suffix is configurable in the routing service, so we should copy the actual automatic domain from App Details or Specifications when deploying.
Name conflicts are handled when registering the application.
Flux checks application names across the network, ignoring letter case. If another active application already has our chosen name, registration requires a different one.
Choosing ExampleBlog instead of exampleblog would encounter the same conflict.
See
The Gateway between the Browser and Our Containers
The Arweave and AR.IO and Swarm experiments introduced gateways for retrieving files.
Flux also provides a public entry point for browser traffic.
Its Flux Domain Manager (FDM) manages domain records, TLS certificates, and the configuration of HAProxy, the reverse proxy and load balancer that forwards requests to application instances.
The Flux team operates this service for the runonflux.io domain.
DNS resolves our FDN to the managed entry point. That frontend accepts the reader’s HTTPS connection and routes the request to a hosting node’s exposed port. Docker’s port mapping then delivers it to nginx. For our example, one request follows this path.
Browser requests
https://exampleblog.app.runonflux.io/index.html
|
DNS locates the entry point
|
Flux-managed HTTPS frontend
configured by FDM / HAProxy
|
selected hosting node :31080
|
Docker port mapping
|
nginx port 80
|
/usr/share/nginx/html/index.html
For this plain-HTTP nginx configuration, the HTTPS connection terminates at the managed frontend, which forwards the request to the application’s HTTP listener. FDM follows application locations and health information and updates the routing configuration as the set of serving nodes changes. It applies the relevant load-balancing or primary/standby rules. Readers can keep the same URL while the backend machines change.
In the earlier storage experiments, a gateway retrieved the publication using a network content reference.
Here, nginx reads the requested path from its document root.
FDM supplies the route to that running HTTP service.
For our IPFS experiment, we would similarly expose an IPFS HTTP gateway through Flux’s routing layer so that a browser can request /ipfs/<CID>/index.html from the pinned publication.
See
What Do We Need to Pay for or Configure?
FluxCloud lists automatic domain management, SSL certificates, and integrated load balancing as included services. For our first website, we pay for application hosting and use its assigned FDN and managed frontend. The initial configuration work is to expose nginx’s HTTP port and populate its document root. The platform supplies the public hostname and its HTTPS entry point.
The standard FDN uses DNS records under the Flux-operated domain. Our ability to reach the site through that address depends on those records and the managed frontend, as well as on the application instances. FDM is open-source software, and its documentation also describes operating an independent FDM under our own domain with our own DNS credentials, certificates, and proxy infrastructure. That option brings the work and costs of operating that entry point ourselves.
See
Attach a Domain We Own
To publish at blog.example.org, we acquire and renew example.org through a domain registrar and configure its DNS.
Those conventional domain costs are separate from the Flux hosting payment.
We then connect the name to the deployment.
- Add
blog.example.orgto the custom-domain setting for nginx’s exposed port in the application specification. - Create a DNS CNAME for
blog.example.orgpointing at the application’s assigned FDN, such asexampleblog.app.runonflux.io. - Allow DNS and routing changes and certificate provisioning to complete, then retrieve both
index.htmlandstyle.cssthroughhttps://blog.example.org/and compare them with our build.
The domain setting tells the frontend which application should receive requests for that hostname. The CNAME lets readers find the frontend. The managed service handles the HTTPS certificate for a correctly configured custom domain. The custom-domain guide uses Cloudflare for DNS and enables its proxy. With that option enabled, requests take an additional hop through Cloudflare before reaching Flux’s frontend.
As in our storage experiments, we should check the complete retrieval path after changing a name. The public hostname shows what a reader receives on one request. For a check across providers, the Instances panel lists the hosting nodes, provides direct app links where available, and identifies the primary for a primary/standby app.
See FluxCloud Instances for the per-node access links.
Deploying from Git
FluxCloud also offers Deploy with Git, which packages and starts an application from a repository. Its deployment guidelines expect persistent data to live outside that deployment’s disposable local filesystem.
For this article, we will start with the Docker route. It lets us examine the web-server image, the website files, and their storage separately. Our static-site generator can continue building the website locally. Flux only needs the resulting files and a way to serve them.
Storage and Publication Updates
My first expectation was a distributed file system that every application instance could attach to, giving all nginx containers access to the same website files. Another familiar approach would be an S3-style object store, with each instance reading the publication from a shared bucket. S3 exposes objects through an API, while a network filesystem exposes shared files through a filesystem protocol.
See Amazon S3 overview for details.
Flux’s containerData mechanism uses local storage on each hosting node.
Each nginx container reads its own mounted directory, and Flux uses Syncthing to copy changes asynchronously between the instances when we select a replicated storage mode such as r:.
Updating the publication therefore means changing one local copy and allowing the other copies to synchronize.
This storage choice also affects instance counts: the browser console requires at least two instances when synchronization is enabled for our v8 application.
For a single-instance version of the nginx example, we would disable synchronization in the volume path settings, using /usr/share/nginx/html without the r: prefix.
The directory would still be mounted from the node’s local volume, with one publication copy and no synchronization to peers.
Where Do the Website Files Live?
We could build an image containing nginx, index.html, and style.css.
Each new instance would start with the same files. Correcting one sentence would then mean publishing a new image and rolling it out.
For this article we want the server image and the publication to have independent lifetimes.
Consider our component named web in the application exampleblog.
Its storage setting is
{
"containerData": "r:/usr/share/nginx/html"
}
This combines two instructions.
/usr/share/nginx/htmlspecifies where the directory appears inside the container.r:selects Flux’s replicated-storage behavior.
Flux creates the corresponding storage on each provider machine.
Using the documented /apps base directory, the mapping for our example looks like this.
On the hosting machine
/apps/fluxweb_exampleblog/appdata/index.html
|
Docker mount
|
v
Inside the nginx container
/usr/share/nginx/html/index.html
Both paths refer to the same local file. Writing through either view changes the bytes nginx reads. The image supplies the server, the mount supplies its document root, and our publishing step populates it with the generated website.
Underneath, Flux v8.25.0 allocates a disk-image file according to the component’s hdd setting, formats an ext4 filesystem within it, and mounts that on the host.
Docker then receives the configured directories from that filesystem.
See
Three Instances, Three Copies
Each machine has its own volume and its own nginx container.
Syncthing synchronizes changes between copies
| | |
local volume A local volume B local volume C
| | |
Docker mount Docker mount Docker mount
| | |
nginx A nginx B nginx C
nginx A reads volume A. nginx B reads volume B. A file change travels between the machines through Syncthing while each server continues reading its local files. Flux manages the Syncthing configuration as part of running the application.
That also explains capacity. If each instance receives a 5 GB allocation, each website copy has that allocation. A 1 GB publication occupies approximately 1 GB on every instance, plus filesystem overhead. The disk allocation tells us how much fits, and the data path tells Flux which directory to mount and how to handle copies on different nodes.
See
Replication and Startup Modes
The prefixes control replication and startup behavior. In the Flux v8.25.0 implementation, the main choices are
| Primary data path | Behavior |
|---|---|
/usr/share/nginx/html |
Local mounted storage on each instance, with independently maintained contents. |
s:/usr/share/nginx/html |
Flux starts the container during installation. Syncthing populates and synchronizes the local files while the application can already run. |
r:/usr/share/nginx/html |
A joining copy initially receives existing data. Flux normally waits for synchronization before starting its container, then enables send-and-receive behavior. |
g:/usr/share/nginx/html |
One primary runs the application while standbys receive replicated data and prepare for takeover. |
The difference between s: and r: is when a newly installed container starts.
Suppose instances A and B already hold our website, and Flux adds instance C with an empty local volume.
- With
s:, Flux starts nginx on C during installation. Syncthing fills C’s document root in the background, so nginx can run while its website files are still arriving. - With
r:, Flux initially keeps nginx on C stopped and its Syncthing folder in receive-only mode. Once C has received the existing data and passed the readiness checks, Flux enables send-and-receive mode and starts nginx.
s: start nginx C --> receive existing website files while nginx runs
r: receive existing website files --> pass readiness checks --> start nginx C
Once the copies are ready, both modes exchange changes in both directions.
In either mode, a later edit still takes time to reach the other instances.
The additional synchronization check in r: applies to startup, giving our new nginx instance a populated document root before it begins running.
A completely fresh r: deployment also needs a starting point.
Flux has a seed-selection procedure so the first copy can initialize the application and supply data to the others.
For nginx, our publishing step supplies the generated website files.
See
The Volume Browser and the Container View
In FluxCloud’s Volume Browser, we select the hosting node through the backend selector, then select the component. The browser provides file operations such as uploading, downloading, editing, renaming, and deleting. The documentation currently describes uploading individual files and using archives to transfer folders.
The guide describes a view starting at the container’s /.
In the v8.25.0 backend, browsing starts at the component volume’s root, which contains appdata and any additional mounted directories or files.
For our example, the corresponding views are
Volume Browser appdata/index.html
nginx container /usr/share/nginx/html/index.html
The backend explicitly opens the selected component volume and lists its contents.
The terminal provides the container-side filesystem view.
An upload into appdata on one node changes that node’s mounted document root, and the configured synchronization can then distribute the change.
See
Which Copy Defines the Target State?
With r:, the ready instances use a multi-writer model. Each can publish changes.
Flux initially coordinates synchronization and startup, then places ready copies into Syncthing’s send-and-receive mode.
The initial seed role gets the deployment started. Once ready, each copy can introduce updates.
Syncthing tracks version information for each file, including which devices have changed it. Its protocol uses a version vector to record updates by the devices in the cluster. The resulting synchronization target is computed per file and is called its global version. The ordering follows the file’s version history, independently of how many machines still hold older bytes.
Consequently, changes can originate on different machines for different files.
If A changes index.html and B changes style.css, synchronization can distribute both changes across the cluster.
See
The expectation of a designated master corresponds more closely to g: primary/standby mode.
Flux elects a primary, runs the application there, and configures the standbys to receive its changes.
Publication through the Volume Browser should target that current primary.
Standby edits can be reverted as Flux brings them back into agreement with the primary.
See Flux v8.25.0 primary and standby roles for the folder modes and container states associated with each role.
Updating a Running Publication
Suppose all three copies contain version 1, and we select a ready instance B in the Volume Browser to upload a corrected index.html.
The upload changes B’s local file. Syncthing detects that change and announces its new version.
A and C recognize that their versions are older and fetch the updated content.
Initially
A has index.html v1
B has index.html v1
C has index.html v1
We upload the corrected index.html on B
A has index.html v1
B has index.html v2 ---- announces the change ---+
C has index.html v1 |
|
After synchronization |
A has index.html v2 <-----------------------------+
B has index.html v2 |
C has index.html v2 <-----------------------------+
nginx B can serve the new file as soon as it is available locally. Other instances acquire it asynchronously as Syncthing exchanges file information and transfers the required blocks. During propagation, different instances can hold different revisions. We can retrieve the file from each serving instance and through the public hostname, then compare the bytes with our local build.
Now suppose the new HTML also refers to a changed stylesheet.
HTML and CSS are separate HTTP requests and may reach different instances.
For this release we could give the new stylesheet a distinct filename, such as style-v2.css, copy it first, and verify its bytes on every serving instance.
Then we could replace index.html, keeping style.css available for readers who still have the old HTML.
This gives us a concrete test for the walkthrough while replication and browser caches catch up.
If A and B independently edit the same file before exchanging their updates, Syncthing detects concurrent changes. For conflicting file modifications, it uses modification times and a device-ID tie-breaker to select which content retains the original filename, and can save the other content as a conflict copy. We then choose the intended content and publish the resolved file. Deletions propagate too, so retained local builds or backups provide recovery from publishing mistakes.
For our static-site workflow using r:, we can choose one ready instance as the upload destination for each publishing run, then verify synchronization across the others.
Our saved local build defines the intended publication. Syncthing distributes the file changes we introduce into that selected copy.
See
The Volume’s Lifecycle
A container restart can reuse the mounted files. Flux also has a soft-install path that recreates containers over their existing volumes, which allows the server image and website files to have independent lifetimes.
Moving to another machine requires that machine to obtain the publication from a surviving replica or a saved build or backup. The durability of our publication therefore depends on the available copies and our recovery material. Keeping the local build for each published version lets us restore its files even if all three copies have received a mistaken deletion. Flux also supports downloading a backup of the component’s data.
See
IPFS and FluxDrive
With IPFS we would import the generated website as a directory.
Its root content identifier (CID) gives the HTML and its relative stylesheet a common starting point.
An IPFS gateway can retrieve /ipfs/<root-CID>/index.html and /ipfs/<root-CID>/style.css.
Changing the HTML produces a new root CID. With the same import settings, the unchanged stylesheet can be reused.
See IPFS content addressing for details.
FluxDrive initially looks like a convenient way to handle this for us. It is managed IPFS storage under a separate subscription, with a browser interface and an API, so we can upload files without operating an IPFS node ourselves. The browser also supports uploading an entire folder.
For our website, the ideal workflow would be upload the generated directory, receive one root CID, and let FluxDrive keep the publication available. The gateway would serve the HTML, stylesheet, and images under their original relative paths. Publishing an update would mean uploading the next build and using its new root CID. That would remove the need to deploy and maintain our own IPFS service.
However, the documented folder operations leave a gap in that workflow.
The API reference shows /putfolder returning a CID for each uploaded file.
Folder entries returned by /ls have a UUID, with no IPFS hash.
These folders organize files within our FluxDrive account, while the documented sharing links identify individual files.
The public frontend’s folder-upload implementation likewise uploads the files into account folders individually.
This does not look like there is a supported way to obtain and retain one IPFS directory-root CID for the complete website through those interfaces.
I have opened feature request #1938: publish website directories with a single IPFS root CID. It asks for directory uploads through the browser and API, preserved relative paths, a root CID, and retention of all referenced content under the subscription. It also asks the maintainers to clarify whether an existing workflow already provides this.
For this experiment, we will therefore operate our own IPFS node on FluxCloud. We will import the generated directory and recursively pin its root, keeping its files and their underlying blocks on disk across garbage collection. Another node can pin that CID once it can fetch the blocks from a reachable provider. Each revision we want readers to retrieve later needs someone to keep its blocks available.
See
Each active IPFS node needs its own repository on disk for its blocks, pins, configuration, and peer identity. Each peer gets its own persistent local volume. For the two-peer walkthrough below, we pin the same root CID on both peers and check that each has its blocks. IPFS would fetch the publication’s blocks between peers. A replacement peer can fetch the directory while another provider still has it. If the last provider disappears, we can reimport our saved build with the original import settings and check that it produces the same root.
The hosted node also needs connectivity to other IPFS peers. Its administrative interface controls pins and node configuration, so we would keep it private and use an HTTP gateway for readers. Before attaching a name, we would retrieve both website files through the gateway by directory CID and compare them with our saved build.
See Kubo RPC interface for the node’s administrative API.
Paying for Hosting
FluxCloud sells a prepaid period of application hosting. The standard Docker form offers terms from one week to one year. Even if nobody visits the website, CPU capacity, memory, and disk space are reserved for the deployment. We can correct a hundred articles during that period within the same allocation.
See Registration periods for details.
How Much Would a Small Website Cost?
Flux’s calculator documentation gives a worked example close to our nginx deployment. One component requests 0.5 CPU core, 500 MB of RAM, and 5 GB of SSD per instance, with three instances for one month. Flux applies a minimum base hosting price of US$0.99 per application per month. The small-app discount brings this example’s resource charge below that minimum, so the one-month price is US$0.99 for all three instances. Each has 5 GB for its local copy of the publication.
Our tiny index.html and style.css publication would require far less storage, and we could request smaller resource allocations.
For this one-month example, those reductions would still leave us at the same price floor.
We therefore keep the extra capacity, since it costs us the same as a smaller allocation.
See Worked pricing example for details.
For our own deployment we can enter the component size, instance count, storage mode, and term in the calculator. The registration screen gives the final quote in dollars and FLUX. The number of coins we need can change with the exchange rate even if the dollar price stays the same.
See
The documented checkout options are credit/debit card through Stripe, PayPal, and FLUX, with a 5% discount for FLUX payment. For this article, we will pay with native FLUX so that we can follow the wallet, blockchain transaction, and network fees ourselves.
The management screen shows when the paid term ends. A renewal extends it. When editing the app specification, the renewal toggle determines whether the update also buys more time. Cancellation removes the application and its data, so a downloaded backup or a reproducible build matters even for a three-instance deployment.
See Subscription controls for details.
Blockchains and Tokens Involved
The Flux Blockchain and Native FLUX
In the Swarm article, Gnosis Chain provided the economic management layer.
Flux has its own blockchain, whose native coin is FLUX.
We can see what the chain contributes by following a native FLUX registration payment.
The application owner signs a message containing the specification.
Flux nodes exchange that message.
The payment transaction on the Flux chain carries its hash in an OP_RETURN output, the memo that matches the payment to the registration.
A node can retrieve the message from peers, verify it, and associate it with the confirmed payment.
The registry supplies the image, and the hosting nodes supply the website bytes.
See
Flux changed its consensus model in October 2025, moving from GPU mining to Proof of Useful Work v2 (PoUW v2). Eligible FluxNodes now produce blocks and validate transactions as well as supplying the infrastructure used by applications. Older explanations centered on GPU miners describe the preceding model.
The FLUX asset overview connects the coin to several roles:
| Role | Purpose of FLUX |
|---|---|
| Application payment | Purchase hosting resources |
| Blockchain transaction fees | Pay for transactions on the native Flux chain |
| Provider collateral | Qualify an operator’s FluxNode for participation |
| Block rewards | Reward eligible infrastructure operators and support the ecosystem |
For us as publishers, the immediate concern is the hosting payment and the transaction fee needed to send it. The provider’s collateral is a separate responsibility. Block rewards also mean that the network’s incentives extend beyond the rent paid by individual applications.
Parallel Assets on Other Chains
FLUX also exists on other blockchains as parallel assets. These let holders trade or transfer FLUX on those networks, and providers can claim additional rewards through the parallel-asset program. For a publisher buying coins, the ticker alone leaves out two details that matter at checkout. Which chain holds the balance, and which coin pays the fee to move it?
See Flux’s parallel-asset guide for details.
| Network | Asset relevant here | Transaction-fee currency |
|---|---|---|
| Flux mainnet | Native FLUX | FLUX |
| Ethereum | FLUX-ETH, an ERC-20 token | ETH |
| BNB Smart Chain | FLUX-BSC, a BEP-20 token | BNB |
Parallel assets are intended to be convertible to native FLUX at a 1:1 asset ratio, with fees handled separately. For our hosting payment, the destination remains a spendable balance on Flux mainnet. The conversion mechanism and the offer selected in the wallet determine how we get there.
The supported networks are changing. Flux’s September 2026 consolidation announcement describes a move toward Ethereum and BNB Chain, with staged retirement of other parallel assets through 2027. We should check the current supported route before acquiring an asset on another chain.
What Does Fusion Do?
Fusion provides the conversion step between native FLUX and its parallel assets. Its role resembles the conversion between ERC-20 NYM and native NYM discussed in the Arweave article: we hold a representation on one blockchain and need the asset used by another. The source transaction and the destination payout happen on different chains, with separate fees and confirmation times.
We also encounter Fusion as the name of Zelcore’s swap interface, which aggregates offers from several providers. The current Fusion guide describes provider-routed conversions, and the swap guide lists Fusion itself alongside other providers. We therefore need to inspect the selected provider, source and destination networks, quoted output, minimum amount, and completion or refund rules. The parallel assets’ intended 1:1 convertibility does not guarantee that every exchange offer delivers one native FLUX per token after costs.
Flux’s consolidation announcement describes its reserve-backed bridge and a planned mint-and-burn replacement. Those bridge arrangements and a third-party exchange’s deposit-and-payout service have their own custody and signing assumptions. The wallet keeps our private keys, while a provider can temporarily control the funds we send for a conversion. This is the distinction explored under Similar Swap Interfaces Can Hide Different Trust Models.
As in our CoW Swap funding route for Swarm, obtaining the right token and moving it to the right chain can be separate operations. An Ethereum trade can settle atomically on Ethereum, while arrival on Flux mainnet still depends on the separate conversion completing. We will confirm the native FLUX arrival before creating the hosting payment request.
Which Parts of AR.IO Would We Need?
In our IPFS experiment the name would point to the directory CID for the current revision. ArNS ownership and records live on Solana. Buying a name directly costs ARIO, and SOL covers the Solana transaction fees and any required account creation. Updating a name we already control changes its record only. Turbo can handle the underlying payments. Pinning on our own node uses the disk and runtime already paid for on Flux.
See
There is a practical limit to this idea.
The ArNS specification defines protocol 1 for an IPFS target, and Turbo documents setting a CID on the opening record.
However, the on-demand resolver in AR.IO gateway release r88 validates the resulting identifier against the 43-character format of an Arweave transaction ID.
An ordinary IPFS directory CID fails that check.
A correctly set record can therefore coexist with a gateway that cannot resolve it through this path.
I reported this in ar-io-node bug report #1157, with a reproduction from this experiment.
See
We can test the parts independently. First fetch both files by directory CID through an IPFS gateway and compare them with the build. Then read the ArNS record and check its target protocol and CID. Finally request both files through the named gateway and compare the bytes again. Until that last check succeeds on a specific gateway, the verified access path would be the one using the CID. The Arweave article used the same distinction between resolving a name and retrieving its website.
See Verify Name Resolution and Website Retrieval for details.
Login, Ownership, and Payment Identities
We will sign in with a Flux-compatible wallet and pay with native FLUX. Even when one wallet application handles both operations, application ownership and payment are separate roles.
| Actor | What it controls in this example |
|---|---|
| Application owner | The identity used to sign the app message can authorize changes and renewals. FluxCloud lists Zelcore, MetaMask, SSP, and Flux SSO/email as signing options. |
| Payer | Our Flux-mainnet wallet signs the hosting payment transaction. Zelcore and SSP both support native FLUX. The payment must carry the required memo. |
| FluxNode operator | The provider manages its machine and collateral. Several operators can host copies of our application. |
| ArNS owner or authorized controller, if we add a name | The Solana identity with the appropriate authority can change which revision readers reach through the name. |
We would return with the application owner’s login to manage the deployment. A payment receipt helps us find the transaction. The owner’s credentials let us authorize the next change. For the IPFS option there is one further identity on each active node, its IPFS peer ID, which other peers use to identify it when exchanging blocks.
See
Choosing Between Zelcore and SSP Wallet
Flux lists Zelcore and SSP as its main compatible wallets. Both let us hold native FLUX and participate in FluxCloud’s wallet workflow. The useful choice concerns how we want to manage keys and approve payments.
| Aspect | Zelcore | SSP Wallet - Secure, Simple, Powerful |
|---|---|---|
| Everyday interface | Desktop apps for Linux, macOS, and Windows, mobile apps, and a browser extension. | A browser extension paired with the SSP Key app on Android or iOS. |
| Signing model | A normal software-wallet account signs with locally held keys. Optional d2FA adds a PIN check for protected actions. | Native FLUX uses 2-of-2 multisignature: the extension and phone hold separate keys, and both sign an outgoing transaction. |
| Flux tools | A broad multi-asset interface with FluxNode management, Fusion, and swap-provider integration. | Native FLUX, FluxNode tools, parallel-asset claims, and aggregated swaps are also available. |
| Hardware devices | Ledger pairing on desktop; Trezor pairing is experimental. Supported coins and actions vary. | The paired phone supplies the second signing key and approval step. |
| Recovery | Back up the mnemonic for a newly created seed-phrase wallet. | Back up both devices’ seed phrases separately; restoring only one signing key is insufficient. |
| Practical trade-off | Convenient when we want the wider set of Flux and multi-asset tools in one application. | Convenient when we want each outgoing payment to require approval on a separate device. |
See
Zelcore’s hardware-wallet support needs an asset-specific check. Its hardware guide, written for Zelcore 8.39, does not list native FLUX among the supported coins. The 8.40 release notes describe further hardware improvements, including Ledger sends on EVM chains, but do not establish native-FLUX hardware signing. We should therefore treat the native-FLUX account used here as a software wallet.
For this walkthrough, we will use the Zelcore browser extension and a dedicated seed-phrase wallet for the hosting funds. The extension guide documents the same assets, sending and receiving, Flux ID, Fusion, and WalletConnect in the browser. It supports Chrome, Brave, and Edge; Firefox is not currently listed. Hardware-wallet pairing remains a desktop-only feature. The practical funding walkthrough below verifies an ETH send, a CoW connection, and receipt of native FLUX in the Chrome extension.
SSP remains a suitable alternative when we prefer the separate phone-approval step and are prepared to maintain two recovery backups. Its two-key signing model differs from Zelcore’s optional PIN-based d2FA.
FluxNode management is an optional wallet feature for us: renting application hosting does not require operating a provider node or posting its collateral.
Flux ID and Application Ownership
Flux ID is our public signing identity for Flux services. It lets FluxCloud recognize us and verify that we authorized an action, such as registering or updating an application. My test wallet illustrates these three roles:
| Identifier from my test wallet | Purpose in the walkthrough |
|---|---|
Flux ID: 1M6KG…Fsujz |
Sign in and identify the application owner. |
Native FLUX address: t1NUV…FYMq |
Hold FLUX and pay for hosting. |
Ethereum address: 0x6ddb…de17 |
Hold ETH and acquire the hosting funds. |
For modern seed-phrase accounts, Zelcore creates Flux ID automatically and manages it through the account’s recovery phrase. My Flux ID uses Bitcoin-style address encoding and has a valid checksum. Using that format for identity does not require buying Bitcoin or making a Bitcoin transaction.
A typical login works like this:
- FluxCloud supplies a fresh challenge message.
- Zelcore signs it with the key associated with our Flux ID.
- FluxCloud verifies the signature and recognizes that identity.
Signing this login message does not itself broadcast a blockchain transaction or incur gas fees. The Flux API authentication flow describes the challenge, signature, and verification steps.
For application ownership, consistency matters. If we register our application under this Flux ID, we should return with that same identity to manage it. Paying its hosting bill from a wallet is a separate operation. The walkthrough below shows where to find the identifier in Zelcore.
Acquiring the Funds We Need
Our Native FLUX Funding Path
Our target is native FLUX in our own wallet before opening checkout. We will use the Zelcore account chosen above for the hosting payment. Our practical walkthrough funds its Ethereum account and compares a direct swap into native FLUX with the CoW route below. Another route buys native FLUX through a service that supports Flux-mainnet withdrawals:
- Obtain the wallet’s Flux-mainnet receiving address.
- Choose a purchase service or exchange that supports withdrawal on Flux mainnet.
- Withdraw native FLUX to that address and wait for it to arrive.
- Keep enough for the hosting quote and the native-FLUX transaction fee.
Flux’s wallet and purchasing page provides starting points for finding services. The withdrawal network matters as much as the asset name. For example, Kraken lists FLUX on Ethereum as an ERC-20 token, which requires another conversion for our native-FLUX payment.
Can We Reuse CoW Swap?
Yes, for the Ethereum trading step. I used CoW Swap to acquire xDAI and xBZZ for Swarm. Here, an Ethereum trade can acquire FLUX-ETH, followed by a separate conversion to native FLUX:
ETH on Ethereum
|
| CoW Swap: Ethereum trade
v
FLUX-ETH on Ethereum
|
| Fusion / selected conversion provider
v
Native FLUX in our Flux-mainnet wallet
|
| Hosting payment with the required memo
v
FluxCloud application subscription
I connected the Zelcore Chrome extension directly to CoW Swap and obtained an ETH → FLUX-ETH quote in its interface.
The token was 0x720cd16b011b987da3518fbf38c3071d4f0d1495, listed in Flux’s official parallel-asset table.
The funding walkthrough records the comparison with Zelcore’s direct conversion offer.
We can start with ordinary ETH. CoW’s EthFlow mechanism wraps ETH into its ERC-20 form, WETH, and places the order through one on-chain transaction. Wrapping is a 1:1 conversion on Ethereum, with an upfront gas fee; it does not move funds to another blockchain. We do not need to acquire WETH separately first.
Using the same Zelcore Ethereum account lets it hold the ETH, receive FLUX-ETH, and fund the later conversion’s Ethereum sending fee. The native-FLUX receiving address belongs to the payout on Flux mainnet.
Before trading, check the token contract against Flux’s current table, particularly during the announced contract migration.
For FLUX-BSC, the same distinction applies on BNB Smart Chain, with BNB paying its network fees.
The conversion instructions explain how to choose the source asset and native FLUX as the destination. The Fusion offer must cover that exact route and amount.
The wallet’s swap interface may also quote a direct conversion from an asset we already hold to native FLUX, removing the intermediate purchase of a parallel asset.
Compare offers for the same source amount, including the native FLUX received after all conversion steps, the provider’s minimum amount, and its completion rules. Budget the wallet’s sending fees separately. Acquisition costs can exceed a month’s small hosting bill, so the cheapest hosting allocation does not automatically make a multi-step funding route economical.
Have the native FLUX ready before opening the payment request. Flux’s checkout guidance requires payment on Flux mainnet, including the supplied memo, within the payment window. It advises paying from our own wallet because exchange withdrawals can omit the memo or take longer than the 30-minute window.
Website over Time
Suppose we return a month later. The hostname still looks familiar, but what do we need to publish version 2, roll it back, or move to another provider?
| Operation | nginx with a replicated document root | IPFS with an ArNS name and a compatible gateway |
|---|---|---|
| Publish the correction | Write the changed files through one instance. Check the bytes on all active instances and at the public hostname. | Import the new directory, pin its root CID, and verify external retrieval. Update the name and check the named URL. |
| Roll back | Restore the previous build to the document root and check replication again. | Point the name back to the previous CID. Its blocks must still be available from a provider. |
| Recover after losing the deployment | Redeploy from the saved app specification and image, restore the build, and check the domain. | Restore or reimport the publication on a reachable IPFS node. If it serves the same CID, the existing record can keep pointing there. |
For nginx I would keep the app specification, image digest, exact published builds, owner access, DNS settings, and subscription expiry.
For IPFS I would also record the root CID of each retained release, where it is pinned, and who can update the ArNS record.
Those records let us answer the following questions after a failure: Which revision should a reader receive, and where can we still retrieve its bytes?
Other Flux Services and Virtual Machines
Currently, FluxCloud’s documented application platform uses Docker containers. I found no documented customer workflow for renting Incus/LXC system containers or general-purpose virtual machines. The published roadmap does list a VPS tier with real VMs and public IPs for H1 2027; that is a development plan, rather than a service verified in this article.
Flux also offers several ways to deploy applications or consume services:
| Offering | What it provides |
|---|---|
| Deploy with Git / Orbit | Builds and runs applications from a Git repository, handling the runtime and dependencies for us. |
| Marketplace and WordPress hosting | Application templates and dedicated interfaces for websites, game servers, automation tools, and other workloads. |
| FluxDrive | Managed IPFS file storage through a browser and API, with the directory-publication limitation discussed earlier. |
| Shared Database | Replicated database hosting; MySQL is the currently documented supported engine. |
The ArcaneOS VM installation guide describes running a provider’s FluxNode inside a VM on a hypervisor such as Proxmox. Similarly, the legacy LXC guide concerns a provider hosting a FluxNode in LXC. These describe supplying infrastructure to Flux; our Docker application deployments consume that infrastructure.
Older ecosystem descriptions also mention FluxEdge, the CPU/GPU rental marketplace, and FluxCore, its provider agent. The current shutdown notice says both services were shut down following a 4 November 2026 security incident. It explicitly states that FluxCloud, FluxOS, FluxNodes, and the Flux blockchain were unaffected.
Zelcore Wallet and Funds
We begin by funding the wallet that will pay for hosting. I used the Zelcore Chrome extension and converted ETH directly into native FLUX through ChangeHero. I also connected that wallet to CoW Swap and compared its quote without executing the CoW trade. Prices, provider availability, minimum amounts, and fees below describe my run; check the current offers when following along.
Install the Zelcore Browser Extension
Open Zelcore’s browser-extension download page and follow its Chrome Web Store link. Chrome, Brave, and Edge use the same official listing. Create a dedicated wallet for the experiment and back up its recovery phrase before adding funds.
In the portfolio, enable Ethereum (ETH) and Flux (FLUX) through Manage Assets if they are missing. For the CoW comparison, also find FLUX-ETH, Flux’s ERC-20 token on Ethereum.
The asset-support table caused some confusion: when checked, its Extension column marked even FLUX, Bitcoin, and Ethereum as unsupported. The installed extension nevertheless let me send ETH, connect to CoW, and receive native FLUX. The completed transactions below establish those capabilities for this experiment.
Find the Flux ID
Open Apps → Flux ID to reach the Security Area. Record the public Flux ID for the account we intend to use as the application owner. My test wallet showed:
1M6KGX5x9CNqVFKGv9Tq3HwauVmhWFsujz
This is the public signing identity described above. The Sign message button lets Zelcore produce a signature with its associated key. A service can verify that signature against the Flux ID without receiving the private key.
At the time of my test, the status panel showed:
- Flux ID d2FA: Inactive - optional additional PIN protection was off; the Flux ID itself already existed.
- Easy Login: Active - Zelcore’s convenience login feature was enabled.
These are separate settings. The Flux ID d2FA button configures additional PIN checks for selected actions, such as logging into Zelcore, sending funds, or signing messages. Enabling d2FA involves a small native-FLUX transaction that records encrypted settings on the Flux blockchain. The PIN checks operate inside Zelcore and do not change the underlying wallet keys. See Zelcore’s d2FA guide for the setup and recovery implications.
Identify the Receiving Addresses
Zelcore represents native FLUX and its parallel assets as separate portfolio entries. We select the asset and press Receive, rather than relying on a global network selector like MetaMask’s. I used Zelcore’s Payments wallet for both assets; select the corresponding Ethereum account when connecting your wallet to CoW.
| Asset entry | Network for the transfer | Receiving address in my test wallet |
|---|---|---|
| Ethereum / ETH | Ethereum mainnet | 0x6ddb10adebd51190465a314767155f757a88de17 |
| FLUX-ETH | Ethereum mainnet | The same Ethereum address for this account |
| Flux / FLUX | Flux mainnet | t1NUVvzePU566AHQspTPvjuKTk28yrEFYMq |
These public addresses and the Flux ID above belong to my test wallet and are shared to make the example traceable; use your own wallet’s addresses when following along.
The native-FLUX address starts with t1, as described in Zelcore’s FLUX guide.
Ethereum addresses start with 0x followed by 40 hexadecimal characters.
Other EVM chains share that address format, so 0x alone does not establish the network: our ETH funding transfer must use Ethereum mainnet.
Fund the Ethereum Account
I first considered transferring about US$10 in ETH. However, the direct conversion’s quoted minimum was 0.006023 ETH, itself about US$10 at the time. Funding exactly that amount would leave little room for the sending fee or a change in the minimum.
I therefore transferred 0.01 ETH, approximately US$16.60, into the Zelcore Ethereum address. The sending wallet’s transfer fee was additional. I planned to exchange 0.0075 ETH and leave 0.0025 ETH before fees available in Zelcore. That reserve was a buffer, not a prediction of the gas bill.
To repeat this step, open Ethereum → Receive, copy your 0x address, and send ETH to it on Ethereum mainnet.
Wait until the balance appears before continuing.
The
t1…address belongs to the later native-FLUX payout, so it is not the address for this ETH transfer.
Compare the Direct Swap with CoW
We can inspect both routes without committing to either swap. In Zelcore, open Swap, select ETH as the selling asset and native FLUX as the receiving asset, and enter 0.0075 ETH. Select Next step to inspect the available providers and their quoted outputs. The swap guide explains Show Pair Limits, the provider list, and the transaction summary.
For the alternative, open CoW Swap, connect Zelcore, and verify that the connected account matches the wallet’s Ethereum receiving address. Select Ethereum for the trade, ETH as the source, and the FLUX token with contract address:
0x720cd16b011b987da3518fbf38c3071d4f0d1495
Check that contract against Flux’s official parallel-asset table. CoW may label it simply FLUX; it is FLUX-ETH on Ethereum, which would still require conversion into native FLUX. Enter the same 0.0075 ETH and inspect the quote without approving an order or transaction.
My quote comparison produced:
| Route | Quoted output for 0.0075 ETH | Further conversion needed? |
|---|---|---|
| CoW Swap | 222.71 FLUX-ETH | Yes, FLUX-ETH → native FLUX through Fusion or another provider |
| ChangeHero through Zelcore | 238.695 native FLUX | No |
The direct offer already returned more FLUX before counting the CoW route’s additional conversion costs. During my comparison, a separate Fusion quote deducted 10 FLUX for converting FLUX-ETH into native FLUX; that charge was another quote, not a transaction I executed. I therefore chose ChangeHero’s direct offer.
We can start the CoW route with ordinary ETH. Its EthFlow mechanism handles wrapping ETH and placing the order through one on-chain transaction, with an upfront ETH gas fee. There is no need to acquire WETH separately first. The later FLUX-ETH transfer would also require ETH for gas, which is another reason to retain some ETH in the account.
Execute the Direct Conversion
In Zelcore’s Swap interface:
- Select the funded ETH account, enter 0.0075 ETH, and choose native FLUX as the destination asset.
- Select Next step and choose the ChangeHero offer we want to use.
- Open its transaction summary and check the ETH amount, expected FLUX output, rate type, and sending fee.
The receiving address must be our native-FLUX
t1…address. - Confirm that the remaining ETH covers the displayed sending fee, then select Swap Now and approve any requested wallet confirmation.
- Keep the order ID and the transaction details so we can follow the exchange and verify its result.
My order showed 0.0075 ETH → 238.695 FLUX, initially with status NEW.
An order appearing in the history is not yet proof that the destination funds have arrived.
My order details initially showed NEW, Fee: Not available, and ??? for both transaction IDs.
Track Completion and Verify the Payout
Press Track Exchange in those details. For my order, it opened ChangeHero’s status page, which reported that the transaction was completed. Also check the outgoing ETH transaction and the incoming native-FLUX transaction independently. If an order remains pending, the provider’s tracker helps distinguish waiting for a deposit, confirmations, exchange processing, and payout; Zelcore’s troubleshooting guide describes those stages.
My order was created at 17:36:35 CET on 2026-11-29. The native-FLUX payout was included in a block timestamped 17:40:04 CET, approximately 3 minutes 29 seconds later.
My final transaction records were:
| Item | Confirmed amount |
|---|---|
| ETH sent to the exchange | 0.0075 ETH |
| Ethereum transaction fee | 0.000042 ETH |
| Native FLUX received | 238.756 FLUX |
| ETH remaining from the initial 0.01 ETH | 0.002458 ETH |
Transaction receipts:
The actual payout was slightly higher than the initial estimate of 238.695 FLUX. My portfolio after completion showed both the 238.756 native FLUX and the remaining 0.002458 ETH.
What Did Acquiring the FLUX Cost?
At order creation, Zelcore valued the 0.0075 ETH at about US$12.46 and the expected FLUX output at US$12.01. The difference was approximately US$0.45, or 3.6% of the displayed input value. We can use that as an estimate of exchange costs relative to the wallet’s price feed, but it does not provide an exact fee breakdown. Zelcore’s fee explanation says that the quoted rate includes provider and partner fees, while the source-chain sending fee is paid separately from the wallet.
The Ethereum transaction fee I paid was 0.000042 ETH, approximately US$0.07 at the ETH price used for that comparison. Together, these give an approximate acquisition cost of US$0.52, excluding the earlier transfer into Zelcore.
I now have native FLUX in my wallet for the hosting payment, without having needed the intermediate FLUX-ETH purchase and Fusion conversion.
Choosing the Tools
The wallet and funding steps above are shared preparation for both publishing routes. Now we need tools for deploying the application, supplying its files, and checking the result. As in the Swarm walkthrough, the goal is a CLI that prepares an operation and asks our wallet to authorize it. The private signing keys should stay in the wallet.
The CLI and the Flux API
For the initial experiments, we will use the Flux HTTP API with small local helpers:
| Tool | Role |
|---|---|
curl |
Send API requests to validate and price an application specification, submit authorized operations, and inspect deployment state. |
jq |
Inspect JSON responses and extract identifiers and quoted amounts. |
| Node.js | Prepare exact message bytes, encode wallet requests, and handle signing callbacks where an adapter is needed. |
| Zelcore | Hold the Flux ID and payment keys, present authorization requests, and sign approved operations. |
The application’s JSON specification remains an editable local file. The API supplies the deployment operations; the helper coordinates them with the wallet. We can inspect the requests and responses as we work through the nginx and IPFS examples.
The flux-cli shipped with the Flux blockchain daemon is a blockchain RPC client, rather than the equivalent of Swarm CLI for publishing a website.
We do not need to operate that daemon merely to rent hosting.
The Flux Cloud MCP server also offers deployment and management tools, but its current signing path takes private keys, which made it unsuitable for my experiment.
Ask the Wallet to Sign
We need two kinds of authorization:
- Flux ID message signatures for login and application registration or updates.
- Native-FLUX payments carrying the required application-message hash for hosting.
The browser-web3-signer setup from the Swarm article is a useful model. Its EVM requests use an Ethereum account; that does not automatically select the Bitcoin-style Flux ID I recorded in Zelcore. The tool also has Bitcoin-wallet support, but Bitcoin address encoding alone does not establish compatibility with Zelcore’s Flux ID interface or native-FLUX transactions.
Zelcore provides another candidate transport: the documented zel: protocol.
Its sign action asks Zelcore to sign a supplied message with the Flux ID and can return the address, message, and signature to an HTTP callback.
Its pay action opens a payment request with the asset, recipient, amount, and message filled in for review.
For native FLUX, the documented asset identifier is zelcash, its former name.
The intended flow is:
Local CLI helper prepares a request
|
v
Zelcore displays the operation
|
we approve or reject
|
v
Signature returned / payment broadcast
|
v
CLI verifies the result and continues
The protocol specification documents desktop and mobile support.
The experiment below verifies Zelcore Desktop as a bridge between the CLI and our wallet, alongside the browser extension.
The FluxCloud frontend checks for two browser interfaces: window.zelcore.sign(message) and window.zelcore.protocol(zelUrl).
The latter passes a zel: request through the extension, so using that protocol does not itself require Zelcore Desktop.
In my first attempt, the probe expected sign(), but Chrome’s Console showed that my extension exposed protocol() instead.
Unlocking the wallet could not add the missing method; the probe needed to use the interface actually available.
My successful CoW connection verified the extension’s Ethereum interface, not this Flux ID signing path.
Before relying on an adapter, we need to test a harmless message-signing request, verify the returned signature against our recorded Flux ID, and check rejection and cancellation handling. For a payment request, the full application-message hash must survive as the transaction’s memo. The signing probe below verifies the browser-extension and Desktop message-signing paths. The nginx walkthrough then uses those transports for actual login and application registration, and verifies the native-FLUX hosting payment on chain.
Signing Experiment: Extension First, Desktop Second
Before deploying nginx, we can test the signing handoff with a message that does not log in, register an application, or send funds.
The local signing probe on GitHub Gist starts a receiver on 127.0.0.1, generates a fresh test message, and opens neither the wallet nor a browser automatically.
We open the printed URL ourselves and choose when to ask Zelcore to sign.
Only a signature that verifies against the exact message and expected Flux ID produces a successful receipt.
Use Node.js 20 or newer and prepare a directory for this experiment:
flux_signing_dir="$HOME/tmp/publishing-flux-basics/signing"
install -d "$flux_signing_dir/records"
cd "$flux_signing_dir"
npm install --save-exact --ignore-scripts bitcoinjs-message@2.2.0
Download the probe script from the gist into that directory. This command selects a fixed gist revision so we use the same script as this experiment:
curl --fail --location --output flux-signing-probe.mjs \
'https://gist.githubusercontent.com/cs224/d8a1b7ec1f58e073c386e30ec204f5e7/raw/6655401a7db51b3203e0612024d6f32f9495c8eb/flux-signing-probe.mjs'
The verifier uses bitcoinjs-message 2.2.0, whose default Bitcoin-message format matches Flux v8.25.0’s verification implementation.
The commands below use my public test-wallet Flux ID; substitute your own Flux ID when following along.
Start with the browser extension’s protocol interface:
node flux-signing-probe.mjs \
--flux-id 1M6KGX5x9CNqVFKGv9Tq3HwauVmhWFsujz \
--mode extension-protocol \
--out records/extension-protocol-signature.json
Open the printed local URL in the Chrome profile containing Zelcore.
Unlock the intended wallet account, click Sign with Zelcore extension, and review the displayed message in the wallet before approving it.
The page calls window.zelcore.protocol(zelUrl) with an explicit action=sign, the test message, and a local HTTP callback.
After approval, the wallet should POST the signed result to that callback.
On success, the terminal prints a receipt with "status": "verified", the expected Flux ID, the exact message, and its signature, and saves the same JSON to records/extension-protocol-signature.json.
The process exits successfully only after verification.
The protocol method’s promise can remain pending while the HTTP callback delivers the result, so the page may continue to show a waiting message: check the terminal for the verified receipt.
If the page reports that window.zelcore.protocol is unavailable, check the browser profile and the extension’s access to that page, then reload.
Chrome’s Console lets us check typeof window.zelcore?.protocol and typeof window.zelcore?.sign separately.
My test page returned "function" for protocol and "undefined" for sign.
If another installation exposes the direct sign() method, the probe’s separate --mode extension tests that method and returns its result through the page.
An available method establishes an entry point; only a verified signature establishes that the complete signing handoff works.
Repeat the test with a fresh --out filename and reject the request in Zelcore.
A rejection reported through the extension interface must end without a successful receipt.
If dismissing the wallet’s internal signing dialog leaves the request pending, cancel it explicitly with Cancel experiment on the local page or Ctrl+C in the terminal.
The default five-minute timeout also ends without a receipt.
Close any remaining wallet prompt before starting another attempt; every new run generates a different message.
Existing output files are never overwritten.
To compare the desktop transport, use the official Zelcore Desktop download, open the same test account there, and check that Apps → Flux ID shows the expected identifier.
I installed the Debian package, which registered zelcore.desktop as the system’s zel: handler.
On Linux, we can inspect that registration with:
xdg-mime query default x-scheme-handler/zel
# zelcore.desktop
Three interfaces in Zelcore Desktop
Zelcore supports several blockchain ecosystems, each with its own wallet requests. The following distinctions apply to Desktop 8.43.0, which I used for this experiment:
Interface What the application asks the wallet to do Zelcore Server, port 9467Share Kadena account information or approve and sign a Kadena transaction through an HTTP API. Wallet Adapter Connect a Solana application to the wallet through Zelcore’s Solana adapter integration. zel:?action=signDisplay a message for approval, sign it with the Flux ID, and optionally return the result to an HTTP callback. This is our Desktop route.
Kadena and its wallet requests. Kadena is a separate blockchain ecosystem whose Chainweb network supports smart contracts written in Pact. Its native coin, KDA, pays transaction fees. A Kadena application might ask which Kadena accounts we want to use, or ask us to approve a transaction transferring KDA or calling a smart contract.
For the latter, the application sends a JSON request to the wallet’s
POST /v1/signendpoint on port9467. That request describes the Pact code to execute, its input data, the chain, the permissions the signature should grant, and transaction settings such as the gas limit. The wallet presents the operation for approval and returns a signed transaction that the application can submit to the Kadena network. This is the Kadena Wallet Signing API: its/v1/signname refers to Kadena transaction signing, rather than our Flux ID message-signing operation.Kadena’s status (October 2026). Zelcore’s status note reports that Kadena LLC ended operations on 21 October 2025, while the blockchain continued through the independent, community-run Kadena Community Edition. Existing addresses, keys, and balances remained valid without a wallet migration. Several exchanges delisted KDA, so check an exchange’s current KDA support before depositing there.
The Solana Wallet Adapter. The panel describes the Solana integration through
link.zelcore.io. A Solana wallet adapter gives a Solana application a standard way to connect a wallet and request supported signatures, such as approving a Solana transaction. The wallet uses its Solana account for those requests.Our Flux ID handoff. The registered URL scheme is
zel:, much asmailto:selects a mail application. Our link has the formzel:?action=sign&message=...&callback=..., with the message and callback URL encoded as query parameters. When we open it, the operating system passes the URL to the registered Zelcore application. Zelcore interpretsaction=signand displays the supplied message for our approval. After approval, it signs with the Flux ID key and POSTs the address, message, and signature to our local receiver, following the Zel protocol specification. The CLI verifies those fields before continuing; the private key stays in the wallet.The Zelcore Server switch controls the Kadena HTTP service independently of this URL handler. We can use our Flux ID signing flow with that switch off, without acquiring KDA or connecting a Solana application.
Start a separate attempt:
node flux-signing-probe.mjs \
--flux-id 1M6KGX5x9CNqVFKGv9Tq3HwauVmhWFsujz \
--mode desktop \
--out records/desktop-signature.json
Open the new local URL and click Open Zelcore Desktop.
This invokes a zel:?action=sign link with the test message and a local HTTP callback.
The operating system passes the link to Desktop; this mode does not call the browser extension’s signing interface.
Allow the browser to open Zelcore if prompted.
Check which application actually handles the link, approve the message in that wallet, and look for the verified receipt in the terminal.
The receiver accepts the address, message, and signature fields defined by the protocol’s form-encoded callback.
If the wallet displays a signature but no callback arrives, the automated return path is still unverified.
In my tests, both the browser-extension and Desktop round trips succeeded.
I first used the extension’s protocol() interface, then approved a separate fresh message in Zelcore Desktop 8.43.0, installed from its Debian package.
Both returned HTTP callbacks whose Bitcoin-message signatures verified against my Flux ID, 1M6KGX5x9CNqVFKGv9Tq3HwauVmhWFsujz, and their exact test messages.
Each run saved a verified receipt and exited successfully.
This confirms two working ways for the CLI to obtain a Flux ID signature while the signing key stays in Zelcore.
Learning Flux Nginx by Foot
We will publish the same two-file website as in the Swarm experiment, then change its HTML while nginx keeps running.
The server image and resource allocation stay fixed; publishing changes the files in the replicated document root.
The commands below use one Bash session with Node.js 20 or newer, Python 3, curl, and jq.
I used the application name cs224fluxnginx and the public test-wallet Flux ID recorded above.
Choose your own available application name and Flux ID when following along.
Keep the experiment outside Git: a signed login challenge and its signature together can authorize API requests.
If resuming an existing experiment, retain its state/ and records/ rather than starting another registration or payment.
Prepare the Mini Website
Create a working directory and install the signature verifier:
flux_nginx_dir="$HOME/tmp/publishing-flux-basics/nginx"
umask 077
install -d "$flux_nginx_dir"/{site,tools,records,state,builds/v1}
cd "$flux_nginx_dir"
flux_app=cs224fluxnginx
flux_id=1M6KGX5x9CNqVFKGv9Tq3HwauVmhWFsujz
flux_api=https://23-88-0-56-16127.node.api.runonflux.io
npm install --prefix tools --save-exact --ignore-scripts bitcoinjs-message@2.2.0
curl --fail --location --output tools/flux-wallet-sign.mjs \
'https://gist.githubusercontent.com/cs224/d8a1b7ec1f58e073c386e30ec204f5e7/raw/78d6ffea4f0313713180c0975e75ff34b74c1141/flux-wallet-sign.mjs'
curl --fail --location --output tools/flux-wallet-pay.mjs \
'https://gist.githubusercontent.com/cs224/d8a1b7ec1f58e073c386e30ec204f5e7/raw/78d6ffea4f0313713180c0975e75ff34b74c1141/flux-wallet-pay.mjs'
These helpers live in the companion gist.
The earlier probe generates a harmless test message; flux-wallet-sign.mjs instead signs the exact bytes of a supplied file and displays the operation’s purpose.
It verifies and saves the signature; API submission remains a separate step.
The payment helper opens Zelcore’s payment form for review and leaves authorization and broadcasting to the wallet.
The flux_api above is the particular HTTPS FluxNode endpoint I used, running Flux 8.25.0.
The shared https://api.runonflux.io endpoint is useful for discovery; for the following login and registration steps, keep using the same selected node.
If that node is unavailable, select another healthy node and obtain a fresh login challenge there.
Create the website. The stylesheet is identical to the Swarm example:
cat > site/index.html <<'HTML'
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Publishing on Flux by Foot</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<main>
<p class="kicker">Distributed hosting experiment</p>
<h1>Hello from Flux</h1>
<p>This is version 1 of a tiny website served by nginx on Flux.</p>
</main>
</body>
</html>
HTML
cat > site/style.css <<'CSS'
:root {
font-family: system-ui, sans-serif;
color: #202124;
background: #edf1f5;
}
body {
min-height: 100vh;
margin: 0;
display: grid;
place-items: center;
}
main {
width: min(36rem, calc(100% - 4rem));
padding: 2rem;
border: 0.2rem solid #5b3cc4;
border-radius: 1rem;
background: white;
}
.kicker {
color: #5b3cc4;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
}
CSS
cp site/index.html site/style.css builds/v1/
sha256sum builds/v1/index.html builds/v1/style.css
My two files totalled 853 bytes. I also checked the pinned nginx image locally: replacing version 1 with version 2 changed the served HTML without changing the container’s process ID or start time. The following deployment checks whether that workflow also works across Flux’s replicas.
Describe the nginx Application
The official nginx image serves its document root at /usr/share/nginx/html.
I pinned the multi-platform image digest behind nginx:stable; the downloaded image reported nginx 1.30.8.
That keeps our server image fixed while we update the website files.
Write the complete v8 specification, substituting the application name and owner from our shell variables:
jq --arg name "$flux_app" --arg owner "$flux_id" \
'.name = $name | .owner = $owner' > app-spec.input.json <<'JSON'
{
"version": 8,
"name": "cs224fluxnginx",
"description": "Static website publishing experiment with nginx and replicated storage",
"owner": "1M6KGX5x9CNqVFKGv9Tq3HwauVmhWFsujz",
"compose": [
{
"name": "web",
"description": "nginx serving website files from a replicated document root",
"repotag": "nginx:stable@sha256:755983e0e0e568e4c86297cc91485d7a6f9fb73e42d8a19cdba3eac9e8b8cfc9",
"ports": [31080],
"containerPorts": [80],
"domains": [""],
"environmentParameters": [],
"commands": [],
"containerData": "r:/usr/share/nginx/html",
"cpu": 0.5,
"ram": 500,
"hdd": 5,
"repoauth": ""
}
],
"instances": 3,
"contacts": [],
"geolocation": [],
"expire": 88000,
"nodes": [],
"staticip": false,
"enterprise": false
}
JSON
The additional fields complete the illustrative specification from the concepts section.
The empty domains entry leaves the automatic Flux hostname available; repoauth is empty because this is a public image.
commands and environmentParameters need no overrides.
staticip: false, empty placement lists, and enterprise: false describe an ordinary application without a dedicated static IP or a provider restriction.
expire: 88000 requests one subscription month in blocks under the current network rules.
After Flux’s block-time change, the pricing implementation multiplies the earlier 22,000-block month by four.
Use the current network rules when reproducing this; expiry is ultimately a block-height condition.
Validate the specification before signing it:
curl --fail --silent --show-error \
--header 'Content-Type: text/plain' \
--data-binary @app-spec.input.json \
"$flux_api/apps/verifyappregistrationspecifications" \
> records/validation-response.json
jq -e 'if .status == "success" then .data else error(.data.message) end' \
records/validation-response.json > app-spec.json
curl --fail --silent --show-error \
--header 'Content-Type: text/plain' \
--data-binary @app-spec.json \
"$flux_api/apps/calculatefiatandfluxprice" > records/quote-response.json
jq -e 'if .status == "success" then .data else error(.data.message) end' \
records/quote-response.json
Stop if a check fails.
The Flux API can return HTTP 200 with status: "error", so curl --fail alone does not establish success.
Keep the formatted specification returned by validation: its serialization determines the message the owner signs.
I initially received a quote of US$0.99 / 19.44 FLUX for all three instances; refreshing the quote before payment changed the coin amount to 19.39 FLUX.
Register and Pay for Hosting
Log In to the Selected FluxNode
When refreshing an expired session, first move the previous state/login-* files and state/auth-header.txt into a private, dated backup directory.
The signing helper and header writer refuse to overwrite existing outputs; preserve the registration and payment records while refreshing the login.
Fetch the node’s login challenge and preserve its exact string, without adding a newline:
curl --fail --silent --show-error "$flux_api/id/loginphrase" \
> state/login-challenge.json
jq -ejr 'if .status == "success" then .data else error(.data.message) end' \
state/login-challenge.json > state/login-message.txt
node tools/flux-wallet-sign.mjs \
--flux-id "$flux_id" \
--message-file state/login-message.txt \
--purpose "Log in to the selected Flux node at $flux_api for $flux_app; no registration or hosting payment" \
--mode extension-protocol \
--out state/login-signature.json
Open the printed local URL and approve the message in Zelcore.
Unlike the earlier test message, this signature authorizes a real login.
Use --mode desktop if choosing the Desktop handoff instead.
After verification, submit the login and prepare the encoded authentication header:
jq '{zelid: .fluxId, loginPhrase: .message, signature: .signature}' \
state/login-signature.json > state/login-request.json
curl --fail --silent --show-error \
--header 'Content-Type: text/plain' \
--data-binary @state/login-request.json \
"$flux_api/id/verifylogin" > state/login-response.json
jq -e '.status == "success"' state/login-response.json
node --input-type=module <<'JS'
import { readFileSync, writeFileSync } from 'node:fs';
const login = JSON.parse(readFileSync('state/login-request.json', 'utf8'));
writeFileSync('state/auth-header.txt',
'zelidauth: ' + new URLSearchParams(login).toString() + '\n',
{ flag: 'wx', mode: 0o600 });
JS
Pass that header as a file to curl, keeping its contents out of the command line.
The signature contains characters such as +, /, and =; URL encoding is necessary for the zelidauth header.
Sign and Submit the Application Specification
There are two version numbers again: message version 1 wraps our specification version 8.
The signed message is fluxappregister + 1 + the compact JSON specification + the timestamp, in that order.
Prepare those bytes once:
node --input-type=module <<'JS'
import { readFileSync, writeFileSync } from 'node:fs';
const spec = JSON.parse(readFileSync('app-spec.json', 'utf8'));
const request = {
type: 'fluxappregister', version: 1,
appSpecification: spec, timestamp: Date.now(),
};
const message = request.type + request.version
+ JSON.stringify(spec) + request.timestamp;
writeFileSync('state/registration-unsigned.json', JSON.stringify(request), { flag: 'wx' });
writeFileSync('state/registration-message.txt', message, { flag: 'wx' });
JS
node tools/flux-wallet-sign.mjs \
--flux-id "$flux_id" \
--message-file state/registration-message.txt \
--purpose "Authorize registering $flux_app with its reviewed configuration on Flux; hosting payment follows separately" \
--mode extension-protocol \
--out state/registration-signature.json
Review the specification before approving it in Zelcore. The timestamp and exact message must remain unchanged when attaching the signature and submitting the request:
node --input-type=module <<'JS'
import { readFileSync, writeFileSync } from 'node:fs';
import { createHash } from 'node:crypto';
const request = JSON.parse(readFileSync('state/registration-unsigned.json', 'utf8'));
const signed = JSON.parse(readFileSync('state/registration-signature.json', 'utf8'));
const message = request.type + request.version
+ JSON.stringify(request.appSpecification) + request.timestamp;
if (signed.status !== 'verified' || signed.message !== message
|| signed.fluxId !== request.appSpecification.owner) {
throw new Error('Signature receipt does not match the registration');
}
request.signature = signed.signature;
writeFileSync('state/registration-request.json', JSON.stringify(request), { flag: 'wx' });
writeFileSync('records/expected-app-message-hash.txt',
createHash('sha256').update(message + signed.signature).digest('hex') + '\n',
{ flag: 'wx' });
JS
curl --fail --silent --show-error \
--header @state/auth-header.txt \
--header 'Content-Type: text/plain' \
--data-binary @state/registration-request.json \
"$flux_api/apps/appregister" > records/registration-response.json
jq -er 'if .status == "success" then .data else error(.data.message) end' \
records/registration-response.json > records/app-message-hash.txt
test "$(cat records/app-message-hash.txt)" = "$(cat records/expected-app-message-hash.txt)"
The returned application-message hash is the value the payment must carry as its memo. The network initially holds the signed registration as a temporary message; a confirmed hosting payment makes it a paid application. I received this hash:
ce8dc5e256ad1695f27765ac505faa27df85953fe0a77a7373cc355ff39607df
Test the Image before Paying
Flux can test the pending registration by its message hash:
flux_message_hash=$(cat records/app-message-hash.txt)
curl --fail --silent --show-error --no-buffer \
--header @state/auth-header.txt \
"$flux_api/apps/testappinstall/$flux_message_hash" \
> records/test-install-stream.json
This response contains consecutive JSON progress objects, including Docker’s image-pull progress, rather than one JSON document. Check its final result:
python3 - <<'PY'
from pathlib import Path
import json
remaining = Path('records/test-install-stream.json').read_text()
decoder = json.JSONDecoder()
last = None
while remaining.strip():
remaining = remaining.lstrip()
last, end = decoder.raw_decode(remaining)
remaining = remaining[end:]
print(json.dumps(last, indent=2))
assert last and last.get('status') == 'success', 'Installation test did not succeed'
PY
My test pulled the pinned image and ended with Flux App cs224fluxnginx successfully installed and launched.
Pay with Native FLUX
Refresh the quote and obtain the network’s current deployment recipient:
curl --fail --silent --show-error \
--header 'Content-Type: text/plain' --data-binary @app-spec.json \
"$flux_api/apps/calculatefiatandfluxprice" > records/payment-quote.json
curl --fail --silent --show-error "$flux_api/apps/deploymentinformation" \
> records/deployment-information.json
node --input-type=module <<'JS'
import { readFileSync, writeFileSync } from 'node:fs';
const read = path => JSON.parse(readFileSync(path, 'utf8'));
const quote = read('records/payment-quote.json');
const deployment = read('records/deployment-information.json');
const spec = read('app-spec.json');
if (quote.status !== 'success' || deployment.status !== 'success') {
throw new Error('Missing successful payment quote or deployment information');
}
writeFileSync('records/payment-request.json', JSON.stringify({
appName: spec.name, quoteUSD: quote.data.usd,
amount: quote.data.flux, address: deployment.data.address,
message: readFileSync('records/app-message-hash.txt', 'utf8').trim(),
}, null, 2) + '\n', { flag: 'wx' });
JS
node tools/flux-wallet-pay.mjs --request-file records/payment-request.json
Open the local review page, choose the extension or Desktop, and check the native-FLUX amount, recipient, network fee, and full 64-character memo in Zelcore before sending.
The helper uses coin=zelcash, the native-FLUX identifier in the zel: protocol.
It cannot establish payment success from opening the wallet; we must check the transaction and Flux’s paid application record.
I paid 19.39 FLUX to t3NryfAQLGeFs9jEoeqsxmBN2QLRaRKFLUX.
The confirmed payment transaction contains the complete application-message hash in its OP_RETURN output.
The network fee was 0.00001495 FLUX.
Flux then returned the application as a paid specification at block 3,171,203.
Publish and Verify the Files
Find the nodes hosting our application:
curl --fail --silent --show-error "$flux_api/apps/location/$flux_app" \
> records/locations.json
jq -e '.status == "success" and (.data | length) == 3' records/locations.json
jq '.data[] | {ip, runningSince}' records/locations.json
The location list is a discovery result, rather than proof that each container has passed its storage-readiness checks.
In my first per-node inspection, two containers were still created, while the seed copy was already running.
That was the r: startup coordination from the concepts section in action.
I selected the ready seed on 151.237.94.189:16157 for the upload.
Choose a ready instance from your own location list; the following URL is its HTTPS API endpoint:
flux_upload_api=https://151-237-94-189-16157.node.api.runonflux.io
curl --fail --silent --show-error "$flux_upload_api/apps/promotedfolders" \
> records/upload-node-storage.json
jq -e --arg folder "fluxweb_$flux_app" \
'.status == "success" and .data.ready and (.data.folders | index($folder) != null)' \
records/upload-node-storage.json
curl --fail --silent --show-error --header @state/auth-header.txt \
--get --data-urlencode "appname=web_$flux_app" \
"$flux_upload_api/apps/appinspect" > records/upload-node-before.json
jq -e '.status == "success" and .data.State.Running' records/upload-node-before.json
The promoted-folder check identifies a writable, send-and-receive replica. My recent login signature was accepted by the hosting node’s owner checks as well as the registration node. If an authenticated request is refused, obtain a fresh login for the target node, using fresh state filenames.
Upload the two files into appdata, the component-volume directory mounted as nginx’s document root:
curl --fail --silent --show-error --no-buffer \
--header @state/auth-header.txt \
--form 'style.css=@builds/v1/style.css;type=text/css' \
--form 'index.html=@builds/v1/index.html;type=text/html' \
"$flux_upload_api/ioutils/fileupload?appname=$flux_app&component=web&folder=appdata" \
> records/upload-v1-response.txt
cat records/upload-v1-response.txt
The multipart field names become the destination filenames here: style.css and index.html.
Using a generic field named file would not express those two destination names.
The response is upload progress and completed filenames, not one JSON envelope.
An upload acknowledgement establishes the local write; it does not establish that every peer already has the bytes.
The file-upload API is the CLI counterpart of uploading through the Volume Browser.
Its folder=appdata is relative to the component volume; we do not pass the container-side /usr/share/nginx/html path to this endpoint.
Check both files directly on every hosting machine and save each container’s state. This loop uses the IPv4 locations from our experiment:
while IFS= read -r flux_location; do
flux_node_ip=${flux_location%:*}
flux_node_port=${flux_location##*:}
flux_node_api="https://${flux_node_ip//./-}-$flux_node_port.node.api.runonflux.io"
curl --fail --silent --show-error \
"http://$flux_node_ip:31080/index.html" > "records/$flux_node_ip-v1.html"
curl --fail --silent --show-error \
"http://$flux_node_ip:31080/style.css" > "records/$flux_node_ip-v1.css"
cmp builds/v1/index.html "records/$flux_node_ip-v1.html"
cmp builds/v1/style.css "records/$flux_node_ip-v1.css"
curl --fail --silent --show-error --header @state/auth-header.txt \
--get --data-urlencode "appname=web_$flux_app" \
"$flux_node_api/apps/appinspect" > "records/$flux_node_ip-before-update.json"
jq -e '.status == "success" and .data.State.Running' \
"records/$flux_node_ip-before-update.json"
done < <(jq -r '.data[].ip' records/locations.json)
Allow synchronization to finish and repeat the read checks if a replica still has an earlier file or is not running yet.
I verified both files on 80.208.17.21, 151.237.94.189, and 92.240.66.185.
Each matched the saved version 1 build byte for byte.
The automatic Flux hostname adds HTTPS and the managed frontend:
flux_site_url="https://$flux_app.app.runonflux.io"
curl --fail --silent --show-error "$flux_site_url/index.html" > records/public-v1.html
curl --fail --silent --show-error "$flux_site_url/style.css" > records/public-v1.css
cmp builds/v1/index.html records/public-v1.html
cmp builds/v1/style.css records/public-v1.css
My publication is available at cs224fluxnginx.app.runonflux.io. Before the upload, nginx returned 403 Forbidden from its empty mounted document root. After synchronization, the public HTML and stylesheet both matched the local build.
Update the Running Website
Change only the HTML and retain a second local build:
python3 - <<'PY'
from pathlib import Path
path = Path('site/index.html')
old = 'This is version 1 of a tiny website served by nginx on Flux.'
new = 'This is version 2: the website changed while nginx kept running.'
text = path.read_text()
assert text.count(old) == 1
path.write_text(text.replace(old, new, 1))
PY
install -d builds/v2
cp site/index.html site/style.css builds/v2/
cmp builds/v1/style.css builds/v2/style.css
curl --fail --silent --show-error --no-buffer \
--header @state/auth-header.txt \
--form 'index.html=@builds/v2/index.html;type=text/html' \
"$flux_upload_api/ioutils/fileupload?appname=$flux_app&component=web&folder=appdata" \
> records/upload-v2-response.txt
This sends one changed file to the same ready instance. It does not submit an application-specification update, restart nginx, or make another hosting payment.
After propagation, compare the files and container identity on all three nodes:
while IFS= read -r flux_location; do
flux_node_ip=${flux_location%:*}
flux_node_port=${flux_location##*:}
flux_node_api="https://${flux_node_ip//./-}-$flux_node_port.node.api.runonflux.io"
curl --fail --silent --show-error \
"http://$flux_node_ip:31080/index.html" > "records/$flux_node_ip-v2.html"
curl --fail --silent --show-error \
"http://$flux_node_ip:31080/style.css" > "records/$flux_node_ip-v2.css"
cmp builds/v2/index.html "records/$flux_node_ip-v2.html"
cmp builds/v1/style.css "records/$flux_node_ip-v2.css"
curl --fail --silent --show-error --header @state/auth-header.txt \
--get --data-urlencode "appname=web_$flux_app" \
"$flux_node_api/apps/appinspect" > "records/$flux_node_ip-after-update.json"
jq -e '.status == "success" and .data.State.Running' \
"records/$flux_node_ip-after-update.json"
cmp \
<(jq -S '{id: .data.Id, pid: .data.State.Pid, startedAt: .data.State.StartedAt}' \
"records/$flux_node_ip-before-update.json") \
<(jq -S '{id: .data.Id, pid: .data.State.Pid, startedAt: .data.State.StartedAt}' \
"records/$flux_node_ip-after-update.json")
done < <(jq -r '.data[].ip' records/locations.json)
curl --fail --silent --show-error "$flux_site_url/index.html" > records/public-v2.html
curl --fail --silent --show-error "$flux_site_url/style.css" > records/public-v2.css
cmp builds/v2/index.html records/public-v2.html
cmp builds/v1/style.css records/public-v2.css
My version 2 HTML reached all three instances and the public hostname. The CSS remained identical, and each container kept its ID, process ID, and start time. The registration hash also remained the one paid for above. That establishes the intended publishing workflow for this experiment: update ordinary files on a ready replica and let Syncthing distribute them while nginx keeps running.
The earlier consistency limitations still apply: different files can arrive at different times, and concurrent edits on different replicas require conflict handling. For a larger website, distribute versioned assets before the HTML that references them and verify their availability across replicas. The initial payment covered one subscription month; keeping it online beyond that term requires renewal.
Inspect the Deployment in the Browser
The FluxCloud console provides a browser interface to the same application we registered through the CLI. We can use it to inspect the configuration, hosting machines, container state, and website files.
Sign In with the Zelcore Extension
- Open Chrome in the profile containing the Zelcore browser extension and unlock the account used above.
In Apps → Flux ID, check that the identity matches the owner in
app-spec.json. My deployment uses1M6KGX5x9CNqVFKGv9Tq3HwauVmhWFsujz. - Open FluxCloud, choose Sign In, and select the Zelcore / Flux ID icon in the wallet-login options.
- Review the login-message request in Zelcore and approve it with that Flux ID. This signs a fresh authentication challenge; the login itself does not broadcast a transaction or spend FLUX.
- Open Applications → Management → My Active Apps, search for
cs224fluxnginx, and click Manage. We can also open its management page directly.
The owner identity connects the CLI registration to this browser session. If the application is missing, check which Flux ID signed the login; the native-FLUX payment address and the Ethereum account have different roles. The management documentation describes this application list and its Manage and Visit buttons.
The console’s Zelcore login implementation calls
window.zelcore.protocol()when the extension supplies it. Otherwise, it opens thezel:link through the operating system, which can launch Zelcore Desktop. If Desktop opens when we intended to use the extension, check the extension’s access to the FluxCloud site and reload the page before retrying.
Compare the Configuration and Running Instances
The management page combines application-wide information with views of one hosting machine. Its FluxNode IP selector at the top right chooses the machine for node-specific checks; use its refresh button to update the available locations. Select component web wherever a component selector appears.
| Panel | What to verify for our nginx deployment |
|---|---|
| Specifications → Global Specifications | The registered owner, three requested instances, and component web: the pinned nginx image, 0.5 CPU core, 500 MB RAM, 5 GB disk, port 31080 mapped to 80, and r:/usr/share/nginx/html. |
| Specifications → Local Specifications | The selected node’s installed configuration agrees with the global specification. Repeat for each hosting node. |
| Instances | Three hosting locations. App opens an instance’s application endpoint; FluxNode opens that provider’s FluxOS interface. Locations can change as Flux replaces instances. |
| Information | The selected container is running, uses the expected image and mounted document root, and has the expected resource limits. Its start time helps check whether it continued running across a file update. |
| Monitoring | CPU, memory, network, and storage usage for the selected component and node. |
| Subscription → Renewal | The current prepaid subscription end date. Viewing it requires no renewal payment. |
An entry in Instances records a hosting location; check Information on each node to establish that its container is actually running.
This is the same distinction we encountered while r: replicas waited for their initial synchronization.
Inspect the Files and Open the Website
Open Secure Shell → Volume Browser, select a hosting node and component web, and enter appdata.
The Volume Browser lets us download index.html and style.css for inspection without a local CLI.
As explained earlier, the v8.25.0 backend exposes the component volume here: appdata/index.html corresponds to /usr/share/nginx/html/index.html inside nginx.
Repeat the inspection on all three nodes. The downloaded HTML should contain:
<p>This is version 2: the website changed while nginx kept running.</p>
For the same verification as our CLI experiment, compare the files downloaded from each node with the saved builds/v2 files.
Comparing the complete files also checks the stylesheet and the rest of the HTML.
The browser also offers upload and edit operations; those write to the selected replica and propagate through Syncthing as described above.
Finally, use Visit, or open the public website directly.
We should see Hello from Flux, the version 2 sentence, and the stylesheet applied.
Chrome’s Developer Tools → Network panel can confirm successful responses for the page and style.css after a reload.
This checks the public FDN route; the per-node checks establish that every replica has the publication.
Renew Hosting through the API
Why the Browser Asked for an Email
I first tried Subscription → Renewal in the browser console and selected three months. Validation stopped with “At least one contact email is required.” The frontend check requires a nonempty contact list for specification versions 5 and later, including renewals. This differs from the general configuration documentation, which labels contact information optional.
The node API has its own validation.
In Flux v8.25.0, contacts must be an array and individual entries have limits, but the array can be empty.
My API renewal retained contacts: []: validation, the signed update, and the paid renewal all succeeded without providing an email address.
An email address for notifications and a Flux ID for authorization serve separate purposes; the owner still signs the renewal.
Later, renewing the IPFS application through the browser succeeded after I supplied a contact email.
Preserve the Remaining Prepaid Time
A renewal uses the application-update API, with the same application specification and a new expire value.
The value counts blocks from the renewed application’s paid-message height.
To add three months, we carry forward the blocks still paid for and add 3 × 88,000 = 264,000 blocks.
The frontend renewal calculation follows this same approach.
These are Flux subscription months measured in blocks; the calendar end date is an estimate based on block production.
Continue in the nginx experiment directory, reusing flux_api, flux_app, flux_id, and the authenticated node session from above:
install -d -m 700 renewal/state
install -d renewal/records
curl --fail --silent --show-error \
"$flux_api/apps/appspecifications/$flux_app" > renewal/records/spec-before.json
curl --fail --silent --show-error \
"$flux_api/flux/info" > renewal/records/node-info.json
node --input-type=module <<'JS'
import { readFileSync, writeFileSync } from 'node:fs';
const read = path => JSON.parse(readFileSync(path, 'utf8'));
const previous = read('renewal/records/spec-before.json');
const info = read('renewal/records/node-info.json');
if (previous.status !== 'success' || info.status !== 'success') {
throw new Error('Missing application or chain information');
}
const { hash, height, ...spec } = previous.data;
const currentHeight = info.data.daemon.info.blocks;
const remaining = height + spec.expire - currentHeight;
if (spec.version !== 8 || remaining <= 0) {
throw new Error('This example expects an active post-fork v8 application');
}
spec.expire = remaining + 3 * 88000;
writeFileSync('renewal/app-spec.input.json', JSON.stringify(spec, null, 2) + '\n',
{ flag: 'wx' });
JS
curl --fail --silent --show-error \
--header 'Content-Type: text/plain' \
--data-binary @renewal/app-spec.input.json \
"$flux_api/apps/verifyappupdatespecifications" \
> renewal/records/validation-response.json
jq -e 'if .status == "success" then .data else error(.data.message) end' \
renewal/records/validation-response.json > renewal/app-spec.json
curl --fail --silent --show-error \
--header 'Content-Type: text/plain' --data-binary @renewal/app-spec.json \
"$flux_api/apps/calculatefiatandfluxprice" > renewal/records/quote-response.json
jq -e 'if .status == "success" then .data else error(.data.message) end' \
renewal/records/quote-response.json
Inspect the validated specification before continuing: only expire should differ from the previous configuration after removing its hash and height metadata.
If the authenticated session has expired, repeat the earlier Flux ID login against the same flux_api.
My original expiry was block 3,259,203: paid height 3,171,203 plus 88,000 blocks. At preparation height 3,171,260, 87,943 prepaid blocks remained, so the renewed specification requested 351,943 blocks. The API accepted the empty contact list and initially quoted US$2.99 / 58.33 FLUX. The quote accounts for the remaining prepaid allocation; we use the API’s returned price rather than multiplying the original coin payment by three.
Sign and Submit the Renewal
This time the message type is fluxappupdate.
Its envelope version remains 1, and the application specification remains v8.
Prepare the exact bytes once:
node --input-type=module <<'JS'
import { readFileSync, writeFileSync } from 'node:fs';
const spec = JSON.parse(readFileSync('renewal/app-spec.json', 'utf8'));
const request = {
type: 'fluxappupdate', version: 1,
appSpecification: spec, timestamp: Date.now(),
};
writeFileSync('renewal/state/unsigned.json', JSON.stringify(request),
{ flag: 'wx', mode: 0o600 });
writeFileSync('renewal/state/message.txt',
request.type + request.version + JSON.stringify(spec) + request.timestamp,
{ flag: 'wx', mode: 0o600 });
JS
node tools/flux-wallet-sign.mjs \
--flux-id "$flux_id" \
--message-file renewal/state/message.txt \
--purpose "Renew $flux_app for three additional months, preserving remaining prepaid time and the existing configuration; payment follows separately" \
--mode extension-protocol \
--out renewal/state/signature.json
Approve the message in Zelcore, then attach its verified signature and submit it:
node --input-type=module <<'JS'
import { readFileSync, writeFileSync } from 'node:fs';
import { createHash } from 'node:crypto';
const read = path => JSON.parse(readFileSync(path, 'utf8'));
const request = read('renewal/state/unsigned.json');
const signed = read('renewal/state/signature.json');
const message = request.type + request.version
+ JSON.stringify(request.appSpecification) + request.timestamp;
if (signed.status !== 'verified' || signed.message !== message
|| signed.fluxId !== request.appSpecification.owner) {
throw new Error('Signature receipt does not match the renewal');
}
request.signature = signed.signature;
writeFileSync('renewal/state/request.json', JSON.stringify(request),
{ flag: 'wx', mode: 0o600 });
writeFileSync('renewal/records/expected-message-hash.txt',
createHash('sha256').update(message + signed.signature).digest('hex') + '\n',
{ flag: 'wx' });
JS
curl --fail --silent --show-error \
--header @state/auth-header.txt --header 'Content-Type: text/plain' \
--data-binary @renewal/state/request.json \
"$flux_api/apps/appupdate" > renewal/records/submission-response.json
jq -er 'if .status == "success" then .data else error(.data.message) end' \
renewal/records/submission-response.json > renewal/records/message-hash.txt
test "$(cat renewal/records/message-hash.txt)" = \
"$(cat renewal/records/expected-message-hash.txt)"
The update API verifies the owner’s signature and distributes the signed update. Its returned hash identifies this renewal and becomes the payment memo. The earlier registration hash belongs to the original payment.
Pay and Verify the New Expiry
Refresh the price and deployment recipient, then open the existing payment helper:
curl --fail --silent --show-error \
--header 'Content-Type: text/plain' --data-binary @renewal/app-spec.json \
"$flux_api/apps/calculatefiatandfluxprice" > renewal/records/payment-quote.json
curl --fail --silent --show-error "$flux_api/apps/deploymentinformation" \
> renewal/records/deployment-information.json
jq -n --arg app "$flux_app" \
--slurpfile quote renewal/records/payment-quote.json \
--slurpfile deployment renewal/records/deployment-information.json \
--rawfile memo renewal/records/message-hash.txt \
'if $quote[0].status != "success" or $deployment[0].status != "success"
then error("Missing successful payment quote or deployment information")
else {appName: $app, quoteUSD: $quote[0].data.usd,
amount: $quote[0].data.flux, address: $deployment[0].data.address,
message: ($memo | rtrimstr("\n"))} end' \
> renewal/records/payment-request.json
node tools/flux-wallet-pay.mjs \
--request-file renewal/records/payment-request.json
Check the amount, recipient, network fee, and complete renewal-message hash in the wallet before sending. Opening the payment request does not establish success. After confirmation, retrieve the paid specification again:
curl --fail --silent --show-error \
"$flux_api/apps/appspecifications/$flux_app" > renewal/records/spec-after.json
jq -e --rawfile hash renewal/records/message-hash.txt \
'.status == "success" and .data.hash == ($hash | rtrimstr("\n"))' \
renewal/records/spec-after.json
jq '.data | {name, contacts, hash, height, expire, expiryHeight: (.height + .expire)}' \
renewal/records/spec-after.json
Before payment, the refreshed quote was 58.19 FLUX.
I paid that amount in the renewal transaction, with a network fee of 0.00002240 FLUX.
Its OP_RETURN contains the full renewal-message hash:
9d2ffde7a6b784e977cd17a2e6466d0aea2bb74012f97adca527d8d084698794
The confirmed payment and the application’s new specification agreed:
| Check | Result |
|---|---|
| Previous expiry | Block 3,259,203 |
| Renewal paid height | Block 3,171,275 |
New expire |
351,943 blocks |
| New expiry | Block 3,523,218 |
| Contacts | [] |
I verified that all three hosting nodes saw the new specification. Each nginx container retained its ID, process ID, and start time, and the public HTML and CSS remained byte-for-byte identical to the saved version 2 build. The renewal extended hosting without republishing files or restarting nginx.
The final expiry is the new paid height plus expire.
My payment landed 15 blocks after preparation, so the expiry advanced by 264,015 blocks.
At an assumed 30 seconds per future block, the new expiry is approximately 1 April 2027; the block height determines the actual end of the term.
Reload Subscription → Renewal in the browser console to see its estimated end date, and inspect Information on each node to check container continuity.
What the Browser Showed after Renewal
After the API renewal, I checked the browser console again and found different expiry displays:
| Browser view | What I saw |
|---|---|
| My Applications → My Active Apps | Approximately 122 days, 4 hours, 44 minutes remaining, reflecting the original remaining time plus the three-month extension. |
Manage gear → Specifications → Local Specification, with node 80.208.17.21:16137 selected |
Approximately 30 days, 12 hours, 34 minutes remaining. The record still showed the original registration height 3,171,203, original message hash, and expiry block 3,259,203. |
| Manage → Subscription → Update → General, under Period | “Currently your application is subscribed until 01/04/2027, 17:49.” This means 1 April 2027, shown in the browser’s local time. |
The distinction between Local and Global Specifications matters here.
The detail page had LOCAL selected and displayed the node’s installation record.
A direct API check reproduced the difference: /apps/installedapps/cs224fluxnginx on that node still returned the original specification, while /apps/appspecifications/cs224fluxnginx returned the paid renewal with expiry block 3,523,218.
This establishes that the two records differed at inspection; I did not establish when the local record would refresh.
To check the renewed hosting term, select GLOBAL in the Specifications panel and compare the renewal-message hash and expiry with the paid API record above. The Subscription panel’s calendar estimate provides another useful cross-check. The shorter countdown in the local installation view alone does not show that the renewal failed.
The Subscription → Update → General view also revealed the empty Contact * email field below Specification Version.
That is where I could enter an address if I wanted to provide one.
The simplified Renewal view hides that field while still requiring it during validation, explaining why I initially could not find a place to satisfy the error.
Our completed API renewal retained contacts: [].
Below Instances, I also saw this notice:
The minimum instances for apps with decentralized persistent storage is 2. To use fewer instances, disable data synchronization in the volume path settings.
This is the synchronized-storage rule discussed under Deploying Containers.
For our r: nginx document root, the console permits two or more instances; we chose three.
Its wording connects the lower bound to data synchronization, while the single-instance option requires synchronization to be disabled.
Learning Flux IPFS by Foot
For this second installation, we can reuse the Flux API, Flux ID, wallet helpers, and registration/payment sequence from the nginx experiment. The new parts are the IPFS repositories, peer connectivity, and publication CIDs.
Deploy Two Independent Peers
I deployed application cs224fluxipfs, with one component named ipfs and two instances of Kubo v0.43.2.
Each requests 0.5 CPU core, 1,000 MB RAM, and 5 GB disk.
The image is pinned to this multi-platform digest:
ipfs/kubo:v0.43.2@sha256:31b965f24ee47e3cb3832a5e3973f5102dd643932a9621a8c2fd7dbe5a0a799b
Work in a fresh sibling directory, ~/tmp/publishing-flux-basics/ipfs, and adapt the previous app-spec.json:
| Setting | IPFS value |
|---|---|
| Application / component names | cs224fluxipfs / ipfs |
instances |
2 |
ram |
1000 per instance |
ports / containerPorts |
[31081, 31082] / [8080, 4001] |
domains |
["", ""] |
containerData |
/data/ipfs|m:staging:/staging |
environmentParameters |
["IPFS_PROFILE=server", "GOMEMLIMIT=700MiB"] |
commands |
["daemon", "--migrate=true", "--enable-gc", "--agent-version-suffix=flux-blog"] |
expire |
88000, one subscription month |
The primary local volume contains each peer’s repository; the additional staging mount receives our generated files.
There is no Syncthing prefix. Each peer keeps its own identity and pin set, and IPFS transfers publication blocks between them.
The two copies are our redundancy choice; the console’s synchronized-volume minimum concerns the Syncthing modes discussed earlier.
Flux can replace a lost hosting instance, but this specification does not automatically restore its repository or pins on a new machine. After a move to another hosting node, reapply the configuration below and pin every retained root CID on the new peer, fetching from a surviving provider or reimporting the saved builds. Check the pin set and actual file delivery after hosting locations change.
The first port exposes the HTTP gateway, and the second exposes IPFS peer traffic over TCP and UDP.
RPC port 5001 has no public mapping.
Keep the other ordinary v8 fields from the nginx specification, including our owner identity and contacts: [].
Create fresh state and records directories, reuse the authenticated header while it remains valid, and call the existing helpers through ../nginx/tools/.
Copy the header with install -m 600 ../nginx/state/auth-header.txt state/auth-header.txt; repeat login if that session has expired.
Repeat validation, signing, registration, image testing, and payment with the IPFS specification.
My image test succeeded, and I paid 19.35 FLUX for the US$0.99 one-month quote, plus 0.00001495 FLUX network fee.
The paid registration hash is 849c8ba7d3b89dfeb35fa316d37ade8016b976eef848b057b96ad0fa91da4a7e.
Flux placed the peers on 80.208.17.24:16147 and 82.64.252.35:16137.
The application also appears in FluxCloud’s management console under the same owner identity.
Configure the Peers through Flux
The authenticated POST /apps/appexec endpoint runs a command inside a component without exposing its own administrative API.
This small shell function makes the requests:
flux_app=cs224fluxipfs
flux_peer_a=https://80-208-17-24-16147.node.api.runonflux.io
flux_peer_b=https://82-64-252-35-16137.node.api.runonflux.io
flux_exec() {
jq -n --arg app "ipfs_$flux_app" --args \
'{appname:$app,cmd:$ARGS.positional,env:[]}' -- "$@" > state/exec-request.json
curl --fail --silent --show-error --no-buffer \
--header @state/auth-header.txt --header 'Content-Type: text/plain' \
--data-binary @state/exec-request.json "$flux_node_api/apps/appexec"
}
Its response is command output; check the expected result rather than assuming HTTP success means the command succeeded.
For each peer, set flux_node_api to its API URL and run:
flux_exec /bin/sh -ec '
ipfs config Addresses.API /ip4/127.0.0.1/tcp/5001
ipfs config --json Gateway.NoFetch true
ipfs config --json Gateway.NoDNSLink true
ipfs config --json Swarm.Transports.Network.WebTransport true
ipfs config --json Addresses.Swarm '\''["/ip4/0.0.0.0/tcp/4001","/ip4/0.0.0.0/udp/4001/quic-v1","/ip4/0.0.0.0/udp/4001/quic-v1/webtransport"]'\''
ipfs config --json Addresses.Announce "[\"/ip4/$FLUX_NODE_HOST_IP/tcp/31082\",\"/ip4/$FLUX_NODE_HOST_IP/udp/31082/quic-v1\",\"/ip4/$FLUX_NODE_HOST_IP/udp/31082/quic-v1/webtransport\"]"
ipfs config Routing.Type autoclient
ipfs config --json Provide.DHT.MaxWorkers 4
ipfs config AutoNAT.ServiceMode disabled
ipfs config --json Swarm.RelayService.Enabled false
ipfs config Datastore.StorageMax 4GB
echo CONFIGURED
'
curl --fail --silent --show-error --header @state/auth-header.txt \
"$flux_node_api/apps/apprestart/ipfs_$flux_app"
Flux supplies FLUX_NODE_HOST_IP inside the container.
The announcement addresses tell other peers how to reach its mapped port; this example uses the IPv4 providers listed above.
Gateway.NoFetch restricts HTTP delivery to locally available content, while the private RPC remains available to the IPFS CLI inside the container.
The remaining settings limit background resource use and leave disk headroom.
See Kubo’s configuration reference and low-memory guidance.
Restart each peer after configuration, then wait for flux_exec ipfs id to succeed.
The returned peer IDs must differ, as required for independent nodes.
The block includes the WebTransport settings I added during the later browser-retrieval checks.
Import and Pin the Website
Reuse index.html and style.css, changing the first version’s paragraph to “This is version 1 of a tiny website pinned with IPFS on Flux.”
Keep the build in builds/v1.
Upload those two files to peer A’s staging directory through the Volume Browser or the same upload API used for nginx:
flux_node_api=$flux_peer_a
curl --fail --silent --show-error --no-buffer --header @state/auth-header.txt \
--form 'index.html=@builds/v1/index.html;type=text/html' \
--form 'style.css=@builds/v1/style.css;type=text/css' \
"$flux_node_api/ioutils/fileupload?appname=$flux_app&component=ipfs&folder=staging"
flux_exec ipfs add --quieter --recursive --cid-version=1 --hash=sha2-256 \
--raw-leaves=true --chunker=size-262144 --pin=true /staging > records/cid-v1.txt
flux_cid_v1=$(cat records/cid-v1.txt)
flux_exec ipfs id > records/peer-a-id.json
This imports the directory and recursively pins its root. The explicit import settings also let us reproduce the CID from a saved build. Connect peer B to A and ask it to fetch and pin that root:
flux_peer_a_id=$(jq -r .ID records/peer-a-id.json)
flux_node_api=$flux_peer_b
flux_exec ipfs swarm connect "/ip4/80.208.17.24/tcp/31082/p2p/$flux_peer_a_id"
flux_exec ipfs pin add --recursive=true --timeout=120s "$flux_cid_v1"
Peer B fetched the blocks from A; I did not upload the website or copy A’s repository to B.
Publish Another Revision and Verify Both
For version 2, I changed only the paragraph to “This is version 2: a new IPFS directory CID, with version 1 still pinned.”
I saved builds/v2, uploaded its index.html to A’s staging directory, and repeated the same ipfs add command, recording records/cid-v2.txt.
Then I ran ipfs pin add for the new CID on B, retaining both earlier pins.
| Revision | Directory CID and public gateway link |
|---|---|
| Version 1 | bafybeiho5j5jbecx32fbxive32ddxanaryw6zvyqzu2ieghyayb5qvrk7i |
| Version 2 | bafybeif2i5cegydqidcvtrbdxpvjm6kwyixhfble5evphqese5dzra2gne |
On each peer, run flux_exec ipfs repo gc, followed by flux_exec ipfs pin ls --type=recursive --quiet.
Both roots should remain listed.
Retrieve /ipfs/<CID>/index.html and /ipfs/<CID>/style.css through each peer’s port 31081 and through the public Flux hostname, comparing them with their saved builds.
My checks passed for both complete revisions on both peers and the public gateway after garbage collection.
The stylesheet remained identical.
Both containers retained their IDs, process IDs, start times, and peer identities throughout the two publication steps; the Flux registration hash also stayed unchanged.
Publishing the new CID required no additional hosting payment.
I verified that RPC remained bound to localhost and unmapped; the public gateway returned 404 for /api/v0/id.
Renew the IPFS Application in the Browser
I later completed a three-month renewal of cs224fluxipfs through the web UI, after providing a contact email in Subscription → Update → General.
Once the contact requirement was satisfied, the browser workflow succeeded.
This complements the nginx experiment, where the API accepted a renewal with an empty contact list.
My confirmed browser-renewal payment paid 48.75 FLUX, plus 0.00001495 FLUX network fee. The payment memo matches the renewed application’s message hash:
ec9ea0bab69dca6a5ed9e922aff162b92be8ed7817ab2ba7c0795f1c490fb839
| Check | Result |
|---|---|
| Previous expiry | Block 3,259,356 |
| Renewal paid height | Block 3,171,385 |
New expire |
351,977 blocks |
| New expiry | Block 3,523,362, approximately 1 April 2027 |
The expiry advanced by 264,006 blocks: a three-month extension is 264,000 blocks, and the extra six blocks are consistent with a short delay between preparation and confirmation.
The contact list now contains one F_S_CONTACTS=... Flux Storage reference, while the owner, two instances, image, resource allocations, and storage paths remain unchanged.
Both publication CIDs still retrieved their original HTML and CSS correctly after renewal.
Retrieve through Other IPFS Gateways
A separate DHT provider lookup found both hosted peer IDs for version 2. I also retrieved both versions through Filebase’s public IPFS gateway and verified that their HTML and CSS matched the saved builds byte for byte:
| Revision | Generic gateway link |
|---|---|
| Version 1 | Open through Filebase |
| Version 2 | Open through Filebase |
I did not upload the files to a Filebase account; its gateway retrieved them by CID. The CID remains the same when we change the gateway hostname. A recursive gateway can discover a provider and fetch the blocks, subject to its operator’s access rules and service availability. Our peers continue retaining the pinned revisions.
Why ipfs.io and dweb.link Now Use the Browser
The IPFS project’s announcement of 25 August 2026 explains a change in who retrieves the content. With a conventional HTTP gateway, the gateway server finds IPFS providers, fetches their blocks, and returns our HTML and CSS:
Browser --HTTPS--> gateway server --IPFS--> content providers
Browser navigation through ipfs.io and dweb.link now redirects to inbrowser.link.
It loads a JavaScript IPFS client in a service worker, which retrieves blocks, verifies their hashes, and assembles the files in our browser:
ipfs.io / dweb.link --redirect--> inbrowser.link
|
browser service worker
|
WebTransport
|
our Kubo peers
The directory CID becomes part of the hostname, for example <CID>.ipfs.inbrowser.link, giving each publication its own web origin.
The service-worker gateway’s documentation says its former public fallback gateway has been retired: it needs providers the browser can reach directly.
An ordinary TCP or QUIC address is insufficient for that browser connection.
This also explains the difference between browser and CLI results.
My curl requests to ipfs.io and dweb.link received HTTP 429 with a migration notice; other automated requests encountered Cloudflare verification.
curl does not execute a service worker.
The announcement describes increasing restrictions on automated and hotlinked traffic and recommends dedicated gateways or IPFS clients for backend retrieval.
Our Flux gateway and the Filebase links above still provide ordinary HTTP retrieval.
Check Provider Health and Browser Compatibility Separately
My first browser attempt reached the service worker but returned 502 Bad Gateway:
No providers with browser-compatible transports were found.
The accompanying IPFS Check test found one working provider among three sampled provider records.
It connected to our peer at 82.64.252.35 over QUIC and found the CID through Bitswap, IPFS’s block-exchange protocol.
However, that peer had no address a browser could use.
Connection attempts to our other peer, 80.208.17.24, timed out; the additional record had no addresses available to the test.
The sample established one working retrieval path at that moment, rather than counting all retained copies.
I checked the second peer through its Flux API and direct HTTP gateway. Some requests timed out, and its Docker inspection record later showed health-check timeouts followed by successful checks. It recovered before I performed the transport restart, with its original container ID and start time intact and both publication roots still recursively pinned. I did not establish the underlying cause of that temporary availability problem.
For this diagnosis, the authenticated /apps/appinspect?appname=ipfs_cs224fluxipfs endpoint provides container state and recent health-check results.
flux_exec ipfs id checks whether Kubo answers, and flux_exec ipfs pin ls --type=recursive checks retention.
Retrieving each revision’s HTML and CSS through that node’s gateway tests actual delivery.
An application-location entry or a provider announcement alone does not establish all three.
Enable Browser Retrieval on the Existing Peers
My original configuration explicitly listed only TCP and ordinary QUIC. I added WebTransport to both peers; the configuration block above includes those additions so a fresh installation can start with them:
- Enable
Swarm.Transports.Network.WebTransport. - Listen on
/ip4/0.0.0.0/udp/4001/quic-v1/webtransport. - Advertise
/ip4/<hosting-IP>/udp/31082/quic-v1/webtransport.
WebTransport shares the existing UDP mapping 31082 → 4001 with ordinary QUIC, so this required no additional application port or resource allocation.
Kubo adds its certificate hashes to the advertised address automatically; inspect ipfs id to see the complete /webtransport/certhash/... address.
See Kubo v0.43.2’s transport configuration.
I saved a configuration backup inside each private repository volume, applied the settings, and restarted one peer at a time through Flux, beginning with the available peer B. After each restart, I checked its identity and pins, then requested fresh provider announcements:
# Run against each peer after its configuration restart and once Kubo answers.
flux_exec ipfs id
flux_exec ipfs pin ls --type=recursive
flux_exec ipfs provide once --recursive \
"$(cat records/cid-v1.txt)" "$(cat records/cid-v2.txt)"
The last command queues announcements; discovery services can take time to reflect the new addresses. Both peers retained their identities and both publication pins. The CIDs, paid application specification, resource allocation, and subscription expiry stayed unchanged, and no further payment was needed. RPC port 5001 remained private.
Verify the Pages in a Normal Browser
After the change, I reloaded these entry links in my normal browser and confirmed that both versions loaded with their styling:
| Revision | Browser entry link |
|---|---|
| Version 1 | Open through ipfs.io |
| Version 2 | Open through dweb.link |
The direct service-worker destinations are version 1 on inbrowser.link and version 2 on inbrowser.link. I also repeated all 16 HTTP file checks: two files in each of two revisions, through each hosting node, the Flux hostname, and Filebase. Every response matched the corresponding saved build byte for byte.
The automated headless-browser checks were less consistent: the entry domains presented Cloudflare challenges, and some direct service-worker attempts still returned provider-retrieval errors after discovering WebTransport addresses. The successful end-to-end browser result here is the manual test above; I did not establish the cause of those automated failures. If a browser route fails, check provider reachability and browser-compatible addresses separately, and test a conventional HTTP gateway as another retrieval path.
Find a Gateway in the Public Overview
The IPFS Public Gateway Checker, also reachable through ipfs.fyi/gateways, provides an overview of public endpoints. The IPFS documentation recommends it for finding gateways and troubleshooting access. It serves a similar practical purpose to the AR.IO gateway directory we used in the Arweave article: finding another gateway through which to retrieve the same publication.
The checker draws from a community-maintained URL list and runs tests in our browser. Its columns include online status, response time, hotlinking, CORS, IPNS, origin isolation, and support for verifiable retrieval formats. The underlying gateway list is available as JSON for inspection or scripting. It is an overview of contributed endpoints, rather than a complete inventory; our Flux-hosted gateway works without appearing there.
Use the results to choose candidates, then test our exact directory CID, index.html, and style.css and compare the returned bytes.
The checker uses its own test content, and its Verifiable column checks support for trustless response formats; it does not verify our website’s files.
Availability and timing also reflect the browser’s network connection at that moment.
This is the same distinction we encountered with AR.IO: a responsive gateway still needs to retrieve the complete publication correctly.
Conclusion
This was a very pleasant experience. Of the publishing approaches I have explored in this series, Flux has been by far the most flexible. We can choose our server software, update ordinary files while it keeps running, or operate IPFS peers and retain immutable publication revisions.
That flexibility also leaves room for limited server-side interactivity where we want or need it. A mostly static website could have a small backend component for form submissions, a search endpoint, or another feature that benefits from server-side processing.
Even a small deployment reserves far more computing capacity, memory, and storage than our tiny publication needs. Our examples hit the minimum hosting charge, so reducing their resources would not reduce that one-month bill. For this small website, the recurring cost is consequently higher than the storage charges in our Arweave experiment, excluding the ArNS name, and our Swarm experiment.
Still, using €4 per month as a comparison point for a cheap VPS, about US$1 per month per Flux application feels like very good value to me. That buys a running application, room for more than static files, and considerable freedom over how we publish.
Appendix
Naming
Flux already gives our applications useful public addresses.
For the IPFS publication, I also tried three blockchain-based naming systems: ENS, Unstoppable Domains, and ArNS.
All three experiments used the directory CID of version 2, which includes both index.html and style.css:
bafybeif2i5cegydqidcvtrbdxpvjm6kwyixhfble5evphqese5dzra2gne
A name selects the publication readers should retrieve. Our IPFS peers still need to keep that publication pinned and reachable; registering a name does not store another copy of the website. When publishing a new revision, we can pin and verify its new directory CID before updating the name’s record.
Default Naming from Flux
The included Flux Domain Name (FDN) is already a good starting point. Our two applications received these HTTPS addresses:
- cs224fluxnginx.app.runonflux.io serves the nginx website.
- cs224fluxipfs.app.runonflux.io reaches our IPFS gateway; the linked path selects version 2.
We choose the application name during registration, and Flux derives the hostname from it. The application name must be available across the network, and its hostname is predictable. Flux manages DNS, the HTTPS certificate, and routing to the running instances, with no separate domain purchase or naming subscription. The deployment section explains the port-specific names and managed frontend in more detail.
For nginx, we can keep sharing the same root URL while updating its files.
For IPFS, the hostname stays the same, while /ipfs/<CID>/ identifies a particular immutable revision.
This address depends on Flux’s domain and frontend service and on our paid deployment remaining available.
We can also attach a conventional domain we own.
ENS Names
I bought weisser-zwerg.eth and configured its Content hash record to select our IPFS publication.
ENS supplies the name and record; ETH.LIMO reads that record and retrieves the website over HTTPS.
We can configure this through the ENS App page for the name:
- Connect the wallet authorized to edit the name.
- Open Edit Profile → Advanced → Edit records here → Content hash. This was the route in the interface I used; the support guide calls the relevant tab Other records.
- Enter the following value, preview and publish the changes, and approve the transaction in the wallet:
ipfs://bafybeif2i5cegydqidcvtrbdxpvjm6kwyixhfble5evphqese5dzra2gne
The Content hash record is the setting used for website resolution; the profile’s Website link is separate metadata. My update was an Ethereum mainnet transaction, paid with ETH for gas. The ENS instructions also describe editing the record through ENS Explorer, including for names the App cannot edit.
The resulting address is weisser-zwerg.eth.limo. ETH.LIMO serves the website while keeping that hostname in the browser’s address bar. There was no additional domain configuration in Flux.
Confirmation and retrieval happened at different times. The record update transaction confirmed at 15:37:11 UTC. The gateway initially reported that the name was not configured, although the transaction had succeeded and the resolver contained the correct CID. Retrieval worked at approximately 15:42 UTC, and both HTML and CSS matched our saved version 2 files byte for byte. That roughly five-minute delay is consistent with ETH.LIMO’s documented five-minute cache. It is an observation from this update, rather than a guaranteed completion time for every change.
One troubleshooting trap: a direct lookup through the legacy ENSv1 registry returned empty results for this ENSv2 name. The canonical Universal Resolver returned the correct content hash. Use a current ENS-aware resolver when checking a name, and verify the transaction and saved record before repeating a paid update.
Unstoppable Domains: .brave
I also bought weisser-zwerg.brave through Unstoppable Domains.
This name is an ERC-721 NFT on Polygon PoS, chain ID 137.
An Ethereum-style 0x… address can own it on Polygon; transferring it to that address does not move the NFT to Ethereum mainnet.
Unstoppable uses several blockchains, and its TLD metadata assigns .brave to Polygon.
Choosing a minting wallet selects the receiving account, while the domain ending determines its designated registration chain.
Connect the intended wallet early. Under Settings → Advanced, I could add MetaMask and select it as my minting wallet. For a new purchase, I would do that first and check the destination at checkout, so the domain can go directly to the intended wallet. Unstoppable documents that purchases default to the configured minting wallet, or to its Lite Wallet when none is configured.
I discovered that setting after transferring the domain to my own address. The domain then disappeared from my Unstoppable domain list because that wallet was not yet connected to my account. Connecting MetaMask made it appear again. A read-only Polygon check confirmed that the transfer had succeeded and my address owned the NFT.
To select our website, open My Domains → Manage → Website, choose the IPFS website-linking option, and enter the bare directory CID shown at the beginning of this appendix.
Save the change and approve any wallet request.
The interface I used stored the value under the legacy record key ipfs.html.value.
The current records reference recommends dweb.ipfs.hash; Brave nevertheless resolved the legacy record in this experiment.
In Brave, enable Unstoppable Domains resolution under brave://settings/web3 if needed, then visit https://weisser-zwerg.brave/.
Brave lists .brave among its supported Web3 domain endings.
In my browser, that address redirected to:
https://bafybeif2i5cegydqidcvtrbdxpvjm6kwyixhfble5evphqese5dzra2gne.ipfs.inbrowser.link/
The page loaded with its styling.
This used the browser retrieval path we had enabled with WebTransport.
Readers need a browser or resolver with Unstoppable support to interpret the .brave name.
The management UI lagged behind working retrieval. I could already open the website while Unstoppable still displayed Pending Changes and prevented further edits. That message later cleared without another record update. I did not record an exact elapsed time, so this experiment establishes the ordering rather than a fixed waiting period.
MetaMask needed a separate NFT import. Connecting the wallet to Unstoppable restored its domain list, but the NFT still did not appear automatically in MetaMask. At the time of this experiment, MetaMask’s NFT help page did not list Polygon among its autodetection networks. I selected the owning account, opened NFTs → Import NFT, chose Polygon, and entered:
| Field | Value for weisser-zwerg.brave |
|---|---|
| Contract address | 0xa9a6A3626993D487d2Dbda3173cf58cA1a9D9e9f |
| Token ID | 91294366195932053140318495695589293207052397514256652138511155194498426680911 |
The NFT appeared after importing it. This changes MetaMask’s display only; the existing on-chain ownership needs no further transfer or payment. For another domain, look up its own network, contract, and token ID.
ArNS: The ipfs Undername Experiment
For ArNS, I reused weisser-zwerg from the Arweave article and added an ipfs undername.
That gives the intended address ipfs_weisser-zwerg.ar.io, alongside the existing Arweave publication at the base name.
Select the blockchain identity before the wallet application.
In AR.IO Console, I used Sign in → Solana Wallets → MetaMask.
The first screen named MetaMask under Ethereum Wallets, while its Solana card mentioned Phantom, Solflare, and more.
MetaMask was also available inside the Solana route.
Choosing Ethereum Wallets gave me my 0x… identity; choosing Solana Wallets gave me the Solana address that owns the ArNS name.
This was the same owner I had previously used through Phantom, so no ownership transfer was needed.
On the name’s management page, I used Records → Add record with:
| Field | Value |
|---|---|
| Undername | ipfs |
| Protocol | IPFS, encoded as targetProtocol: 1 |
| Target | bafybeif2i5cegydqidcvtrbdxpvjm6kwyixhfble5evphqese5dzra2gne |
| Cache time / TTL | 3,600 seconds, or one hour |
IPFS record edits require the Solana wallet’s signature and a little SOL, as described in the Console guide. For future experiments, a 300-second TTL would make later record changes less likely to be hidden by long-lived caches. It does not guarantee that a gateway can serve the selected protocol.
The optional Record logo is metadata for applications displaying the undername. Its Upload control uploads an image to Arweave through Turbo and fills in the resulting transaction ID; Paste TX ID reuses an existing Arweave image. The website can therefore target IPFS while its metadata logo lives on Arweave. This field does not configure the website’s favicon.
See the Console’s logo upload implementation.
The record saved successfully, but named retrieval failed. A finalized Solana read at 16:22 UTC confirmed the correct undername, CID, protocol, and TTL. Requests through the tested AR.IO gateways still returned HTTP 404, while the existing base name resolved and our IPFS publication remained retrievable through Flux.
The gateway resolver applies 43-character Arweave ID validation to the saved target.
Our IPFS CID fails that check, and this code path does not choose IPFS retrieval using targetProtocol.
The Console landing page also still described IPFS as coming soon when checked.
These observations point to a gateway implementation gap; I did not have access to the deployed gateway’s logs to confirm its internal error.
There was no evidence that simply waiting for the one-hour TTL would make this route work.
I filed ar-io-node issue #1157 with the finalized record, reproducible gateway requests, and a link to this article. The related draft PR #793 implements multi-protocol ArNS and IPFS retrieval, but was still open and unmerged when checked on 2026-11-30.
The result of this experiment is therefore a verified ArNS IPFS record, with unsuccessful website retrieval through the tested AR.IO gateways. It demonstrates why we need to check the saved record and then fetch both the HTML and stylesheet through the named URL. The working ENS and Brave routes select the same publication independently of this ArNS limitation.
