Download:
child 307:7f86cb18d285
parent 305:afe29fdf065f
306:6092d5a5668b
Anton Shestakov <av6@dwimlabs.net>, Thu, 28 Jun 2018 22:44:14 +0800
provision: consider BOSH secure (and don't set certificate for prosody)

3 файлов изменено, 6 вставок(+), 8 удалений(-) [+]
contrib/provision/roles/prosody/tasks/main.yml file | annotate | diff | comparison | revisions
contrib/provision/roles/tram-im/templates/etc/nginx/sites-available/tram-im file | annotate | diff | comparison | revisions
contrib/provision/roles/tram-im/templates/etc/prosody/conf.avail/tram-im.cfg.lua file | annotate | diff | comparison | revisions
--- a/contrib/provision/roles/prosody/tasks/main.yml Thu Jun 28 22:43:17 2018 +0800
+++ b/contrib/provision/roles/prosody/tasks/main.yml Thu Jun 28 22:44:14 2018 +0800
@@ -8,6 +8,7 @@
with_items:
- mercurial # for extra modules
- prosody
+ - lua-bitop
- lua-sec
tags: [packages]
--- a/contrib/provision/roles/tram-im/templates/etc/nginx/sites-available/tram-im Thu Jun 28 22:43:17 2018 +0800
+++ b/contrib/provision/roles/tram-im/templates/etc/nginx/sites-available/tram-im Thu Jun 28 22:44:14 2018 +0800
@@ -58,7 +58,7 @@
}
location /http-bind {
- proxy_pass https://127.0.0.1:5281/http-bind;
+ proxy_pass http://127.0.0.1:5280/http-bind;
proxy_set_header Host $host;
proxy_set_header X-Scheme $scheme;
proxy_set_header X-Forwarded-Proto $scheme;
--- a/contrib/provision/roles/tram-im/templates/etc/prosody/conf.avail/tram-im.cfg.lua Thu Jun 28 22:43:17 2018 +0800
+++ b/contrib/provision/roles/tram-im/templates/etc/prosody/conf.avail/tram-im.cfg.lua Thu Jun 28 22:44:14 2018 +0800
@@ -1,17 +1,14 @@
plugin_paths = { "/var/lib/prosody/extra-modules" }
-http_interfaces = { }
-https_interfaces = { "127.0.0.1" }
+http_interfaces = { "127.0.0.1" }
+https_interfaces = { }
+
+consider_bosh_secure = true
VirtualHost "{{ domain }}"
admins = { "{{ admin_jid }}" }
-ssl = {
- certificate = "{{ ssl_cert }}";
- key = "{{ ssl_key }}";
-}
-
modules_enabled = {
"bosh",
"register",