Skip to content

RedisProtocolPlugin is hard-coded to "localhost" for listening #198

Closed

Description

@scwagner

ArcadeDB Version: v21.11.1-SNAPSHOT (build ef7ba86/1636054159638/main)

JDK Version: openjdk version "11.0.13" 2021-10-19

OS: Alpine Linux v3.14

Expected behavior

com.arcadedb.redis.RedisProtocolPlugin should listen on 0.0.0.0 to allow connections from external hosts.

Ideally, it would support configuration similar to com.arcadedb.server.http.HttpServer:

host = configuration.getValueAsString(GlobalConfiguration.SERVER_HTTP_INCOMING_HOST);

Actual behavior

The plugin is hardcoded to use localhost, confirmed by the logs during startup:

2021-11-05 02:25:40.462 INFO [RedisNetworkListener] <ArcadeDB_0> Listening for replication connections on 127.0.0.1:6379 (protocol v.-1)

Steps to reproduce

Run the standard Docker image with configuration to launch with the Redis listener enabled:

docker run --rm -p 2480:2480 -p 2424:2424 --env arcadedb.server.rootPassword=playwithdata --env arcadedb.server.plugins="Redis:com.arcadedb.redis.RedisProtocolPlugin" arcadedata/arcadedb:latest

Activity

  1. self-assigned this
    on Nov 5, 2021
  2. added
    enhancement
    on Nov 5, 2021
  3. added this to the 21.11.1 milestone on Nov 5, 2021
  4. lvca commented on Nov 5, 2021

    @lvca
    Member

    Fixed. Now by default the host is 0.0.0.0 and you can change host and port with the settings arcadedb.redis.host and arcadedb.redis.port.

  5. lvca commented on Nov 5, 2021

    @lvca
    Member

    And thanks for sponsoring the project!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions