Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#730] Add Remote-Node support #731

Merged
merged 2 commits into from
Dec 6, 2024
Merged

[#730] Add Remote-Node support #731

merged 2 commits into from
Dec 6, 2024

Conversation

yohamta
Copy link
Collaborator

@yohamta yohamta commented Dec 6, 2024

Resolves #730

This PR implements support for managing multiple Dagu instances from a single UI, allowing users to monitor and control DAGs across different environments through a centralized interface.

Changes

  • Add request proxying to support remote Dagu instances
  • Implement remote node configuration via admin.yaml
  • Add UI dropdown for instance selection
  • Add documentation for setup

Configuration Example

# admin.yaml
remoteNodes:
  - name: "dev"                                # name of the remote node
    apiBaseUrl: "http://localhost:8080/api/v1" # Base API URL of the remote node it must end with /api/v1
  
    # Authentication settings for the remote node
    # Basic authentication
    isBasicAuth: true              # Enable basic auth (optional)
    basicAuthUsername: "admin"     # Basic auth username (optional)
    basicAuthPassword: "secret"    # Basic auth password (optional)
  
    # api token authentication
    isAuthToken: true              # Enable API token (optional)
    authToken: "your-secret-token" # API token value (optional)

@yohamta yohamta merged commit 39169e8 into main Dec 6, 2024
4 checks passed
@yohamta yohamta deleted the remote-node branch December 6, 2024 07:19
Copy link

codecov bot commented Dec 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 61.64%. Comparing base (a3bda7b) to head (2964137).
Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #731   +/-   ##
=======================================
  Coverage   61.64%   61.64%           
=======================================
  Files          53       53           
  Lines        5262     5262           
=======================================
  Hits         3244     3244           
  Misses       1764     1764           
  Partials      254      254           
Files with missing lines Coverage Δ
internal/config/config.go 0.00% <ø> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a3bda7b...2964137. Read the comment docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remote Node Support
1 participant