summaryrefslogtreecommitdiff
path: root/spreadspace
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2021-04-28 23:34:01 +0200
committerChristian Pointner <equinox@spreadspace.org>2021-04-28 23:34:01 +0200
commit262783925ff950e81304e4aba59d7a6bcfc19290 (patch)
tree0d86ea53a7c131f970448a5d2f9875b961e1f8fe /spreadspace
parentlndwrbl.live is no more - long live radiogloria.at (diff)
add nginx/vhost for radiogloria.at
Diffstat (limited to 'spreadspace')
-rw-r--r--spreadspace/sgg-icecast.yml31
1 files changed, 31 insertions, 0 deletions
diff --git a/spreadspace/sgg-icecast.yml b/spreadspace/sgg-icecast.yml
index 9a10dd4f..75d278d5 100644
--- a/spreadspace/sgg-icecast.yml
+++ b/spreadspace/sgg-icecast.yml
@@ -10,3 +10,34 @@
- role: kubernetes/base
- role: kubernetes/standalone/base
- role: streaming/icecast
+ - role: apt-repo/spreadspace
+ - role: acmetool/base
+ - role: nginx/base
+ - name: storage/lvm/volume
+ lvm_volume:
+ vg: "{{ host_name }}"
+ lv: www
+ size: 1G
+ fs: ext4
+ dest: /srv/www
+ post_tasks:
+ - name: create base directory for static www content
+ file:
+ path: /srv/www/radio
+ state: directory
+
+ - name: configure default vhost radiogloria.at
+ vars:
+ nginx_vhost:
+ default: yes
+ name: radio
+ template: static-files-with-acme
+ acme: yes
+ hostnames:
+ - radiogloria.at
+ locations:
+ '/':
+ root: /srv/www/radio
+ index: index.html
+ include_role:
+ name: nginx/vhost