Comments (5)
👌 I got it, maybe this weekend I'll implement this feature.
from linka.
It's possible to pass environment variables to react building stage, then the vars would be statically embedded to the HTML/JS files and visible to all front-end users. If this is ok, maybe we can try it.
Maybe it's better to set the secrets in a proxy which is invisible to users, e.g. Nginx server, like following:
location = /oneapi {
set $args $args&apiKey=tiger;
proxy_pass https://api.somewhere.com;
}
Both solutions need modification to Dockerfile
.
from linka.
For more information about react envs, please read this page: https://vitejs.dev/guide/env-and-mode.html
from linka.
For my use case both of the 2 solutions would work as my instance is private, but I agree that for other users the first one would be less than ideal from a security standpoint.
Wouldn't the proxy solution require more than just editing the Dockerfile
?
Sorry, I'm not versed at all in JS and React.
from linka.
Hi!
Did you have time to look into this ?
Thanks 😊
from linka.
Related Issues (18)
- Feat: add browser bookmarks support
- Feat: add pin window on top HOT 2
- Feat: share a read-only page in team HOT 2
- Feat: implement linkding api with Go
- Feat: auto generate site meta info from url by GPT HOT 4
- Feat: List of Tags
- Bug: search duplication issue. HOT 1
- Feat: more keyboard support HOT 1
- Refact: maybe the context is a little complex HOT 1
- Feat: PWA - Share to Linka and add link.
- Feat: Sort Bookmarks
- Bug: Debounce Search HOT 1
- Feat: Count visits
- Fix: response from gpt may miss some fields HOT 1
- Fix: multi keywords' results should be intersection HOT 1
- Logo is the same as Benthos HOT 2
- notes field HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from linka.