Comments (5)
But if the backend is on another machine ?
from opla-v2.
So, I tend to agree with you, but :
The underlying problem is that we currently use OPLA_BACKEND_DOMAIN
for 2 things
- to register the app against the backend through
opla init
on a private network (not open to the public, otherwise anybody can register theirs). - to tell the frontend where the public api sits.
2 things about that :
- They are not necessarily the same. A web client will need, let's say
api.opla.ai
to operate their bots (public but secure). But in order to configure the application (privately, from backend to backend), we will probably use different dns, or IPs). - If we split this into 2 env variables, which I thought about doing (e.g.
OPLA_API_DOMAIN
andOPLA_BACKEND_HOST
), then, we will need to inject different values ofOPLA_API_DOMAIN
, one per environment for instance, and if we go for prefixes per customer, for instance, then we will have a lot of those. Why should we do that when we can just tell the frontend :"whichever domain there is in the address bar, there will be an API on theapi/
relative path."
It doesn't have to be on the same machine, we can do reverse proxying with nginx (that we already do), or use ingress in Kubernetes to point api/*
to the right services.
Also, having api.opla.ai
and front.opla.ai
means 2 certificates, more complexity. I don't see the advantages of having 2 domains.
WDYT
from opla-v2.
Ok I see your point of view. Let's see how long it could take and work on it later.
from opla-v2.
done?
from opla-v2.
Closing, irrelevant now.
from opla-v2.
Related Issues (20)
- Custom welcome message is not exported
- Load/Save/Demo on both playground and webchat
- Backend : delete context when resetConversation
- Disable autocomplete on both webchat and playground input HOT 1
- Middlewares sync issues HOT 1
- Factory settings : put the Save in the menu
- Factory settings : Put bot's parameters in an expansion panel HOT 1
- Admin : advanced error and nothing displayed HOT 3
- Factory Builder : rename tooltips 'TODO insert link' to 'TODO insert intent ref' HOT 1
- Json Webservice connexion HOT 1
- mailto for e-mails appearing in webchat HOT 1
- Redirect image click on webchat/playground HOT 1
- "Button" missing in outputs under category
- Factory : Dashboarding wrongly displayed values
- Typing * or <> in outputs makes @any appear or blocks disappear
- Missing await on bot controller
- topic=MAJ doesn't work
- move intent DnD won't work
- CircleCI Node-Gyp error
- Also when you are in assistant's list, don't display previous chatbot name in hamburger menu and hide the close button. 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 opla-v2.