expressgateway / express-gateway.io Goto Github PK
View Code? Open in Web Editor NEWwebsite for Express Gateway on express-gateway.io
website for Express Gateway on express-gateway.io
Inside the following page : http://www.express-gateway.io/docs/policies/simple-logger
The Simpler Logger policy provides capability for logging with basic message output. the JavaScript [ES6 template literal syntax][es6-template-literal-syntax]
and remove it from the wiki repository.
build times are insane. hugo will have it rendered in less that a second
It turns out that with a minimal code change we can put a super handy button to open a Gitter channel directly from EG.io — so people can ask question right away while having the documentation opened.
discrepancies between what the docs say and what we ended up in the gateway.config.yml
declarations
for example: in condition and action pairs - name is listed in some examples but it is mandatory?
I am using GoDaddy for SSL certification and i got two .crt
files.
I also generated .csr
file. And I put all combinations for key and cert but still not working.
https: port: 443 tls: "*.example.com": key: example.com.csr cert: 7e5f2a7e8fa0962d.crt
I got
_tls_common.js:104 c.context.setKey(options.key, options.passphrase); Error: error:0906D06C:PEM routines:PEM_read_bio:no start line at Object.createSecureContext (_tls_common.js:104:17) at TLSSocket.options.SNICallback [as _SNICallback] (/root/BubbleHRWebAppGateway/node_modules/express-gateway/lib/gateway/server.js:60:24) at loadSNI (_tls_wrap.js:113:8) at TLSSocket.oncertcb (_tls_wrap.js:193:3) at TLSWrap.ssl.oncertcb (_tls_wrap.js:452:39)
Can EG provide more detailed documentation for https configuration?
Thank you so much!
https://www.express-gateway.io/docs/policies/customization/conditions
cc @minotaurrr
there is a description for that.
http://www.express-gateway.io/docs/policies/proxy
example: API endpoint - "http://api.foobar.com/api" proxied to a service endpoint defined as "http://internal.api.lan:8080/" will have "/api" appended to it to become "http://internal/api/lan:8080/api"
more examples should be added
Inside the following section : http://www.express-gateway.io/docs/plugins
paragraph Plugin Structure, 2x ( are missing for bullets 2 and 3
_A plugin can contain one or more of the following:
$ eg gateway create
? What's the name of your Express Gateway? expressg
? Where would you like to install your Express Gateway? expressg
? What type of Express Gateway do you want to create? Getting Started with Express Gateway
create package.json
create server.js
create config/gateway.config.yml
create config/system.config.yml
create config/models/applications.json
create config/models/credentials.json
create config/models/users.json
...
+ [email protected]
added 775 packages in 13.818s
To start expressg, run the following commands:
cd expressg && npm start
$ cd expressg
$ npm start
This works:
curl http://localhost:8080/ip
Then with a new terminal
$ cd expressg
$ eg users create
? Enter firstname [required]: first
? Enter lastname [required]: last
? Enter username [required]: firstlast
? Enter email: undefined
? Enter redirectUri: undefined
✖ <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Cannot POST //users/</pre>
</body>
</html>
Or the page will seem to be incomplete and awful
I've been struggling multiple times searching for concepts and documents around the website. A search implementation is mandatory and Algolia can really be helpful.
They even have a free plan that should suit us perfectly.
[Update with whatever is missing]
write up egContext object esp when used within policies, conditions, actions, parameters, plugin development
One of the worst things in the word is to have a 404 link.
We should add an html proofer that could check all our links and make sure they return an
appropriate status code.
There are multiple ready-to-use gems for that.
log
policy is called simple-logger
, which is wrong.log
policy does not tell that message is printed using INFO
as log level.^ subject
it could be some doc branch was not merged
It turns our FeatHub is broken and not maintained.
Let's find alternatives: https://github.com/webpack-contrib/voting-app
It'll be great to have it, so we can track new publications.
As a side note, in head /atom.xml
link is listed, but it resolves to 404
Posted in wrong forum, closing.
explanation of conditions is buried WAY into the docs
http://127.0.0.1:9876/api-docs/
Complete docs for serviceEndpoint\Schema\apiEndpoint
Per @altsang:
it's ok to say that admin api is limited to...
apps, users, credentials, tokens
for now and more coming
We need an HOW TO section that would be example driven, showing the people how can you so most common scenarios with configurations and results.
Follow up from an email discussion. The passThrough
parameter for the authentication policies is not documented at all.
Our documentation are not mentioning anywhere that, when an user is authenticated, some headers gets added to the request done to the downstream services automatically for you.
Algolia is not that flexible with selectors for content indexing. We need to reorganise a bit the way we put content into the docs page so their crawler can index the things accordingly.
we'll re-use this feature in the future for something else
Inside the following section
http://www.express-gateway.io/docs/configuration/gateway.config.yml/policies
"For all policies supported by Express Gateway please see the Policy Reference"
The link for the Policy Reference provided is wrong : http://www.express-gateway.io/docs/configuration/gateway.config.yml/Policy%20Reference
From what I understand, it should be : http://www.express-gateway.io/docs/policies/
Blog archives, both by month and by year, aren't working.
see #30 for part 1 of the JWT use case
So that people can look in all our content we wrote so far.
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.