mirror of
https://github.com/logos-messaging/js-waku.git
synced 2026-01-03 22:33:07 +00:00
fix: add auto/static sharding info to readme
This commit is contained in:
parent
40b3167cc5
commit
4c079158b5
@ -45,10 +45,7 @@ RUN npx playwright install --with-deps chromium
|
||||
|
||||
ENV PORT=8080 \
|
||||
NODE_ENV=production \
|
||||
CHROMIUM_NO_SANDBOX=1 \
|
||||
WAKU_CLUSTER_ID=${WAKU_CLUSTER_ID:-} \
|
||||
WAKU_SHARD=${WAKU_SHARD:-} \
|
||||
WAKU_ENR_BOOTSTRAP=${WAKU_ENR_BOOTSTRAP:-}
|
||||
CHROMIUM_NO_SANDBOX=1
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
|
||||
@ -24,10 +24,15 @@ Configure the Waku node using environment variables:
|
||||
|
||||
### Network Configuration
|
||||
- `WAKU_CLUSTER_ID`: Cluster ID (default: 1)
|
||||
- `WAKU_SHARD`: Specific shard for static sharding (optional)
|
||||
- `WAKU_SHARD`: Specific shard number - enables static sharding mode (optional)
|
||||
|
||||
**Sharding Behavior:**
|
||||
- **Auto-sharding** (default): Uses `numShardsInCluster: 8` across cluster 1
|
||||
- **Static sharding**: When `WAKU_SHARD` is set, uses only that specific shard
|
||||
|
||||
### Bootstrap Configuration
|
||||
- `WAKU_ENR_BOOTSTRAP`: Enable ENR bootstrap mode with custom bootstrap peers (comma-separated)
|
||||
- `WAKU_LIGHTPUSH_NODE`: Preferred lightpush node multiaddr (Docker only)
|
||||
|
||||
### ENR Bootstrap Mode
|
||||
|
||||
|
||||
@ -1,35 +0,0 @@
|
||||
import path from "path";
|
||||
import { fileURLToPath } from "url";
|
||||
import NodePolyfillPlugin from "node-polyfill-webpack-plugin";
|
||||
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = path.dirname(__filename);
|
||||
|
||||
export default {
|
||||
mode: "production",
|
||||
entry: "./web/index.js",
|
||||
output: {
|
||||
path: path.resolve(__dirname, "web"),
|
||||
filename: "bundle.js",
|
||||
clean: true
|
||||
},
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /\.ts$/,
|
||||
use: "babel-loader",
|
||||
exclude: /node_modules/
|
||||
}
|
||||
]
|
||||
},
|
||||
resolve: {
|
||||
extensions: [".ts", ".js"],
|
||||
fallback: {
|
||||
fs: false,
|
||||
net: false,
|
||||
tls: false
|
||||
}
|
||||
},
|
||||
plugins: [new NodePolyfillPlugin()],
|
||||
target: "web"
|
||||
};
|
||||
Loading…
x
Reference in New Issue
Block a user