mirror of
https://github.com/wahyd4/badger.git
synced 2026-08-08 21:05:55 +10:00
Add favicon and robots.txt
This commit is contained in:
@@ -25,5 +25,6 @@ USER junv
|
||||
|
||||
COPY --from=build /app/fonts ./fonts
|
||||
COPY --from=build /app/badger badger
|
||||
COPY --from=build /app/static ./static
|
||||
|
||||
CMD ["/home/junv/badger"]
|
||||
|
||||
@@ -11,6 +11,7 @@ Create badges from your prometheus metrics
|
||||

|
||||

|
||||

|
||||
[](https://badge.home.toozhao.com/svg/aria-ui-dockerhub)
|
||||
|
||||
[](https://microbadger.com/images/wahyd4/aria2-ui "Get your own image badge on microbadger.com")
|
||||
|
||||
|
||||
@@ -87,6 +87,10 @@ func main() {
|
||||
|
||||
r := gin.Default()
|
||||
|
||||
r.GET("/", func(c *gin.Context) {
|
||||
c.JSON(200, gin.H{"msg": "Wanna create some badges for your website or Github repo from various data sources? It's coming soon."})
|
||||
})
|
||||
|
||||
r.GET("/ping", func(c *gin.Context) {
|
||||
c.JSON(200, gin.H{"msg": "Hello!"})
|
||||
})
|
||||
@@ -103,6 +107,9 @@ func main() {
|
||||
}
|
||||
})
|
||||
|
||||
r.StaticFile("/favicon.ico", "static/favicon.ico")
|
||||
r.StaticFile("/robots.txt", "static/robots.txt")
|
||||
|
||||
go func() {
|
||||
http.Handle("/metrics", promhttp.Handler())
|
||||
if err := http.ListenAndServe(":9090", nil); err != nil {
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 15 KiB |
@@ -0,0 +1,3 @@
|
||||
User-agent: *
|
||||
Disallow: *
|
||||
Allow: /
|
||||
Reference in New Issue
Block a user