]> git.immae.eu Git - github/bastienwirtz/homer.git/blame_incremental - README.md
Add live demo link
[github/bastienwirtz/homer.git] / README.md
... / ...
CommitLineData
1# Homer
2A dead simple static **HOM**epage for your serv**ER** to keep your services on hand, from a simple `yaml` configuration file.
3
4**Check out the live demo [here](https://homer-demo.netlify.com/).**
5
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, ...)
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`.
12
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
22# See https://fontawesome.com/icons for icons options
23
24title: "Simple homepage"
25subtitle: "Homer"
26logo: "assets/homer.png"
27# Alternatively a fa icon can be provided:
28# icon: "fas fa-skull-crossbones"
29
30# Optional message
31message:
32 # url: "https://<my-api-endpoint>" # Can fetch information from an endpoint to override value below.
33 style: "is-warning"
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/"
42 target: '_blank' # optionnal html a tag target attribute
43 - name: "Wiki"
44 icon: "fa-book"
45 url: "https://wiki.xxxxxx.com/"
46
47# Services
48# First level array represent a group.
49# Leave only a "items" key if not using group (group name, icon & tagstyle are optional, section separation will not be displayed).
50services:
51 - name: "DevOps"
52 icon: "fa-code-fork"
53 items:
54 - name: "Jenkins"
55 logo: "/assets/tools/jenkins.png"
56 # Alternatively a fa icon can be provided:
57 # icon: "fab fa-jenkins"
58 subtitle: "Continuous integration server"
59 tag: "CI"
60 url: "#"
61 target: '_blank' # optionnal html a tag target attribute
62 - name: "RabbitMQ Management"
63 logo: "/assets/tools/rabbitmq.png"
64 subtitle: "Manage & monitor RabbitMQ server"
65 tag: "haproxy"
66 # Optional tagstyle
67 tagstyle: "is-success"
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
92```
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)