]> git.immae.eu Git - github/bastienwirtz/homer.git/blame - README.md
Add .dockerignore
[github/bastienwirtz/homer.git] / README.md
CommitLineData
09763dbf 1# Homer
8aa8398f 2A dead simple static **HOM**epage for your serv**ER** to keep your services on hand, from a simple `yaml` configuration file.
09763dbf 3
5fe53dce
BW
4**Check out the live demo [here](https://homer-demo.netlify.com/).**
5
8aa8398f 6If you need authentication support, you're on your own (it can be secured using a web server auth module or exposing it only through a VPN network / SSH tunnel, ...)
09763dbf 7
22555b55 8![screenshot](https://raw.github.com/bastienwirtz/homer/master/screenshot.png)
09763dbf 9
22555b55
BW
10## Roadmap
11
12- [ ] Colors / theme customization
13- [ ] Enable PWA support (making possible to "install" - add to homescreen - it)
14- [ ] Improve maintenability (external library import & service workers cached file list.)
15
16## Installation
b79e6ed1
BW
17
18### Using docker
19
20```sh
46fd4f4d 21sudo docker run -p 8080:8080 -v /your/local/config.yml:/www/config.yml -v /your/local/assets/:/www/assets b4bz/homer:latest
b79e6ed1
BW
22```
23
24### Manually
25
22555b55 26**How to build / install it?** There is no build system (😱), use it like that! It's meant to be stupid simple & zero maintenance required. Just copy the static files somewhere, and visit the `index.html`.
e41196e7 27
09763dbf 28
22555b55 29## Configuration
09763dbf
BW
30
31Title, icons, links, colors, and services can be configured in the `config.yml` file, using [yaml](http://yaml.org/) format.
32
33
34```yaml
35---
36# Homepage configuration
e41196e7 37# See https://fontawesome.com/icons for icons options
09763dbf
BW
38
39title: "Simple homepage"
40subtitle: "Homer"
41logo: "assets/homer.png"
e41196e7 42# Alternatively a fa icon can be provided:
46fd4f4d
BW
43# icon: "fas fa-skull-crossbones"
44footer: '<p>Created with <span class="has-text-danger">❤️</span> with <a href="https://bulma.io/">bulma</a>, <a href="https://vuejs.org/">vuejs</a> & <a href="https://fontawesome.com/">font awesome</a> // Fork me on <a href="https://github.com/bastienwirtz/homer"><i class="fab fa-github-alt"></i></a></p>' # set false if you want to hide it.header:
09763dbf
BW
45
46# Optional message
47message:
7fd9dc6f 48 # url: "https://<my-api-endpoint>" # Can fetch information from an endpoint to override value below.
e3212743 49 style: "is-warning"
09763dbf
BW
50 title: "Optional message!"
51 content: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque risus mi, tempus quis placerat ut, porta nec nulla. Vestibulum rhoncus ac ex sit amet fringilla. Nullam gravida purus diam, et dictum felis venenatis efficitur. Aenean ac eleifend lacus, in mollis lectus. Donec sodales, arcu et sollicitudin porttitor, tortor urna tempor ligula."
52
53# Optional navbar
5028088e 54# links: [] # Allows for navbar (dark mode, layout, and search) without any links
09763dbf
BW
55links:
56 - name: "ansible"
57 icon: "fa-github"
58 url: "https://github.com/xxxxx/ansible/"
56c69e0d 59 target: '_blank' # optionnal html a tag target attribute
09763dbf
BW
60 - name: "Wiki"
61 icon: "fa-book"
62 url: "https://wiki.xxxxxx.com/"
63
64# Services
65# First level array represent a group.
7312bdd6 66# Leave only a "items" key if not using group (group name, icon & tagstyle are optional, section separation will not be displayed).
09763dbf
BW
67services:
68 - name: "DevOps"
69 icon: "fa-code-fork"
70 items:
71 - name: "Jenkins"
72 logo: "/assets/tools/jenkins.png"
e41196e7
BW
73 # Alternatively a fa icon can be provided:
74 # icon: "fab fa-jenkins"
09763dbf
BW
75 subtitle: "Continuous integration server"
76 tag: "CI"
77 url: "#"
56c69e0d 78 target: '_blank' # optionnal html a tag target attribute
09763dbf
BW
79 - name: "RabbitMQ Management"
80 logo: "/assets/tools/rabbitmq.png"
81 subtitle: "Manage & monitor RabbitMQ server"
82 tag: "haproxy"
7312bdd6 83 # Optional tagstyle
a2fdb8a9 84 tagstyle: "is-success"
09763dbf
BW
85 url: "#"
86 - name: "Monitoring"
87 icon: "fa-heartbeat"
88 items:
89 - name: "M/Monit"
90 logo: "/assets/tools/monit.png"
91 subtitle: "Monitor & manage all monit enabled hosts"
92 tag: "monit"
93 url: "#"
94 - name: "Grafana"
95 logo: "/assets/tools/grafana.png"
96 subtitle: "Metric analytics & dashboards"
97 url: "#"
98 - name: "Kibana"
99 logo: "/assets/tools/elastic.png"
100 subtitle: "Explore & visualize logs"
101 tag: "elk"
102 url: "#"
103 - name: "Website monitoring"
104 logo: "/assets/tools/pingdom.png"
105 subtitle: "Pingdom public reports overview"
106 tag: "CI"
107 url: "#"
108
e41196e7 109```
7fd9dc6f
BW
110
111If you choose to fetch message information from an endpoint, the output format should be:
112
113```json
114{
115 "style": null,
116 "title": "Lorem ipsum 42",
117 "content": "LA LA LA Lorem ipsum dolor sit amet, ....."
118}
119```
120
121`null` value or missing keys will be ignored and value from the `config.yml` will be used if available.
22555b55 122Empty values (either in `config.yml` or the endpoint data) will hide the element (ex: set `"title": ""` to hide the title bar).