Overview
When you add a proxy to a server group, that means that the davinci servers will act as a proxy for the servers in the group. The proxy URL can be obtained by clicking the URL link underneath the proxy in the server group. The URL will look like
https://davinci-net.com/proxy/f2124f8e-d402-442c-8a31-2a370b392a1d/
Any URL that a server hosts, can be accessed through the proxy by appending the URL to the proxy URL.
For example, if the servers in the group host a URL named "/sample/", as in the following code
app.get('/sample/', async (req, res)=>{
res.send('hello world');
});
The URL can accesses through the proxy as
https://davinci-net.com/proxy/f2124f8e-d402-442c-8a31-2a370b392a1d/sample/
User Credentials
When a user on the davinci platform who is currently logged in, accesses the proxy, the user's username will be accessible in the requests header.
app.get('/sample/', async (req, res)=>{
let username = req.headers.username;
res.send('hello world');
});