glanceapp / glanceapp/glance

Problems with environments in login page

Open
#906 0 comments 0 reactions 0 assignees View on GitHub
feature request
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).

Image

Image

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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.