Browse Source

Use a markdown file as index page

The index now lists all webservice frontends.
remove-logs
Andreas Linz 3 years ago
parent
commit
8dcdc24a51
4 changed files with 14 additions and 11 deletions
  1. +1
    -0
      roles/caddy/templates/Caddyfile.tmpl
  2. +2
    -2
      roles/klingt.net/tasks/main.yml
  3. +0
    -9
      roles/klingt.net/templates/index.html.tmpl
  4. +11
    -0
      roles/klingt.net/templates/index.md.tmpl

+ 1
- 0
roles/caddy/templates/Caddyfile.tmpl View File

@ -8,6 +8,7 @@ www.{{ domain }}:80 {
www.{{ domain }}:443 {
import common.caddy
tls self_signed
markdown
root {{ web_root }}/{{ domain }}
}

+ 2
- 2
roles/klingt.net/tasks/main.yml View File

@ -6,7 +6,7 @@
become: true
- name: Create index page
template:
src: index.html.tmpl
src: index.md.tmpl
dest: "{{ web_root }}/{{ domain }}/index.html"
mode: 0644
become: true
become: true

+ 0
- 9
roles/klingt.net/templates/index.html.tmpl View File

@ -1,9 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head></head>
<body style="background-color: black; color: white;">
<div alt="I'll be back" style="width:100%;height:0;padding-bottom:53%;position:relative;">
<iframe src="https://giphy.com/embed/JDKxRN0Bvmm2c" width="100%" height="100%" style="position:absolute" frameBorder="0" class="giphy-embed" allowFullScreen></iframe>
</div>
</body>
</html>

+ 11
- 0
roles/klingt.net/templates/index.md.tmpl View File

@ -0,0 +1,11 @@
---
---
I'll be back.
- <https://files.{{ domain }}>
- <https://grafana.{{ domain }}>
- <https://prometheus.{{ domain }}>
- <https://pg.{{ domain }}>
- <https://git.{{ domain }}>
- <https://jupyter.{{ domain }}>

Loading…
Cancel
Save