[irc] Configure nginx for the lounge

Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
certbot_on_virtu
Yohann D'ANELLO 2021-02-22 14:43:36 +01:00 committed by ynerant
parent c3d58d9ca9
commit 70a78d06d1
2 changed files with 25 additions and 0 deletions

View File

@ -2,3 +2,19 @@
interfaces: interfaces:
adm: ens18 adm: ens18
srv: ens19 srv: ens19
loc_certbot:
domains: "irc.crans.org"
loc_nginx:
service_name: "thelounge"
servers:
- server_name:
- "irc.crans.org"
- "irc"
ssl: true
locations:
- filter: "^~ /web/"
params:
- "proxy_pass http://localhost:9000/"
- "include \"/etc/nginx/snippets/options-proxypass.conf\""

9
plays/irc.yml 100755
View File

@ -0,0 +1,9 @@
#!/usr/bin/env ansible-playbook
---
- hosts: irc
vars:
certbot: '{{ glob_certbot | default({}) | combine(loc_certbot | default({})) }}'
nginx: '{{ glob_nginx | default({}) | combine(loc_nginx | default({})) }}'
roles:
- certbot
- nginx