[core] Support remote hosts #427

Open
opened 2024-09-07 20:24:20 +02:00 by blacklight · 0 comments
Owner

It should be possible to configure a Platypush host to communicate with other HTTP-accessible nodes.

This includes the following items:

  • Configuration of remote targets via:
    • UI - a new view should be created to manage access to remote targets and get a token via remote login
    • Configuration file
network:
  remotes:
    remote1:
      url: http://192.168.1.3:8008
      token: remote1_token

    remote2:
      url: http://192.168.1.4:8008
      token: remote2_token
  • The API should support configured remote targets:
curl -X POST \
     -d '{"action": "logger.info", "message": "Hello, remote1"}' \
     http://localhost:8008/remote/remote1/execute \

Or:

curl -X POST \
     -d '{"target": "remote1", "action": "logger.info", "message": "Hello, remote1"}' \
     http://localhost:8008/execute \
  • Entities from the remote targets should be accessible from the local host.

  • The UI should provide a global toggle to quickly switch between local and remote targets.

  • The entities UI should provide a way to include/filter entities from remote targets.

It should be possible to configure a Platypush host to communicate with other HTTP-accessible nodes. This includes the following items: - [ ] Configuration of remote targets via: - [ ] UI - a new view should be created to manage access to remote targets and get a token via remote login - [ ] Configuration file ```yaml network: remotes: remote1: url: http://192.168.1.3:8008 token: remote1_token remote2: url: http://192.168.1.4:8008 token: remote2_token ``` - [ ] The API should support configured remote targets: ```bash curl -X POST \ -d '{"action": "logger.info", "message": "Hello, remote1"}' \ http://localhost:8008/remote/remote1/execute \ ``` Or: ```bash curl -X POST \ -d '{"target": "remote1", "action": "logger.info", "message": "Hello, remote1"}' \ http://localhost:8008/execute \ ``` - [ ] Entities from the remote targets should be accessible from the local host. - [ ] The UI should provide a global toggle to quickly switch between local and remote targets. - [ ] The entities UI should provide a way to include/filter entities from remote targets.
blacklight added the
ui
new feature
architecture
backend
documentation
labels 2024-09-07 20:24:20 +02:00
blacklight self-assigned this 2024-09-07 20:24:20 +02:00
blacklight added this to the core project 2024-09-07 20:24:21 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: platypush/platypush#427
No description provided.