Skip to content
#

gateway

Here are 928 public repositories matching this topic...

armeria
ikhoon
ikhoon commented Mar 19, 2020

In our codebase, we push RequestContext and immediately run some code with try-with-resources.
For example:

try (SafeCloseable ignored = ctx.push()) {
    logger.trace(decorate(msg));
}

If RequestContext provides run(Runnable) or call(Callable) we can reduce boilerplate code and simplify it.

ctx.run(() -> logger.trace(decorate(msg));

This is inspired by g

基于SpringCloud(Hoxton.SR3) + SpringBoot(2.2.6.RELEASE) 的SaaS 微服务脚手架,具有统一授权、认证后台管理系统,其中包含具备用户管理、资源权限管理、网关API、分布式事务、大文件断点分片续传等多个模块,支持多业务系统并行开发,可以作为后端服务的开发脚手架。代码简洁,架构清晰,适合学习和直接项目中使用。核心技术采用Nacos、Fegin、Ribbon、Zuul、Hystrix、JWT Token、Mybatis、SpringBoot、Redis、RibbitMQ等主要框架和中间件。

  • Updated May 23, 2020
  • Java
sumory
sumory commented Jul 31, 2017

有同学经常提问针对application/x-www-form-urlencoded类型的post请求,在使用分流插件后获取不到post参数,大部分都是因为配置不当或者对Nginx相关知识点理解不清晰导致的。

下面介绍一个相关issue的正确配置:

  1. nginx.conf里配置一个upstream:
upstream business_upstream {
        server 127.0.0.1:8003;
}
  1. 然后配一个server用来作为business_upstream的服务提供者:
server {
        listen 8003;
        server_name localhost 127.0.0.1;
        access_log ./log
goku-api-gateway

A Powerful HTTP API Gateway in pure golang!Goku API Gateway (中文名:悟空 API 网关)是一个基于 Golang开发的微服务网关,能够实现高性能 HTTP API 转发、服务编排、多租户管理、API 访问权限控制等目的,拥有强大的自定义插件系统可以自行扩展,并且提供友好的图形化配置界面,能够快速帮助企业进行 API 服务治理、提高 API 服务的稳定性和安全性。

  • Updated Mar 30, 2020
  • Go
pomerium
travisgroth
travisgroth commented Aug 14, 2019

Is your feature request related to a problem? Please describe.

As observed during #261, users can accidentally set timeouts inconsistently. A concrete example is that one can set a User facing timeout lower than any backend timeout, such that requests may fail early.

Describe the solution you'd like

We should provide some sanity checking to prevent unintended timeout behavior.

Janusec Application Gateway, an application security solution which provides WAF (Web Application Firewall), CC attack defense, LDAP or OAuth2 Authentication, private key protection, Web SSH operation, Web routing and scalable load balancing. JANUSEC应用网关,提供WAF、CC攻击防御、LDAP或OAuth2身份认证、统一Web化管理入口、证书私钥保护、Web SSH安全运维,Web路由以及可扩展的负载均衡等功能。

  • Updated Jun 19, 2020
  • Go
vithu30
vithu30 commented Mar 16, 2020

Description:

Following error is logged during startup, after changing the userstore type as database in deployment.toml.

org.wso2.carbon.databridge.agent.exception.DataEndpointLoginException: Cannot borrow client for ssl://172.17.0.1:9711.
	at org.wso2.carbon.databridge.agent.endpoint.DataEndpointConnectionWorker.connect(DataEndpointConnectionWorker.java:145) ~[org.wso2.carbon.data
oyeb
oyeb commented Dec 22, 2017

doctests will help us catch any stale examples in the documentation, in case the examples break due to changes in code.

The following need to be resolved for doctests to work:

  1. The outputs also have to be written down in the documentation
  • Typical response objects are huge (will take up a lot of space).
  • Responses are unique and can't be tested against.
  1. Our examples invoke calls
twinforces
twinforces commented May 3, 2018

transformRequest only fires if its a method that can have a body. This is misleading, as it's very common to perhaps want to tweak headers or something on an outgoing request before it gets to the destination server.

The solution is "use" instead of "transformRequest", but I was banging my head on this today.

kevin-bates
kevin-bates commented Nov 20, 2019

One of the features added in PR #629 was the ability for users to specify per-user volume mounting by specifying KERNEL_VOLUME_MOUNTS and KERNEL_VOLUMES values in the env stanza of the api/kernels POST request's json body. We need to document an example of how that would be accomplished. It could be as simple as taking the example from #629

This issue came up during the review of PR #7

sterwen
sterwen commented Nov 23, 2019

The file kuranet.conf seems to contain most of the parameters for the network configuration, but I haven't found the exhaustive list of parameters we can put in it and the associated keywords.
This could be very helpful to provide a default network configuration for a particular application.
Wat is the precedence between kuranet.conf and snapshot and they have to be in sink at some point.

Un

eddyyuen
eddyyuen commented Oct 25, 2019

代码设置 StaticResurceType:
g = new Gateway();
g.HttpOptions(options =>
{
options.StaticResurceType = "txt;xml;zip;jpg;css;png;htm;woff;svg;gif;woff2;js;html;jpeg;ico;rar";
}
g.Open();
woff 文件显示 403错误。
GET http://..../__system/layuiadmin/layui/font/iconfont.woff?v=230 net::ERR_ABORTED 403 (No permission)
如果使用 HttpConfig.json 则一切正常。

看了代码,只有在实例化HttpApiServer时才会初始化,后续设置StaticResurce

Improve this page

Add a description, image, and links to the gateway topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the gateway topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.