Short Update: API v2 Now Available in Unstable Branch for Testing! #93
                  
                    
                      ChrispyBacon-dev
                    
                  
                
                  started this conversation in
                General
              
            Replies: 0 comments
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
Just a quick update on DockFlare's development. I've implemented initial API v2 support in the
unstablebranch!This new API is a significant step towards:
).
Want to try it out?
You can pull the latest unstable build with API v2 support:
(Please remember this is an unstable build, primarily for testing and development.)
Example API v2 Endpoints:
Once your container is running (e.g., on
http://localhost:5000):Get an overview of the current DockFlare state:
Add a new manual ingress rule:
First, create a
rule.jsonfile:{ "subdomain": "test-api", "domain_name": "yourdomain.icu", // Replace with your actual domain "path": "", // Optional: e.g., "/app" "service_type": "http", "service_address": "internal-service-hostname:80", // Replace with your target service "zone_name_override": "", // Optional: Override auto-detected zone "no_tls_verify": false, "origin_server_name": "", // Optional: For SNI to origin "access_policy_type": "bypass", // "bypass", "authenticate_email", "default_tld", "none" "auth_email": "", // Required if access_policy_type is "authenticate_email" "session_duration": "12h", "app_launcher_visible": true, "allowed_idps_str": null, // Comma-separated IdP UUIDs (string) or null "auto_redirect": false }Then, send the request:
curl -X POST -H "Content-Type: application/json" -d @rule.json http://localhost:5000/api/v2/rules/manualThis API includes endpoints for managing rules, access policies, agent status, and more. The full list of endpoints and their expected payloads are being finalized and will be documented soon.
Your feedback and testing on these new API endpoints would be very helpful.
Cheers,
Chris
Beta Was this translation helpful? Give feedback.
All reactions