[irc] Configure nginx for the lounge
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>certbot_on_virtu
parent
c3d58d9ca9
commit
70a78d06d1
|
@ -2,3 +2,19 @@
|
|||
interfaces:
|
||||
adm: ens18
|
||||
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\""
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue