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