]> git.immae.eu Git - github/bastienwirtz/homer.git/blame - README.md
Merge pull request #12 from lukasmrtvy/master
[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."
36
37# Optional navbar
38links:
39 - name: "ansible"
40 icon: "fa-github"
41 url: "https://github.com/xxxxx/ansible/"
56c69e0d 42 target: '_blank' # optionnal html a tag target attribute
09763dbf
BW
43 - name: "Wiki"
44 icon: "fa-book"
45 url: "https://wiki.xxxxxx.com/"
46
47# Services
48# First level array represent a group.
7312bdd6 49# Leave only a "items" key if not using group (group name, icon & tagstyle are optional, section separation will not be displayed).
09763dbf
BW
50services:
51 - name: "DevOps"
52 icon: "fa-code-fork"
53 items:
54 - name: "Jenkins"
55 logo: "/assets/tools/jenkins.png"
e41196e7
BW
56 # Alternatively a fa icon can be provided:
57 # icon: "fab fa-jenkins"
09763dbf
BW
58 subtitle: "Continuous integration server"
59 tag: "CI"
60 url: "#"
56c69e0d 61 target: '_blank' # optionnal html a tag target attribute
09763dbf
BW
62 - name: "RabbitMQ Management"
63 logo: "/assets/tools/rabbitmq.png"
64 subtitle: "Manage & monitor RabbitMQ server"
65 tag: "haproxy"
7312bdd6 66 # Optional tagstyle
a2fdb8a9 67 tagstyle: "is-success"
09763dbf
BW
68 url: "#"
69 - name: "Monitoring"
70 icon: "fa-heartbeat"
71 items:
72 - name: "M/Monit"
73 logo: "/assets/tools/monit.png"
74 subtitle: "Monitor & manage all monit enabled hosts"
75 tag: "monit"
76 url: "#"
77 - name: "Grafana"
78 logo: "/assets/tools/grafana.png"
79 subtitle: "Metric analytics & dashboards"
80 url: "#"
81 - name: "Kibana"
82 logo: "/assets/tools/elastic.png"
83 subtitle: "Explore & visualize logs"
84 tag: "elk"
85 url: "#"
86 - name: "Website monitoring"
87 logo: "/assets/tools/pingdom.png"
88 subtitle: "Pingdom public reports overview"
89 tag: "CI"
90 url: "#"
91
e41196e7 92```
7fd9dc6f
BW
93
94If you choose to fetch message information from an endpoint, the output format should be:
95
96```json
97{
98 "style": null,
99 "title": "Lorem ipsum 42",
100 "content": "LA LA LA Lorem ipsum dolor sit amet, ....."
101}
102```
103
104`null` value or missing keys will be ignored and value from the `config.yml` will be used if available.
105Empty values (either in `config.yml` or the endpoint data) will hide the element (ex: set `"title": ""` to hide the title bar)