mirror of
https://github.com/labstack/echo.git
synced 2025-11-06 08:59:21 +02:00
Separated recipes from the main repo
Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
FROM busybox
|
||||
FROM reg.lab.st/argo
|
||||
MAINTAINER Vishal Rana <vr@labstack.com>
|
||||
|
||||
COPY server /server
|
||||
COPY public /public
|
||||
ADD argo.json /etc
|
||||
ADD public /www
|
||||
|
||||
CMD ["/server"]
|
||||
CMD ["-c", "/etc/argo.json"]
|
||||
|
||||
14
website/argo.json
Normal file
14
website/argo.json
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"www": {
|
||||
"listen": ":80",
|
||||
"hosts": {
|
||||
"*": {
|
||||
"paths": {
|
||||
"/*": {
|
||||
"dir": "/www"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -16,4 +16,4 @@ menu:
|
||||
|
||||
- [vishr](https://github.com/vishr)
|
||||
|
||||
### [Source Code](https://github.com/labstack/echo/blob/master/recipes/crud)
|
||||
### [Source Code](https://github.com/vishr/recipes/blob/master/echo/recipes/crud)
|
||||
|
||||
@@ -17,4 +17,4 @@ menu:
|
||||
|
||||
- [caarlos0](https://github.com/caarlos0)
|
||||
|
||||
### [Source Code](https://github.com/labstack/echo/blob/master/recipes/rice)
|
||||
### [Source Code](https://github.com/vishr/recipes/blob/master/echo/recipes/rice)
|
||||
|
||||
@@ -50,4 +50,4 @@ if _, err = io.Copy(dst, file); err != nil {
|
||||
|
||||
- [vishr](https://github.com/vishr)
|
||||
|
||||
### [Source Code](https://github.com/labstack/echo/blob/master/recipes/file-upload)
|
||||
### [Source Code](https://github.com/vishr/recipes/blob/master/echo/recipes/file-upload)
|
||||
|
||||
@@ -132,4 +132,4 @@ but is outside the scope of this recipe.
|
||||
|
||||
- [CaptainCodeman](https://github.com/CaptainCodeman)
|
||||
|
||||
### [Source Code](https://github.com/labstack/echo/blob/master/recipes/google-app-engine)
|
||||
### [Source Code](https://github.com/vishr/recipes/blob/master/echo/recipes/google-app-engine)
|
||||
|
||||
@@ -24,6 +24,6 @@ menu:
|
||||
|
||||
### Source Code
|
||||
|
||||
[graceful](https://github.com/labstack/echo/blob/master/recipes/graceful-shutdown/graceful)
|
||||
[graceful](https://github.com/vishr/recipes/blob/master/echo/recipes/graceful-shutdown/graceful)
|
||||
|
||||
[grace](https://github.com/labstack/echo/blob/master/recipes/graceful-shutdown/grace)
|
||||
[grace](https://github.com/vishr/recipes/blob/master/echo/recipes/graceful-shutdown/grace)
|
||||
|
||||
@@ -16,4 +16,4 @@ menu:
|
||||
|
||||
- [vishr](https://github.com/vishr)
|
||||
|
||||
### [Source Code](https://github.com/labstack/echo/blob/master/recipes/hello-world)
|
||||
### [Source Code](https://github.com/vishr/recipes/blob/master/echo/recipes/hello-world)
|
||||
|
||||
@@ -24,4 +24,4 @@ JSONP is a method that allows cross-domain server calls. You can read more about
|
||||
|
||||
- [willf](https://github.com/willf)
|
||||
|
||||
### [Source Code](https://github.com/labstack/echo/blob/master/recipes/jsonp)
|
||||
### [Source Code](https://github.com/vishr/recipes/blob/master/echo/recipes/jsonp)
|
||||
|
||||
@@ -55,4 +55,4 @@ $ curl localhost:1323/restricted -H "Authorization: Bearer <token>" => Access g
|
||||
|
||||
- [axdg](https://github.com/axdg)
|
||||
|
||||
### [Source Code](https://github.com/labstack/echo/blob/master/recipes/jwt-authentication)
|
||||
### [Source Code](https://github.com/vishr/recipes/blob/master/echo/recipes/jwt-authentication)
|
||||
|
||||
@@ -17,4 +17,4 @@ menu:
|
||||
|
||||
- [vishr](https://github.com/vishr)
|
||||
|
||||
### [Source Code](https://github.com/labstack/echo/blob/master/recipes/middleware)
|
||||
### [Source Code](https://github.com/vishr/recipes/blob/master/echo/recipes/middleware)
|
||||
|
||||
@@ -25,4 +25,4 @@ menu:
|
||||
|
||||
- [vishr](https://github.com/vishr)
|
||||
|
||||
### [Source Code](https://github.com/labstack/echo/blob/master/recipes/streaming-file-upload)
|
||||
### [Source Code](https://github.com/vishr/recipes/blob/master/echo/recipes/streaming-file-upload)
|
||||
|
||||
@@ -35,4 +35,4 @@ $ curl localhost:1323
|
||||
|
||||
- [vishr](https://github.com/vishr)
|
||||
|
||||
### [Source Code](https://github.com/labstack/echo/blob/master/recipes/streaming-response)
|
||||
### [Source Code](https://github.com/vishr/recipes/blob/master/echo/recipes/streaming-response)
|
||||
|
||||
@@ -15,4 +15,4 @@ menu:
|
||||
- [axdg](https://github.com/axdg)
|
||||
- [vishr](https://github.com/axdg)
|
||||
|
||||
### [Source Code](https://github.com/labstack/echo/blob/master/recipes/subdomains)
|
||||
### [Source Code](https://github.com/vishr/recipes/blob/master/echo/recipes/subdomains)
|
||||
|
||||
@@ -22,4 +22,4 @@ menu:
|
||||
|
||||
- [vishr](https://github.com/vishr)
|
||||
|
||||
### [Source Code](https://github.com/labstack/echo/blob/master/recipes/website)
|
||||
### [Source Code](https://github.com/vishr/recipes/blob/master/echo/recipes/website)
|
||||
|
||||
@@ -44,4 +44,4 @@ Hello, Server!
|
||||
|
||||
- [vishr](https://github.com/vishr)
|
||||
|
||||
### [Source Code](https://github.com/labstack/echo/blob/master/recipes/websocket)
|
||||
### [Source Code](https://github.com/vishr/recipes/blob/master/echo/recipes/websocket)
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
<pre data-src="https://raw.githubusercontent.com/labstack/echo/master/recipes/{{ .Get 0 }}">
|
||||
<pre data-src="https://raw.githubusercontent.com/vishr/recipes/master/echo/recipes/{{ .Get 0 }}">
|
||||
</pre>
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
{}
|
||||
@@ -1,17 +0,0 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/labstack/echo"
|
||||
mw "github.com/labstack/echo/middleware"
|
||||
)
|
||||
|
||||
func main() {
|
||||
e := echo.New()
|
||||
e.Use(mw.Logger())
|
||||
e.Use(mw.Recover())
|
||||
e.Use(mw.Gzip())
|
||||
|
||||
e.Static("/", "public")
|
||||
|
||||
e.Run(":80")
|
||||
}
|
||||
Reference in New Issue
Block a user