aasaam / palantir Goto Github PK
View Code? Open in Web Editor NEW:crystal_ball: HTTP REST API reverse proxy
License: Apache License 2.0
:crystal_ball: HTTP REST API reverse proxy
License: Apache License 2.0
Complete Documentation đ
Currently, the timeout for reverse proxy is hard-coded.
ŘłŮاŮ
ŘŻŮست گعاŮ
Ű .بŮŘąŮ
اŰŰŘŻ ŘŻŮŰŮا ڊاع اŰŮ ŮžÚŠŰŘŹ ÚŰ Ř§ŘłŘŞ ٠اŰا بعاŰ
php
ŮŮ
Ůاب٠استŮاد٠استŘ
ŘŽŰŮŰ ŘłŘąŰŘš ŘąŮت٠سع اؾ٠٠ءŮب بب؎شŰŘŻ ÚŠŮ ŮŘ§ŘąŘłŰ Ř§ŘąŘłŘ§Ů ÚŠŘąŘŻŮ
In roadmap to release version 1.0.0, It is required to have a config file like:
[backends]
[[backends.webapp1]]
target = "http://127.0.0.1:9000"
health = "/health"
[[backends.webapp2]]
target = "http://127.0.0.1:9000"
health = "/health"
[[backends.webapp3]]
target = "https://127.0.0.1:9000"
health = "/health"
ssl_ca = "/path/to/ca.pem"
[[frontends]]
[frontends.sample]
[[frontends.sample.backends]]
target = "webapp1"
weight = 5.0
[[frontends.sample.backends]]
target = "webapp2"
weight = 2.0
[[frontends.sample.backends]]
target = "webapp3"
backup = true
Following check point must be checked.
userinfo host port
âââ´âââââ ââââââ´âââââââââ ââ´â
https://[email protected]:123/forum/questions/?tag=networking&order=newest#top
âââŹââ âââââââââŹââââââââââââââââââââââââŹââââââââââââââââââŹââââââââââââââââââââââââââŹââ
scheme authority path query fragment
Write TDD.
Add cookie parser for check request and system status.
Consider HTTP request always carry the cookie of client unique identifier.
For example Cookie: cuid=blahblahblah;
Add Cookie parser for parse multiple cookie parse what' you need
Know status of protection: Consider statuses N, P{N}
Which means Normal N every thing is good so let all request go.
By P**{N}**
Depend on config file we follow these:
Define cookie name for example asm_prt=xxxxx*
SampleConfig: P1: Protection Level 1
cookie ttl: **604800**
cookie parameters:
- CUID
SampleConfig: P2: Protection Level 2
cookie ttl: **86400**
cookie parameters:
- CUID
- IP Address
SampleConfig: P3: Protection Level 3
cookie ttl: **7200**
cookie parameters:
- CUID
- IP Address
- User Agent
Authorization
and Cookie
for status of user is guest or logged in user.X-Cuid: blahblahblah
same follow for cookie.A declarative, efficient, and flexible JavaScript library for building user interfaces.
đ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. đđđ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google â¤ď¸ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.