Skip to content

Commit

Permalink
Merge pull request #24 from anycable/refresh
Browse files Browse the repository at this point in the history
Update the list of env variables for anycable-go 1.2.0
  • Loading branch information
nepalez authored May 18, 2022
2 parents 0410756 + d6e105d commit 946e8b2
Show file tree
Hide file tree
Showing 2 changed files with 152 additions and 2 deletions.
75 changes: 75 additions & 0 deletions anycable-go/templates/env-secret.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
---
apiVersion: v1
data:
{{- if .anycableBroadcastAdapter }}
ANYCABLE_BROADCAST_ADAPTER: {{ .anycableBroadcastAdapter | toString | b64enc | quote }} # {{ .anycableBroadcastAdapter }}
{{- end }}
{{- if .anycableDebug }}
ANYCABLE_DEBUG: {{ .anycableDebug | b64enc | quote }} # {{ .anycableDebug }}
{{- end }}
Expand All @@ -15,6 +18,15 @@ data:
{{- if .anycableHealthPath }}
ANYCABLE_HEALTH_PATH: {{ .anycableHealthPath | b64enc | quote }} # {{ .anycableHealthPath }}
{{- end }}
{{- if .anycableHttpBroadcastPath }}
ANYCABLE_HTTP_BROADCAST_PATH: {{ .anycableHttpBroadcastPath | toString | b64enc | quote }} # {{ .anycableHttpBroadcastPath }}
{{- end }}
{{- if .anycableHttpBroadcastPort }}
ANYCABLE_HTTP_BROADCAST_PORT: {{ .anycableHttpBroadcastPort | toString | b64enc | quote }} # {{ .anycableHttpBroadcastPort }}
{{- end }}
{{- if .anycableHttpBroadcastSecret }}
ANYCABLE_HTTP_BROADCAST_SECRET: {{ .anycableHttpBroadcastSecret | toString | b64enc | quote }} # {{ .anycableHttpBroadcastSecret }}
{{- end }}
{{- if .anycableHost }}
ANYCABLE_HOST: {{ .anycableHost | b64enc | quote }} # {{ .anycableHost }}
{{- end }}
Expand All @@ -24,6 +36,9 @@ data:
{{- if .anycableLogLevel }}
ANYCABLE_LOG_LEVEL: {{ .anycableLogLevel | b64enc | quote }} # {{ .anycableLogLevel }}
{{- end }}
{{- if .anycableMaxConn }}
ANYCABLE_MAX_CONN: {{ .anycableMaxConn | toString | b64enc | quote }} # {{ .anycableMaxConn }}
{{- end }}
{{- if .anycableMaxMessageSize }}
ANYCABLE_MAX_MESSAGE_SIZE: {{ .anycableMaxMessageSize | b64enc | quote }} # {{ .anycableMaxMessageSize }}
{{- end }}
Expand Down Expand Up @@ -64,13 +79,73 @@ data:
{{- if .anycableRedisSentinels }}
ANYCABLE_REDIS_SENTINELS: {{ .anycableRedisSentinels | b64enc | quote }} # {{ .anycableRedisSentinels }}
{{- end }}
{{- if .anycableRpcConcurrency }}
ANYCABLE_RPC_CONCURRENCY: {{ .anycableRpcConcurrency | toString | b64enc | quote }} # {{ .anycableRpcConcurrency }}
{{- end }}
{{- if .anycableRpcHost }}
ANYCABLE_RPC_HOST: {{ .anycableRpcHost | b64enc | quote }} # {{ .anycableRpcHost }}
{{- end }}
{{- if .tls }}
ANYCABLE_SSL_CERT: {{ "/etc/ssl/anycable-go/tls.crt" | b64enc | quote }}
ANYCABLE_SSL_KEY: {{ "/etc/ssl/anycable-go/tls.key" | b64enc | quote }}
{{- end }}
{{- if .anycableAllowedOrigins }}
ANYCABLE_ALLOWED_ORIGINS: {{ .anycableAllowedOrigins | toString | b64enc | quote }} # {{ .anycableAllowedOrigins }}
{{- end }}
{{- if .anycableCableReadyKey }}
ANYCABLE_CABLE_READY_KEY: {{ .anycableCableReadyKey | toString | b64enc | quote }} # {{ .anycableCableReadyKey }}
{{- end }}
{{- if .anycableDisableDisconnect }}
ANYCABLE_DISABLE_DISCONNECT: {{ .anycableDisableDisconnect | toString | b64enc | quote }} # {{ .anycableDisableDisconnect }}
{{- end }}
{{- if .anycableDisconnectTimeout }}
ANYCABLE_DISCONNECT_TIMEOUT: {{ .anycableDisconnectTimeout | toString | b64enc | quote }} # {{ .anycableDisconnectTimeout }}
{{- end }}
{{- if .anycableEnableWsCompression }}
ANYCABLE_ENABLE_WS_COMPRESSION: {{ .anycableEnableWsCompression | toString | b64enc | quote }} # {{ .anycableEnableWsCompression }}
{{- end }}
{{- if .anycableHubGopoolSize }}
ANYCABLE_HUB_GOPOOL_SIZE: {{ .anycableHubGopoolSize | toString | b64enc | quote }} # {{ .anycableHubGopoolSize }}
{{- end }}
{{- if .anycableJwtIdEnforce }}
ANYCABLE_JWT_ID_ENFORCE: {{ .anycableJwtIdEnforce | toString | b64enc | quote }} # {{ .anycableJwtIdEnforce }}
{{- end }}
{{- if .anycableJwtIdKey }}
ANYCABLE_JWT_ID_KEY: {{ .anycableJwtIdKey | toString | b64enc | quote }} # {{ .anycableJwtIdKey }}
{{- end }}
{{- if .anycableJwtIdParam }}
ANYCABLE_JWT_ID_PARAM: {{ .anycableJwtIdParam | toString | b64enc | quote }} # {{ .anycableJwtIdParam }}
{{- end }}
{{- if .anycableMetricsRotateInterval }}
ANYCABLE_METRICS_ROTATE_INTERVAL: {{ .anycableMetricsRotateInterval | toString | b64enc | quote }} # {{ .anycableMetricsRotateInterval }}
{{- end }}
{{- if .anycablePingInterval }}
ANYCABLE_PING_INTERVAL: {{ .anycablePingInterval | toString | b64enc | quote }} # {{ .anycablePingInterval }}
{{- end }}
{{- if .anycablePingTimestampPrecision }}
ANYCABLE_PING_TIMESTAMP_PRECISION: {{ .anycablePingTimestampPrecision | toString | b64enc | quote }} # {{ .anycablePingTimestampPrecision }}
{{- end }}
{{- if .anycableReadBufferSize }}
ANYCABLE_READ_BUFFER_SIZE: {{ .anycableReadBufferSize | toString | b64enc | quote }} # {{ .anycableReadBufferSize }}
{{- end }}
{{- if .anycableRpcEnableTls }}
ANYCABLE_RPC_ENABLE_TLS: {{ .anycableRpcEnableTls | toString | b64enc | quote }} # {{ .anycableRpcEnableTls }}
{{- end }}
{{- if .anycableRpcMaxCallRecvSize }}
ANYCABLE_RPC_MAX_CALL_RECV_SIZE: {{ .anycableRpcMaxCallRecvSize | toString | b64enc | quote }} # {{ .anycableRpcMaxCallRecvSize }}
{{- end }}
{{- if .anycableRpcMaxCallSendSize }}
ANYCABLE_RPC_MAX_CALL_SEND_SIZE: {{ .anycableRpcMaxCallSendSize | toString | b64enc | quote }} # {{ .anycableRpcMaxCallSendSize }}
{{- end }}
{{- if .anycableStatsRefreshInterval }}
ANYCABLE_STATS_REFRESH_INTERVAL: {{ .anycableStatsRefreshInterval | toString | b64enc | quote }} # {{ .anycableStatsRefreshInterval }}
{{- end }}
{{- if .anycableTurboRailsKey }}
ANYCABLE_TURBO_RAILS_KEY: {{ .anycableTurboRailsKey | toString | b64enc | quote }} # {{ .anycableTurboRailsKey }}
{{- end }}
{{- if .anycableWriteBufferSize }}
ANYCABLE_WRITE_BUFFER_SIZE: {{ .anycableWriteBufferSize | toString | b64enc | quote }} # {{ .anycableWriteBufferSize }}
{{- end }}
{{- if .custom }}
{{- range $key, $val := .custom }}
{{ $key }}: {{ $val | toString | b64enc | quote }} # {{ $val }}
Expand Down
79 changes: 77 additions & 2 deletions anycable-go/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ replicas: 1

image:
repository: anycable/anycable-go
tag: 1.1.2
tag: 1.2.0
pullPolicy: IfNotPresent
pullSecrets:
enabled: false
Expand Down Expand Up @@ -132,6 +132,18 @@ env:
# WebSocket endpoint path
anycablePath: "/cable"

# Broadcasting adapter to use (redis or http), default: redis
anycableBroadcastAdapter: "redis"

# HTTP pub/sub endpoint path
anycableHttpBroadcastPath: "/_broadcast"

# Which port to receive broadcasting requests
anycableHttpBroadcastPort: "8090"

# Authorization secret to protect the broadcasting endpoint
anycableHttpBroadcastSecret: ""

# Redis db url
anycableRedisUrl: "redis://localhost:6379/5"

Expand All @@ -145,7 +157,10 @@ env:
anycableRedisSentinelDiscoveryInterval: "30"

# Interval to periodically ping Redis to make sure it's alive, default: 30
anycableRedisKeepaliveInterval: ""
anycableRedisKeepaliveInterval: "30"

# Max number of concurrent RPC request; should be slightly less than the RPC server concurrency, default: 28
anycableRpcConcurrency: "28"

# RPC service address
anycableRpcHost: "localhost:50051"
Expand Down Expand Up @@ -189,6 +204,66 @@ env:
# Maximum size of a message in bytes, default: 65536
anycableMaxMessageSize: ""

# Limit simultaneous server connections (0 – without limit), default: 0
anycableMaxConn: "0"

# Enable client-side TLS with the RPC server, default: false
anycableRpcEnableTls: "false"

# Override default MaxCallRecvMsgSize for RPC client (bytes), default: none
anycableRpcMaxCallRecvSize: ""

# Override default MaxCallSendMsgSize for RPC client (bytes), default: none
anycableRpcMaxCallSendSize: ""

# Graceful shutdown timeouts (in seconds), default: 5
anycableDisconnectTimeout: "5"

# Disable calling Disconnect callback, default: false
anycableDisableDisconnect: "false"

# Specify how often flush metrics to writers (logs, statsd) (in seconds), default: 15
anycableMetricsRotateInterval: "15"

# WebSocket connection read buffer size, default: 1024
anycableReadBufferSize: "1024"

# WebSocket connection write buffer size, default: 1024
anycableWriteBufferSize: "1024"

# Enable experimental WebSocket per message compression, default: false
anycableEnableWsCompression: "false"

# The size of the goroutines pool to broadcast messages, default: 16
anycableHubGopoolSize: "16"

# Accept requests only from specified origins. No check is performed if empty, default: ""
anycableAllowedOrigins: ""

# Action Cable ping interval (in seconds), default: 3
anycablePingInterval: "3"

# Precision for timestamps in ping messages (s, ms, ns), default: s
anycablePingTimestampPrecision: "s"

# How often to refresh the server stats (in seconds), default: 5
anycableStatsRefreshInterval: "5"

# The encryption key used to verify JWT tokens, default: "" (disabled)
anycableJwtIdKey: ""

# The name of a query string param or an HTTP header carrying a token, default: "jid" ("X-JID")
anycableJwtIdParam: "jid"

# Whether to enforce token presence for all connections, default: false
anycableJwtIdEnforce: "false"

# Enable Turbo Streams fastlane with the specified signing key, default: "" (disabled)
anycableTurboRailsKey: ""

# Enable CableReady fastlane with the specified signing key, default: "" (disabled)
anycableCableReadyKey: ""

# Under this key you can define custom env variables (for example,
# to support new anycable features, not added to the chart yet).
# All variables from this part are added to the pod through the secret.
Expand Down

0 comments on commit 946e8b2

Please sign in to comment.