Problems with environments in login page
- Dominant language
- Go
- Stars
- 37.1k
- Forks
- 1.5k
- Avg merge
- 1h 11m
- Merged PRs (30d)
- 1
Description
### Description
It's a bit complex, but I'll tell you the story.
I wanted to have an AI chat within Glance, with the possibility of connecting it to my OpenWebUI server. I spoke with the Deep-Chat developer, who helped me with an early implementation of his library to connect to OpenWebUI, so that I could have the chat internally (I've attached screenshots).
I managed to do this implementation correctly, but I noticed something. I did this implementation in the “custom-footer” parameter so I could load it on all pages, but I realized that the environment variables I'm passing through variable data are also accessible in the Glance login.
This is my implementation of deep-chat in custom-footer:
```code
document:
head: |
branding:
app-name: 'Dashboard'
custom-footer: |
```
_The “single.js” script is responsible for loading the instance, and the data parameters are the variables required by Deep Chat._
I was wondering if it is possible to obtain the environment variables via JS or through a custom-footer per page. This way, I could only obtain the environment variables on pages where I am already logged in.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.