# Web2 FDC Setup

> Instructions for data providers to set up the Web2 FDC attestation type.

> For the complete documentation index, see [llms.txt](/llms.txt). Markdown versions of documentation pages are available by appending `.md` to the page URL.

Source: https://dev.flare.network/network/fsp/guides/web2-fdc-setup

This guide explains how data providers can set up support for the [Web2 FDC attestation type](/fdc/attestation-types/web2-json). The setup involves configuring a Web2 verifier server and updating the FDC Client.

## Prerequisites[​](#prerequisites "Direct link to Prerequisites")

-   Access to the [FDC Suite Deployment repository](https://github.com/flare-foundation/fdc-suite-deployment).
-   Access to the [FSP Deployment repository](https://github.com/flare-foundation/flare-systems-deployment).
-   API key for the Ignite Web2Json source (see [Obtaining an Ignite API Key](#obtaining-an-ignite-api-key))

## Set Up Web2 Verifier[​](#set-up-web2-verifier "Direct link to Set Up Web2 Verifier")

1.  Pull the [FDC Suite Deployment](https://github.com/flare-foundation/fdc-suite-deployment) repository version v1.2.0:
    
    ```
    git clone --branch v1.2.0 https://github.com/flare-foundation/fdc-suite-deployment.gitcd fdc-suite-deployment
    ```
    
2.  Configure environment variables in `.env` (see `.env.example` for reference):
    
    ```
    WEB2_IGNITE_API_KEY=your_ignite_api_key_hereWEB2_SOURCE_IDS=IgniteVERIFIER_API_KEYS=key1,key2
    ```
    
3.  Run the configuration generator:
    
    ```
    ./generate-config.sh
    ```
    
4.  Start the Web2 verifier server:
    
    ```
    cd web2-verifier/docker compose up -d
    ```
    
5.  (Optional) Specify memory and CPU restrictions in `docker-compose.yaml` if needed.
    

## Update FDC Client[​](#update-fdc-client "Direct link to Update FDC Client")

1.  Update your [Flare Systems Protocol Deployment](https://github.com/flare-foundation/flare-systems-deployment) to version v1.2.0:
    
    ```
    cd flare-systems-deploymentgit fetch origingit checkout v1.2.0
    ```
    
2.  Set the verifier address and API key in `.env` (see `.env.example` for reference):
    
    ```
    IGNITE_WEB2JSON_URL=http://<host>:9801/verifier/web2/Web2Json/verifyFDCIGNITE_WEB2JSON_API_KEY=key1
    ```
    
    Replace `<host>` with the hostname or IP address where your Web2 verifier is running.
    
3.  Regenerate the FDC Client configuration:
    
    ```
    ./populate-config.sh
    ```
    
4.  Restart the FDC Client to apply the changes:
    
    ```
    docker compose up -d
    ```
    
    This pulls the latest version and recreates the container.
    

## Obtaining an Ignite API Key[​](#obtaining-an-ignite-api-key "Direct link to Obtaining an Ignite API Key")

API keys for the Ignite proxy are encrypted with each provider's signing policy public key. For detailed instructions on how to obtain and decrypt your API key, see the [FDC Attestation Verifier repository](https://github.com/flare-foundation/verifier-indexer-api/tree/main/scripts/web2#readme).

What's Next

Once your Web2 FDC setup is complete, explore the FDC developer guides to learn how to use the attestation types:

-   [FDC Guides](/fdc/guides) - Tutorials for using FDC with Hardhat and Foundry.
-   [Web2 JSON Attestation Type](/fdc/attestation-types/web2-json) - Learn about the Web2 JSON attestation type.
