Skip to content

Commit

Permalink
dapr dashboard seems to be returning root html on any path. try strip…
Browse files Browse the repository at this point in the history
…ping the prefix?
  • Loading branch information
akshaya-a committed Apr 17, 2024
1 parent 43bf767 commit 1476cdf
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion addons/mindctrl/config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: "Mindctrl"
description: "LLMOps for Homeassistant"
version: "0.0.57"
version: "0.0.58"
url: "https://github.com/akshaya-a/mindctrl/tree/main/addons/mindctrl"
slug: "mindctrl"
init: false
Expand Down
4 changes: 2 additions & 2 deletions python/src/mindctrl/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@

// Send the message
const chat_url = '{{ chat_url }}';
console.chat(`"Chatting ${chat_url} with ${JSON.stringify(payload)}"`);
console.info(`"Chatting ${chat_url} with ${JSON.stringify(payload)}"`);
fetch(chat_url, {
method: 'POST',
headers: {
Expand All @@ -254,7 +254,7 @@
})
.then(response => response.json())
.then(data => {
console.chat(data);
console.info(data);
const replyLi = document.createElement('li');
replyLi.className = 'reply-message';
replyLi.innerHTML = `<strong>Mindctrl:</strong> ${data[0]}`;
Expand Down
6 changes: 5 additions & 1 deletion services/ingress/traefik-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ http:
priority: 2
middlewares:
- "addon-ipallowlist"
- "add-addon-ingress"
- "strip-dapr-prefix"
entryPoints:
- http
root-ingress:
Expand All @@ -50,6 +50,10 @@ http:
- http

middlewares:
strip-dapr-prefix:
stripPrefix:
prefixes:
- "/dapr-dashboard"
add-addon-ingress:
addPrefix:
prefix: "{{ env "HASS_INGRESS_ENTRY" }}"
Expand Down

0 comments on commit 1476cdf

Please sign in to comment.