From 45098866e30be78d21a8ab347b2883510690c3e2 Mon Sep 17 00:00:00 2001 From: Salt Date: Tue, 24 Aug 2021 16:58:45 -0500 Subject: [PATCH] Add some stuff for MOVIE NIGHT WIT DA BOIS --- playbooks/prod_web.yml | 14 ++++++++++++++ playbooks/tasks/web/movienight.yml | 13 +++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 playbooks/tasks/web/movienight.yml diff --git a/playbooks/prod_web.yml b/playbooks/prod_web.yml index 05d9238..612941e 100755 --- a/playbooks/prod_web.yml +++ b/playbooks/prod_web.yml @@ -243,6 +243,19 @@ proxy_pass http://nagios:80; } } + server { + listen 443 ssl; + server_name movie.desu.ltd; + ssl_certificate /etc/letsencrypt/live/netbox.desu.ltd/fullchain.pem; + ssl_certificate_key /etc/letsencrypt/live/netbox.desu.ltd/privkey.pem; + ssl_trusted_certificate /etc/letsencrypt/live/netbox.desu.ltd/chain.pem; + ssl_dhparam /etc/letsencrypt/dhparams/dhparam.pem; + location / { + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_pass http://movienight:8089; + } + } tags: [ docker, ingress ] - name: include tasks for apps include_tasks: tasks/app/{{ task }} @@ -254,6 +267,7 @@ - name: include tasks for web services include_tasks: tasks/web/{{ task }} with_items: + - movienight.yml - netbox.yml - nagios.yml - ingress-generic.yml diff --git a/playbooks/tasks/web/movienight.yml b/playbooks/tasks/web/movienight.yml new file mode 100644 index 0000000..718d995 --- /dev/null +++ b/playbooks/tasks/web/movienight.yml @@ -0,0 +1,13 @@ +# vim:ft=ansible: +- name: docker deploy movienight + docker_container: + name: movienight + image: rehashedsalt/movienight:latest + ports: + - 1935:1935 + networks: + - name: web + aliases: [ "movienight" ] + volumes: + - /data/movienight/settings.json:/config/settings.json + tags: [ docker, movienight ]