profile
viewpoint

sharego/chinese-lunar-date 1

convert chinese lunar date to solar date ; 中国农历与阳历转换

sharego/async-mysql-connector 0

Automatically exported from code.google.com/p/async-mysql-connector

sharego/beego 0

beego is an open-source, high-performance web framework for the Go programming language.

sharego/bocker 0

Docker implemented in around 100 lines of bash

sharego/bouncer 0

The DC/OS identity and access management service (IAM)

sharego/cachecloud 0

搜狐视频(sohu tv)Redis私有云平台

sharego/caddy 0

Fast, multi-platform web server with automatic HTTPS

sharego/clusterdata 0

cluster data collected from production clusters in Alibaba for cluster management research

sharego/cncf-presentations 0

Presentations from the CNCF community to share and reuse

sharego/containerd 0

An open and reliable container runtime

issue commentcaddyserver/caddy

caddyauth force response 401, make the authentication provider error shadow and no chance to response other things

I think #3424 is related

It's the same scene, sorry miss that. This PR is make the small changes to achieve the goals.

The #3424 resolve in a different way, also very good.

sharego

comment created time in a day

PR opened caddyserver/caddy

Opt caddyauth error handle #3471

Add authentication provider error delivery, to change server response

+4 -0

0 comment

1 changed file

pr created time in 2 days

create barnchsharego/caddy

branch : sharego-patch-3471

created branch time in 2 days

issue openedcaddyserver/caddy

caddyauth force response 401, make the authentication provider error shadow and no chance to response other things

current

caddyauth force response 401, ignored the authentication provider error, as below:

modules/caddyhttp/caddyauth/caddyauth.go#L78

	var user User
	var authed bool
	var err error
	for provName, prov := range a.Providers {
		user, authed, err = prov.Authenticate(w, r)
		if err != nil {
			log.Printf("[ERROR] Authenticating with %s: %v", provName, err)
			continue
		}
		if authed {
			break
		}
	}
	if !authed {
		return caddyhttp.Error(http.StatusUnauthorized, fmt.Errorf("not authenticated"))
	}

Expect

if !authed {
   e, ok :=  err.(caddyhttp.Error)
   if ok {
      return e
   } else {
      return caddyhttp.Error(http.StatusUnauthorized, fmt.Errorf("not authenticated"))
   }
}

Why

Some case, the server want to response a redirect to allow user login or show server error tell user now cannot be serverd

created time in 2 days

fork sharego/caddy

Fast, multi-platform web server with automatic HTTPS

https://caddyserver.com

fork in 2 days

issue commentcaddyserver/caddy

reverse_proxy http need control follow upstream redirect

Ok, Thanks for your patience, I write a new config, test result is ok, i will test again asap.

This config file test is ok.

http://example.local {
  reverse_proxy www.example.local:80 {
    header_up Host "www.example.local"
  }
}

http://www.example.local {
  redir /vindex.html /v/index.html
  file_server /* {
    root /var/www/html
  }
}

When i read the template, about the Go version, recommend add runtime info output, eg. add this to version command as this:

v2.0.0 h1:pQSaIJGFluFvu8KDGDODV8u4/QRED/OPyIR+MWYYse8=
linux/amd64, go1.14.3

I can send a pr for this

sharego

comment created time in 4 days

issue commentcaddyserver/caddy

reverse_proxy upstream dial to a hostname, how to set resolver for the hostname?

Ok, Thanks. But i do not know details about this feature, Like nginx resolver is ok?

This is nginx resolver directive

Syntax:  resolver address ... [valid=time] [ipv6=on\|off] [status_zone=zone];
Default: --
Context: http, server, location
sharego

comment created time in 4 days

push eventsharego/proxysocket

xiaowei

commit sha a81419753c2e5abc2de44765b716d7c1af3acca9

add config file parse feature

view details

xiaowei

commit sha f7c008b399b1d81a89cfbedbdeadb422566802c0

Merge branch 'feature/tls' into opt/transport

view details

push time in 6 days

push eventsharego/proxysocket

xiaowei

commit sha a81419753c2e5abc2de44765b716d7c1af3acca9

add config file parse feature

view details

push time in 6 days

issue openedcaddyserver/caddy

reverse_proxy http need control follow upstream redirect

version

 caddy v2.0.0

reproduction

reverse_proxy a request to upsream upstream response 3** tell client to new location

result

caddy response zero content, with status 200

expect

caddy parse the upstream reponse status code, follow the redirect directive, send request to upstream again

question

reverse_proxy not handle upstream 3xx status_code

need to do it

created time in 7 days

issue openedcaddyserver/caddy

reverse_proxy upstream dial to a hostname, how to set resolver for the hostname?

Is there a way to set a custom resolver for a server or reverse_proxy handler?

And DNS Resolver maybe not use the standard port like 53, or support DNS over HTTP?

created time in 7 days

create barnchsharego/proxysocket

branch : opt/transport

created branch time in 8 days

push eventsharego/proxysocket

xiaowei

commit sha e742ef2ad84d689609153beb022c8f6eaede5b4d

fix ca

view details

push time in 8 days

issue openedcaddyserver/caddy

TLS Off

version

v2.0.0 h1:pQSaIJGFluFvu8KDGDODV8u4/QRED/OPyIR+MWYYse8=

Config

0.0.0.0:8090
tls off
 file_server {
 root /var/www/html
}
encode gzip

Result

run: adapting config using caddyfile: parsing caddyfile tokens for 'tls': /etc/caddy/Caddyfile:3 - Error during parsing: single argument must either be 'internal' or an email address

Expect

TLS off

Question

Is real need force enable tls?

created time in 9 days

startedjc21/docker-rpmbuild-centos8

started time in 9 days

startedjc21/docker-rpmbuild-centos7

started time in 9 days

create barnchsharego/proxysocket

branch : feature/tls

created branch time in 9 days

push eventsharego/proxysocket

xiaowei

commit sha a87bda8ac2eba4c0b8dd6bf561f11c48102e79f9

Add Readme

view details

push time in 12 days

push eventsharego/proxysocket

xiaowei

commit sha c60990683acbff4683ff1b4122f62f52781ba605

opt Makefile

view details

push time in 12 days

create barnchsharego/proxysocket

branch : master

created branch time in 12 days

created repositorysharego/proxysocket

Yet a proxy again for tcp, udp and unix

created time in 12 days

issue openeddcos/dcos-diagnostics

Design Doc Public Request

Hi, the design doc now it is served by Google Docs, access need a permission proved, the permission can be set to anybody read?

created time in 15 days

push eventsharego/xiaowei

sharego

commit sha 189b80ed175ff17faa85986bd351640e33a301b9

Add PATH notice

view details

push time in 16 days

push eventsharego/xiaowei

sharego

commit sha 7631ff71cd8d84e59cdfee827e060db6b757edea

Add runc install

view details

push time in 16 days

fork sharego/frp

A fast reverse proxy to help you expose a local server behind a NAT or firewall to the internet.

fork in 21 days

fork sharego/fwd

yet another dual reverse proxy

fork in 21 days

startedlucas-clemente/quic-go

started time in 21 days

startedcaddyserver/caddy

started time in a month

push eventsharego/xiaowei

xiaowei

commit sha 1233687283b2137cd82a66dba248f7c5f2352352

opt

view details

push time in a month

push eventsharego/xiaowei

xiaowei

commit sha d425f2f85efd6e1a894d3de751da32bf405f68a2

update nginx upstream domain case

view details

push time in a month

startedkubernauts/cka-practice-environment

started time in a month

push eventsharego/xiaowei

xiaowei

commit sha dc7bcc15a403cbeca66860121183dc356af5fd49

temp cache nginx files

view details

push time in a month

create barnchsharego/containerd

branch : feature-devmapper-size

created branch time in 2 months

fork sharego/containerd

An open and reliable container runtime

https://containerd.io

fork in 2 months

push eventsharego/xiaowei

xiaowei

commit sha be7b4022094e341f7134b722962052a3fb091069

update container image

view details

push time in 2 months

push eventsharego/xiaowei

xiaowei

commit sha 8d5a139b6ba38e197c28364994eab324ca26c96d

add container image

view details

push time in 2 months

push eventsharego/xiaowei

xiaowei

commit sha c2936bd8c1035a3fe54cef91f87b483be83d84a1

add mysql arguments

view details

push time in 2 months

push eventsharego/xiaowei

xiaowei

commit sha fe8c425fc34050cbf2ab61b09a593bbc38507cc8

add direct-lvm dm

view details

push time in 2 months

push eventsharego/xiaowei

xiaowei

commit sha b274e9a263bbc331a53fc673f83a9fe500661c6b

add mesos log note

view details

push time in 2 months

push eventsharego/xiaowei

xiaowei

commit sha d9e858eca9d8fc1441111df947e99f7394191f96

fix init

view details

xiaowei

commit sha bcdbf1b09122abc88bdb4a00ca24feb956726882

merge upstream

view details

push time in 2 months

push eventsharego/xiaowei

xiaowei

commit sha fc35e7324e9b23cf9e8980144399b509f65f4bb4

add containerd

view details

push time in 2 months

more