Files

48 lines
1.2 KiB
YAML

---
# LuxGateway — public RPC entrypoint for Lux mainnet.
# Routes:
# api.lux.network/v1/chain/{P,X,C}/... → luxd primary network RPC
# api.lux.network/v1/chain/{a,b,d,g,i,k,m,o,q,r,z}/rpc → plugin chain RPC
# Auto-discovers chains tracked by the LuxNetwork CR (autoRoutes: true).
# NEVER use nginx or caddy — hanzoai/ingress is the only canonical ingress.
apiVersion: lux.network/v1alpha1
kind: LuxGateway
metadata:
name: api-gateway
namespace: lux-mainnet
labels:
app.kubernetes.io/part-of: lux-network
lux.network/network: mainnet
spec:
networkRef: luxd
host: api.lux.network
replicas: 3
port: 8080
autoRoutes: true
image:
repository: ghcr.io/luxfi/gateway
tag: v0.1.0
indexerRefs:
- lux-mainnet-indexer
explorerRefs:
- explorer
cors:
allowedOrigins:
- "https://lux.network"
- "https://explorer.lux.network"
- "https://lux.exchange"
allowedMethods:
- GET
- POST
- OPTIONS
allowedHeaders:
- Content-Type
- Authorization
rateLimit:
requestsPerSecond: 200
burst: 400
tls:
secretName: api-lux-network-tls
certManager: true
issuer: letsencrypt-prod