You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# (Optional) Set true to enable forwarding of request headers to upstream server, useful if relays behind reverse proxy
54
60
ENABLE_FORWARD_REQ_HEADERS=false
55
61
62
+
# (Default: true) Use NIP-32 Event Format (kind: 1985) or Deprecated Legacy Format (kind: 9978). Legacy format will be fully replaced by NIP-32 event format in the future.
63
+
USE_NIP_32_EVENT_FORMAT=true
64
+
65
+
# Set maximum websocket server payload size (maximum allowed message size) in bytes
66
+
MAX_WEBSOCKET_PAYLOAD_SIZE=1000000
67
+
68
+
# Set maximum number of parallel concurrency limit when requesting classification events to relay
69
+
RELAY_REQUEST_CONCURRENCY_LIMIT=10
70
+
71
+
# Set true to enable rate limit for number of websocket message
72
+
ENABLE_RATE_LIMIT=false
73
+
# Set to "IP" to rate limit based on IP addresses otherwise using socketId
74
+
RATE_LIMIT_KEY="IP"
75
+
# Maximum number of websocket message (REQ, EVENT, etc) per second per IP/socketId
76
+
MAX_WEBSOCKET_MESSAGE_PER_SECOND=10
77
+
# Maximum number of websocket message (REQ, EVENT, etc) per minute per IP/socketId
78
+
MAX_WEBSOCKET_MESSAGE_PER_MINUTE=1000
79
+
56
80
# (Optional. Default: sfw. Options: all, sfw, partialsfw, and nsfw) Filter hate speech (toxic comment).
57
81
DEFAULT_FILTER_CONTENT_MODE=sfw
58
82
# (Optional. Default: 75, Options: 0-100) Default minimum probability/confidence score to determine the classification of nsfw content
# (Default: true) Use NIP-32 Event Format (kind: 1985) or Deprecated Legacy Format (kind: 9978). Legacy format will be fully replaced by NIP-32 event format in the future.
89
+
ENV USE_NIP_32_EVENT_FORMAT=true
90
+
91
+
# Set maximum websocket server payload size (maximum allowed message size) in bytes
92
+
ENV MAX_WEBSOCKET_PAYLOAD_SIZE=1000000
93
+
94
+
# Set maximum number of parallel concurrency limit when requesting classification events to relay
95
+
ENV RELAY_REQUEST_CONCURRENCY_LIMIT=10
96
+
97
+
# Set true to enable rate limit for number of websocket message
98
+
ENV ENABLE_RATE_LIMIT=false
99
+
# Set to "IP" to rate limit based on IP addresses otherwise using socketId
100
+
ENV RATE_LIMIT_KEY="IP"
101
+
# Maximum number of websocket message (REQ, EVENT, etc) per second per IP/socketId
102
+
ENV MAX_WEBSOCKET_MESSAGE_PER_SECOND=10
103
+
# Maximum number of websocket message (REQ, EVENT, etc) per minute per IP/socketId
104
+
ENV MAX_WEBSOCKET_MESSAGE_PER_MINUTE=1000
105
+
87
106
# (Default: sfw, Options: all, sfw, partialsfw, and nsfw) Filter hate speech (toxic comment).
88
107
ENV DEFAULT_FILTER_CONTENT_MODE=sfw
89
108
# (Optional. Default: 75, Options: 0-100) Default minimum probability/confidence score to determine the classification of nsfw content
0 commit comments