add prosody config
[ansible.git] / roles / prosody / templates / apache-site.conf
diff --git a/roles/prosody/templates/apache-site.conf b/roles/prosody/templates/apache-site.conf
new file mode 100644 (file)
index 0000000..e54d558
--- /dev/null
@@ -0,0 +1,10 @@
+Use HTTP2HTTPS {{ prosody.host }}
+<VirtualHost *:443>
+    ServerName {{ prosody.host }}
+    Use SSL letsencrypt/live
+
+    # Reverse proxy configuration
+    ProxyPass /.well-known/acme-challenge/ !
+    ProxyPass / http://127.0.0.1:5280/
+    ProxyPassReverse / http://127.0.0.1:5280/
+</VirtualHost>