Implementing User Authentication in llama.cpp Server #7485
Unanswered
SeanZhang7
asked this question in
Q&A
Replies: 2 comments 1 reply
-
Proxy llama server with Apache or anything? 🙂 |
Beta Was this translation helpful? Give feedback.
1 reply
-
I solved this by storing usernames and passwords in local storage and encrypt them with SHA-256. |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
I am working on modifying index.html in llama.cpp/examples/server/public to add a user login window. This login window will prompt users to input their username and password to access the server. I want to manage user information in a .js file, allowing new users to be added without having to rebuild the entire project.
Methods I've Tried:
Creating a users.js file in public and importing it in index.html
Result: This leads to a 404 error.
Creating a users.js file in public, importing it in index.html, adding it to the Makefile to generate users.js.hpp, then include and Get users.js.hpp in server.cpp
Result: This requires a rebuild every time a new user is added.
Question:
Does anyone have a better approach for achieving this?
Beta Was this translation helpful? Give feedback.
All reactions