Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Kumar SIVA
@kumarsiva07
what is the difference between armor and echo?
Vishal Rana
@vishr
Echo is a Go library to build web applications while Armor is a binary built out of the same library to be used as an HTTP server with configuration file similar to nginx or apache server.
Louis Thibault
@lthibault
Hello, is Armor production-ready?
Tran Tien
@tranphuoctien
Armor
Vishal Rana
@vishr
@tranphuoctien yo
Tran Tien
@tranphuoctien
I like it @vishr
Vishal Rana
@vishr
@tranphuoctien thx, I am working on next version.
Tran Tien
@tranphuoctien
I will using amor to share port in application.
hope it have high performance
Tran Tien
@tranphuoctien
Im trying build it , but get error:
make build
rm -rf build
GOOS=linux GOARCH=amd64 go build -o build/armor-0.4.0-dev_linux-64 cmd/armor/main.go
# command-line-arguments
cmd/armor/main.go:129:9: cannot use logger (type *"g.ghn.vn/go-tenant-v1/amor/vendor/github.com/labstack/gommon/log".Logger) as type *"github.com/labstack/armor/vendor/github.com/labstack/gommon/log".Logger in field value
cmd/armor/main.go:130:10: cannot use colorer (type *"g.ghn.vn/go-tenant-v1/amor/vendor/github.com/labstack/gommon/color".Color) as type *"github.com/labstack/armor/vendor/github.com/labstack/gommon/color".Color in field value
Makefile:8: recipe for target 'build' failed
make: *** [build] Error 2
all package in vendor right?
Vishal Rana
@vishr
@tranphuoctien don’t build it, use the released version.
Han van Venrooij
@irundaia

Hi guys,

I've been setting up armor to proxy a couple of services on my own server. I'm running into an issue when attempting to setup owncloud. Apparently this works with the webdav protocol. This uses some non-standard HTTP verbs, for instance PROPFIND.
Apparently armor blocks such non-standard verbs as it responds with a 405 { "message": "Method Not Allowed" }

Is there some way to configure armor to allow such requests?
(Setting it up using my local IP works just fine. But as you can imagine, this is less than ideal.)
Vishal Rana
@vishr
@irundaia Armor internally uses Echo’s proxy middleware. For further debugging do you have a curl request which produces this error?
Han van Venrooij
@irundaia

@vishr I could reproduce it with:

curl -X PROPFIND https://host.com -v

Vishal Rana
@vishr
And what is the upstream service?
Han van Venrooij
@irundaia
My upstream service is a owncloud service running in docker. It's running on 192.168.0.10:9090
Vishal Rana
@vishr
Ok, so owncloud server is expecting PROPFIND method?
Han van Venrooij
@irundaia
Yeah.
If I connect to owncloud on the above ip/port combo above, everything works out.
Vishal Rana
@vishr
Okay, can you please create a an issue on GitHub with these details?
Han van Venrooij
@irundaia
Sure
Vishal Rana
@vishr
I will have a look at next opportunity.
Han van Venrooij
@irundaia
Thanks in advance! :)
Vishal Rana
@vishr
Thanks
Can you also mention how to run owncloud docker and make a request to produce this error?
Han van Venrooij
@irundaia
Sure, no problem. :)
Han van Venrooij
@irundaia
Is labstack/armor#40 sufficient for you to reproduce it?
Vishal Rana
@vishr
Yes
Han van Venrooij
@irundaia
Thanks, if there's anything else I can do to help, let me know. (Unfortunately, I've got no idea how to read/debug go :( )
Vishal Rana
@vishr
Not a problem. I will have a look later in the day.
Han van Venrooij
@irundaia
Thanks!
Vishal Rana
@vishr
@irundaia I have made a small fix, here is the binary if can try:
David Marceau
@omac777
Hi there Mr. vishr, I am curious to know how https://armor.labstack.com/ reached TLS 1.3 using golang when standard golang does not ship with tls 1.3 within it. Could you confirm you rebuilt your golang binaries with the cloudflare https://github.com/cloudflare/tls-tris tweaks?
How does labstack/armor compare with caddy? Are you aiming for the same audience of developers? What are your advantages when compared with caddy?
Vishal Rana
@vishr
@omac777 Armor is complied with stanard Go and certs are being used from cloudflare.
Armor is similar to caddy, but much simpler - it uses yaml file to configure your hosts and paths. Most of the middlware from Echo are compatible in Armor.
We are also in process to make it clustered with dynamic loading of the config.
and some admin interface.
Han van Venrooij
@irundaia
Hi! I was wondering whether armor supports validating client side certificates?
EUGENIO S CARVALHO
@eugeniucarvalho_twitter
Hi! Can someone explain me how to set up a redirect from domain.com to www.domain.com . I try but not working.