move system

This commit is contained in:
Michael Rennecke
2019-05-09 22:11:44 +02:00
parent be03cabfa2
commit 4f3f2e3622
7 changed files with 35 additions and 33 deletions

View File

@@ -34,8 +34,3 @@ do
done
systemctl reload haproxy
# update jabber
cat /etc/letsencrypt/live/jabber.0rpheus.net/fullchain.pem > /etc/prosody/certs/jabber.0rpheus.net.crt
cat /etc/letsencrypt/live/jabber.0rpheus.net/privkey.pem > /etc/prosody/certs/jabber.0rpheus.net.key
systemctl restart prosody.service

View File

@@ -20,10 +20,14 @@
system: yes
create_home: no
- name: create config dir
- name: create directories
file:
path: /etc/haproxy/
path: "{{ item }}"
state: directory
with_items:
- /etc/haproxy/
- /etc/haproxy/certs/
- /var/lib/haproxy/
- name: copy errorcodes
copy:

View File

@@ -1,3 +1,3 @@
{% for domain in haproxy_backends %}
{% for domain in haproxy_domains %}
{{ domain }}
{% endfor %}

View File

@@ -54,7 +54,7 @@ defaults
frontend http
bind *:80 name http
bind *:443 name https ssl crt /etc/haproxy/certs/default.pem crt /etc/haproxy/certs/ ecdhe secp384r1 alpn h2,http/1.1 npn h2,http/1.1
bind *:443 name https ssl crt /etc/haproxy/certs/mail.0rpheus.net.pem crt /etc/haproxy/certs/ ecdhe secp384r1 alpn h2,http/1.1 npn h2,http/1.1
compression algo gzip
compression type text/html text/plain text/javascript application/javascript application/xml text/css

View File

@@ -1,3 +1,3 @@
{% for domain in haproxy_backends %}
{{- domain }} {{ domain }}
{% for domain in haproxy_domains %}
{{- domain }} {{ haproxy_domains[domain] }}
{% endfor %}