()
return {
        "traefik_api": {
            "password": password,
        }
    }
Load traefik api secret from a file
Load traefik api secret from a file
Load traefik api secret from a file
def load_traefik_api_credentials():
    """Load traefik api secret from a file"""
    proxy_secret_path = os.path.join(STATE_DIR, "traefik-api.secret")
    if not os.path.exists(proxy_secret_path):
        return {}
    with open(proxy_secret_path) as f:
        password = f.read()
    return {
        "traefik_api": {
            "password": password,
        }
    }
def load_traefik_api_credentials ( ) : proxy_secret_path = os . path . join ( STATE_DIR , "traefik-api.secret" ) if not os . path . exists ( proxy_secret_path ) : return { } with open ( proxy_secret_path ) as f : password = f . read ( ) return { "traefik_api" : { "password" : password , } }