Skip to content

Commit

Permalink
Always provide a node name to rabbitmq
Browse files Browse the repository at this point in the history
When booting, the processes expect that whatever host is in the
"node name" is resolvable by DNS. Disabling reverse DNS lookups does
not refute this requirement. This change provides an environment
variable that RabbitMQ is expecting to find with a value that should
be resolvable on all machines: `localhost`.
  • Loading branch information
penguincoder committed May 15, 2023
1 parent c908963 commit 5f2c987
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/modules/services/rabbitmq.nix
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ in
env.RABBITMQ_CONFIG_FILE = config_file;
env.RABBITMQ_PLUGINS_DIR = concatStringsSep ":" cfg.pluginDirs;
env.RABBITMQ_ENABLED_PLUGINS_FILE = plugin_file;
env.RABBITMQ_NODENAME = "rabbit@localhost";

processes.rabbitmq.exec = "${cfg.package}/bin/rabbitmq-server";
};
Expand Down

0 comments on commit 5f2c987

Please sign in to comment.