mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +00:00
fix(cli,coderd/x/nats): rely on package defaults; ClusterAuthToken enables cluster mode
This commit is contained in:
@@ -783,8 +783,6 @@ func (r *RootCmd) Server(newAPI func(context.Context, *coderd.Options) (*coderd.
|
|||||||
if experiments.Enabled(codersdk.ExperimentNATSPubsub) {
|
if experiments.Enabled(codersdk.ExperimentNATSPubsub) {
|
||||||
token := fmt.Sprintf("%x", sha256.Sum256([]byte(dbURL)))
|
token := fmt.Sprintf("%x", sha256.Sum256([]byte(dbURL)))
|
||||||
ps, err := natspubsub.New(ctx, logger.Named("pubsub"), natspubsub.Options{
|
ps, err := natspubsub.New(ctx, logger.Named("pubsub"), natspubsub.Options{
|
||||||
ClusterHost: "0.0.0.0",
|
|
||||||
ClusterPort: 6222,
|
|
||||||
ClusterAuthToken: token,
|
ClusterAuthToken: token,
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user