]> git.immae.eu Git - github/bastienwirtz/homer.git/blame - README.md
Add missing key in config documentation
[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
BW
7
8![screenshot](https://github.com/bastienwirtz/homer/blob/master/screenshot.png)
9
10**How to build / install it? Where is the webpack config?**
11There is no build system (😱), use it like that! It'meant to be stupid simple & zero maintenance required. just copy the static files somewhere, and visit the `index.html`.
e41196e7 12
09763dbf
BW
13
14## configuration
15
16Title, icons, links, colors, and services can be configured in the `config.yml` file, using [yaml](http://yaml.org/) format.
17
18
19```yaml
20---
21# Homepage configuration
e41196e7 22# See https://fontawesome.com/icons for icons options
09763dbf
BW
23
24title: "Simple homepage"
25subtitle: "Homer"
26logo: "assets/homer.png"
e41196e7
BW
27# Alternatively a fa icon can be provided:
28# icon: "fas fa-skull-crossbones"
09763dbf
BW
29
30# Optional message
31message:
7fd9dc6f 32 # url: "https://<my-api-endpoint>" # Can fetch information from an endpoint to override value below.
e3212743 33 style: "is-warning"
09763dbf
BW
34 title: "Optional message!"
35 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."
deff5e38 36 footer: '<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.
09763dbf
BW
37
38# Optional navbar
39links:
40 - name: "ansible"
41 icon: "fa-github"
42 url: "https://github.com/xxxxx/ansible/"
56c69e0d 43 target: '_blank' # optionnal html a tag target attribute
09763dbf
BW
44 - name: "Wiki"
45 icon: "fa-book"
46 url: "https://wiki.xxxxxx.com/"
47
48# Services
49# First level array represent a group.
7312bdd6 50# Leave only a "items" key if not using group (group name, icon & tagstyle are optional, section separation will not be displayed).
09763dbf
BW
51services:
52 - name: "DevOps"
53 icon: "fa-code-fork"
54 items:
55 - name: "Jenkins"
56 logo: "/assets/tools/jenkins.png"
e41196e7
BW
57 # Alternatively a fa icon can be provided:
58 # icon: "fab fa-jenkins"
09763dbf
BW
59 subtitle: "Continuous integration server"
60 tag: "CI"
61 url: "#"
56c69e0d 62 target: '_blank' # optionnal html a tag target attribute
09763dbf
BW
63 - name: "RabbitMQ Management"
64 logo: "/assets/tools/rabbitmq.png"
65 subtitle: "Manage & monitor RabbitMQ server"
66 tag: "haproxy"
7312bdd6 67 # Optional tagstyle
a2fdb8a9 68 tagstyle: "is-success"
09763dbf
BW
69 url: "#"
70 - name: "Monitoring"
71 icon: "fa-heartbeat"
72 items:
73 - name: "M/Monit"
74 logo: "/assets/tools/monit.png"
75 subtitle: "Monitor & manage all monit enabled hosts"
76 tag: "monit"
77 url: "#"
78 - name: "Grafana"
79 logo: "/assets/tools/grafana.png"
80 subtitle: "Metric analytics & dashboards"
81 url: "#"
82 - name: "Kibana"
83 logo: "/assets/tools/elastic.png"
84 subtitle: "Explore & visualize logs"
85 tag: "elk"
86 url: "#"
87 - name: "Website monitoring"
88 logo: "/assets/tools/pingdom.png"
89 subtitle: "Pingdom public reports overview"
90 tag: "CI"
91 url: "#"
92
e41196e7 93```
7fd9dc6f
BW
94
95If you choose to fetch message information from an endpoint, the output format should be:
96
97```json
98{
99 "style": null,
100 "title": "Lorem ipsum 42",
101 "content": "LA LA LA Lorem ipsum dolor sit amet, ....."
102}
103```
104
105`null` value or missing keys will be ignored and value from the `config.yml` will be used if available.
106Empty values (either in `config.yml` or the endpoint data) will hide the element (ex: set `"title": ""` to hide the title bar)