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