powfaucet

by ethPandaOps

Helm chartv1.3.1App 2.6.1Verified publisher

PoW Faucet for EVM chains

About this chart

powfaucet

PoW Faucet for EVM chains

Homepage: https://github.com/pk910/PoWFaucet

Source Code

Example Configuration

Upstream docs

faucetTitle: "PoW Faucet"
faucetPrivkey: "feedbeef12340000feedbeef12340000feedbeef12340000feedbeef12340000"
faucetRpcUrl: "http://your-el-node:8545"
faucetExplorerLink: "https://your-el-block-explorer.com/tx/{txid}"
faucetHomeHtml: ""

faucetMaxDropWei: 50000000000000000000 # 50 ETH
faucetPowEnabled: true
faucetPowRewardPerHash: 500000000000000000 # 0.5 ETH

Values

KeyTypeDefaultDescription
affinityobject{}Affinity configuration for pods
annotationsobject{}Annotations for the StatefulSet
configstringSee values.yamlConfig file
containerSecurityContextobjectSee values.yamlThe security context for containers
customArgslist["--datadir=/data"]Custom args for the powfaucet container
customCommandlist[]Command replacement for the powfaucet container
extraContainerslist[]Additional containers
extraEnvlist[]Additional env variables
extraPortslist[]Additional ports. Useful when using extraContainers
extraVolumeMountslist[]Additional volume mounts
extraVolumeslist[]Additional volumes
faucetAuthenticatoorAuthUrlstring"https://auth.example.com"Authenticatoor module: base URL of the authenticatoor service
faucetAuthenticatoorConcurrencyLimitint0Authenticatoor module: max concurrent sessions per authenticated user (0 = unlimited)
faucetAuthenticatoorEnabledboolfalseEnable authenticatoor module (login via ethpandaops/service-authenticatoor)
faucetAuthenticatoorExpectedAudiencestring""Authenticatoor module: expected aud claim Authenticatoor derives the audience from its issuer URL (parent zone of the issuer) unless overridden.
faucetAuthenticatoorExpectedHoststring""Authenticatoor module: optional defense-in-depth host pin matched against the token scope claim (DNS-label glob; tokens without scope claim are accepted regardless). Use the faucet's public hostname.
faucetAuthenticatoorExpectedServicestring""Authenticatoor module: service name the token's services claim must allow (e.g. "faucet"). Tokens without a services claim are accepted. Empty: no service check. Needed for grants with a feature.
faucetAuthenticatoorGrantslist[]Authenticatoor module: recurring grants applied on session start (evaluated in order; later grants override perks of earlier ones). Each entry supports: limitCount, limitAmount, duration, skipModules, rewardFactor, overrideMaxDrop, required, message, feature. A grant with feature applies only to logins whose token holds that feature of faucetAuthenticatoorExpectedService.
faucetAuthenticatoorInfoHtmlstring""Authenticatoor module: HTML shown in the login info popover (null/empty to omit)
faucetAuthenticatoorLoginLabelstring""Authenticatoor module: frontend label for the login button (null/empty for default)
faucetAuthenticatoorLoginLogostring""Authenticatoor module: URL/path to the login button logo (null/empty to omit)
faucetAuthenticatoorRequireLoginboolfalseAuthenticatoor module: require login to start a session
faucetAuthenticatoorUserLabelstring""Authenticatoor module: frontend label shown next to the username when authenticated (null/empty for default)
faucetCaptchaEnabledboolfalseEnable captcha module
faucetCaptchaProviderstring"hcaptcha"Captcha module: provider (hcaptcha / recaptcha)
faucetCaptchaSecretstring"0xCensoredHCaptchaSecretKey"Captcha module: provider secret
faucetCaptchaSitekeystring"00000000-0000-0000-0000-000000000000"Captcha module: provider site key
faucetConcurrencyByAddrOnlyboolfalseConcurrency module: only check concurrency by target address (set true when a trusted proxy fronts the faucet, so all traffic shares one IP)
faucetConcurrencyByIPOnlyboolfalseConcurrency module: only check concurrency by IP address (setting both ByAddrOnly and ByIPOnly skips both checks, disabling the module)
faucetConcurrencyLimitint1Concurrency module: max sessions in 'running' state at the same time for the same IP / target address
faucetConcurrencyLimitEnabledbooltrueEnable concurrency-limit module (cap simultaneously running sessions)
faucetEnsEnabledbooltrueEnable ENS module
faucetEnsRequiredboolfalseENS module: enforce ens name to use the faucet
faucetEnsRpcUrlstring"https://ethereum-rpc.publicnode.com"ENS module: rpc url (mainnet)
faucetEthinfoDenyContractbooltrueEthinfo module: deny contract addresses
faucetEthinfoEnabledbooltrueEnable ethinfo module (check target wallet balance / type)
faucetEthinfoMaxbalanceWeifloat100000000000000000000Ethinfo module: check balance and deny session if balance exceeds the limit (in wei)
faucetExplorerLinkstring"https://your-el-block-explorer.com/tx/{txid}"Link to el block explorer ({txid} as placeholder for transaction hash)
faucetGithubClientidstring""Github module: github app client id
faucetGithubEnabledboolfalseEnable github module (require login to github)
faucetGithubLimitAmountWeifloat100000000000000000000Github module: max amount each github user is allowed to request in total
faucetGithubLimitDurationint86400Github module: aggregation duration for the max request amount check
faucetGithubMinAgeint604800Github module: minimum account age (in seconds)
faucetGithubMinFollowersint5Github module: minimum number of followers
faucetGithubMinReposint5Github module: minimum number of repositories
faucetGithubSecretstring""Github module: github app client secret
faucetHomeHtmlstring""Additional html to show on the faucet page
faucetIpinfoEnabledbooltrueEnable ipinfo module (resolve ip infos from ip-api.com)
faucetIpinfoHostingRewardsint10Ipinfo module: reward rate if ip is in a hosting range (in %)
faucetIpinfoProxyRewardsint10Ipinfo module: reward rate if ip is in a proxy range (in %)
faucetMainnetEnabledboolfalseEnable mainnet module (check mainnet wallet balance / nonce)
faucetMainnetMinBalanceWeiint10000000000000000Mainnet module: min balance the user needs to hold in his mainnet wallet to use the faucet
faucetMainnetMinTxCountint5Mainnet module: min number of transactions the user needs to have sent from the mainnet wallet to use the faucet
faucetMainnetRpcUrlstring"https://ethereum-rpc.publicnode.com"Mainnet module: rpc url (mainnet)
faucetMaxDropWeifloat50000000000000000000Default/Maximum drop amount in wei
faucetMinDropWeiint1000000000000000000Minimum drop amount in wei
faucetOutflowAmountWeifloat1e+21Outflow module: allowed amount of ETH (amount/duration) (in wei)
faucetOutflowBufferWeifloat500000000000000000000Outflow module: amount overflow buffer (in wei)
faucetOutflowDurationint86400Outflow module: duration for the allowed amouunt (amount/duration) (in wei)
faucetOutflowEnabledboolfalseEnable outflow module (limit global faucet outflow)
faucetPowDifficultyint12PoW module: mining difficulty (see https://github.com/pk910/PoWFaucet/wiki/Operator-Wiki#eligible-hashes)
faucetPowEnabledboolfalseEnable PoW module (require mining)
faucetPowMaxDurationint18000PoW module: max mining time (in seconds)
faucetPowPingIntervalint45PoW module: ping interval for websocket connection
faucetPowPingTimeoutint90PoW module: ping timeout for websocket connection
faucetPowRewardPerHashint500000000000000000PoW module: drop amount per eligible hash
faucetPrivkeystring"feedbeef12340000feedbeef12340000feedbeef12340000feedbeef12340000"Faucet wallet private key
faucetRecurringLimitsAmountWeifloat100000000000000000000Recurring module: max amount a recurring user is allowed to request in total
faucetRecurringLimitsByAddrOnlyboolfalseRecurring module: only match previous sessions by target address, not by IP (set true when a trusted proxy fronts the faucet, so all traffic shares one IP and a per-IP match becomes a global budget)
faucetRecurringLimitsDurationint86400Recurring module: aggregation duration for the max request amount check
faucetRecurringLimitsEnabledbooltrueEnable recurring module (enforce limits for recurring users)
faucetRpcEndpointslist[]Faucet el node rpc endpoints (multi-RPC mode). When non-empty, replaces faucetRpcUrl. Each entry supports: url (string, required; may include user:pass@), name (optional display label), priority (higher = preferred, default 1), metered (bool, throttles monitoring requests, default false).
faucetRpcMaxBlockHeightDiffint10Mark RPC endpoints offline if their head block falls behind the highest known head by more than this many blocks
faucetRpcMonitorIntervalint10Monitoring poll interval (seconds) for non-metered RPC endpoints
faucetRpcMonitorMeteredIntervalint60Monitoring poll interval (seconds) for metered RPC endpoints (lower request count, slower failure detection)
faucetRpcUrlstring"http://your-el-node:8545"Faucet el node rpc (single endpoint legacy mode; ignored when faucetRpcEndpoints is set)
faucetTitlestring"PoW Faucet"Faucet title
faucetTxBroadcastCountint2Number of highest-priority ready endpoints to broadcast each transaction to in parallel. At least one successful submission is required; other endpoints' errors (e.g. "already known") are ignored.
faucetTxMaxFeeint100000000000Max transaction gas fee (in wei)
faucetTxMaxPrioFeeint2000000000Max transaction priority fee (in wei)
fullnameOverridestring""Overrides the chart's computed fullname
httpPortint8080HTTP port for faucet interface
httpProxyCountint1number of HTTP proxies in front of the faucet
image.pullPolicystring"IfNotPresent"powfaucet container pull policy
image.repositorystring"pk910/powfaucet"powfaucet container image repository
image.tagstring"v2-stable"powfaucet container image tag
ingress.annotationsobject{}Annotations for Ingress
ingress.basicAuthstring""htpasswd entry gating the ingress with basic auth, e.g. "user:{PLAIN}password" or a hashed line from htpasswd -nbB. Set it and the chart creates the secret and the nginx annotations; leave it empty to serve the faucet unauthenticated.
ingress.enabledboolfalseIngress resource for the HTTP API
ingress.hosts[0].hoststring"chart-example.local"
ingress.hosts[0].pathslist[]
ingress.tlslist[]Ingress TLS
initContainerslist[]Additional init containers
nameOverridestring""Overrides the chart's name
nodeSelectorobject{}Node selector for pods
persistence.accessModeslist["ReadWriteOnce"]Access mode for the volume claim template
persistence.annotationsobject{}Annotations for volume claim template
persistence.enabledboolfalseUses an EmptyDir when not enabled
persistence.existingClaimstringnilUse an existing PVC when persistence.enabled
persistence.selectorobject{}Selector for volume claim template
persistence.sizestring"5Gi"Requested size for volume claim template
persistence.storageClassNamestringnilUse a specific storage class E.g 'local-path' for local storage to achieve best performance Read more (https://github.com/rancher/local-path-provisioner)
persistentVolumeClaimRetentionPolicyobject{}PersistentVolumeClaim retention policy for the StatefulSet's volumeClaimTemplates (whenDeleted, whenScaled: Retain or Delete). Not rendered when empty, so Kubernetes keeps its default of retaining the PVCs. Ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#persistentvolumeclaim-retention
podAnnotationsobject{}Pod annotations
podDisruptionBudgetobject{}Define the PodDisruptionBudget spec If not set then a PodDisruptionBudget will not be created
podLabelsobject{}Pod labels
podManagementPolicystring"OrderedReady"Pod management policy
priorityClassNamestringnilPod priority class
resourcesobject{}Resource requests and limits
securityContextobjectSee values.yamlThe security context for pods
service.typestring"ClusterIP"Service type
serviceAccount.annotationsobject{}Annotations to add to the service account
serviceAccount.createbooltrueSpecifies whether a service account should be created
serviceAccount.namestring""The name of the service account to use. If not set and create is true, a name is generated using the fullname template
terminationGracePeriodSecondsint30How long to wait until the pod is forcefully terminated
t

Deploy powfaucet with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has powfaucet on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartpowfaucet is pinned at v1.3.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply