summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Flink <tflink@fedoraproject.org>2016-12-02 14:39:54 +0000
committerTim Flink <tflink@fedoraproject.org>2016-12-02 14:39:54 +0000
commit3554c799d63eb25d3b532e95e5e2772b88ee81c2 (patch)
treee24b4939a0c5a099d2cfa32d97a8a93cb6bf599e
parenta3bcfc15ae279e4ae08d94aa340fe78031409db3 (diff)
downloadansible-3554c799d63eb25d3b532e95e5e2772b88ee81c2.tar.gz
ansible-3554c799d63eb25d3b532e95e5e2772b88ee81c2.tar.xz
ansible-3554c799d63eb25d3b532e95e5e2772b88ee81c2.zip
adding preamble script to phab so that it behaves better with the proxies
-rw-r--r--roles/phabricator/files/phabricator-preable.php3
-rw-r--r--roles/phabricator/tasks/main.yml3
2 files changed, 6 insertions, 0 deletions
diff --git a/roles/phabricator/files/phabricator-preable.php b/roles/phabricator/files/phabricator-preable.php
new file mode 100644
index 000000000..22a8de77e
--- /dev/null
+++ b/roles/phabricator/files/phabricator-preable.php
@@ -0,0 +1,3 @@
+<?php
+
+$_SERVER['HTTPS'] = true;
diff --git a/roles/phabricator/tasks/main.yml b/roles/phabricator/tasks/main.yml
index 58510b53d..5ca90c466 100644
--- a/roles/phabricator/tasks/main.yml
+++ b/roles/phabricator/tasks/main.yml
@@ -111,6 +111,9 @@
notify:
- restart phd
+- name: copy phabricator preamble
+ file: src=phabricator-preamble.php dest={{ phabroot }}/phabricator/support/preamble.php owner=apache group=apache mode=0644
+
- name: copy phabricator custom login plugin
template: src=CustomLoginHandler.php.j2 dest={{ phabroot }}/phabricator/src/extensions/CustomLoginHandler.php owner=apache group=apache mode=0644
notify: