Explanation of environment variables
Explanation of environment variables required for installation.
.env variables
Database
DB_USER – username for connecting to the database
DB_PASSWORD – password for the database user
DB_HOST – hostname or IP address of the database server
DB_PORT – port number on which the database server is listening
DB_NAME – name of the database to connect to
App
APP_PORT – port number on which the application will run
PRODUCTION – flag indicating whether the application is running in production mode
DOMAIN – your domain for the client application that provides the payment gateway
Matrix
MATRIX_HOMESERVER_URL – URL of the Matrix homeserver
MATRIX_BOT_USERNAME – username for the Matrix bot that will provide access to snet services
MATRIX_BOT_PASSWORD – password for the Matrix bot that will provide access to snet services
MATRIX_SERVERNAME – server name for your Matrix
Ethereum
IPFS_PROVIDER_URL – URL of the IPFS provider
ETH_PROVIDER_URL – HTTP URL for the Ethereum provider (e.g., Infura)
ETH_PROVIDER_WS_URL – WebSocket URL for the Ethereum provider (e.g., Infura)
CHAIN_ID – chain ID of the Ethereum network
Admin
ADMIN_PUBLIC_ADDRESS – public address of the admin on the blockchain
ADMIN_PRIVATE_KEY – admin private key
.env.local variables
App
VITE_URL_PATH_PREFIX — specific path to host, e.g. for https://your.domain.com/path/to/gateway VITE_URL_PATH_PREFIX will be /path/to/gateway. If not specified, / will be used as the default value
Backend
VITE_BACKEND_URL — URL of the framework. If not specified, Mock Service Worker will be used as the mocked backend (for tests only)
Wallet Connect
VITE_PUBLIC_WALLETCONNECT_PROJECT_ID — a Project ID from walletconnect.com
VITE_MAINNET_RPC_URL — URL of a Mainnet RPC
VITE_SEPOLIA_RPC_URL — URL of a Sepolia RPC. It's a testnet, so it's used for testing only. If not specified, Sepolia will not be supported
Last updated