Skip to content

Commit

Permalink
Added support for reverse proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
karser authored May 1, 2019
1 parent 14ea703 commit ecefcc3
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion ansible/templates/tomcat/conf/server.xml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,17 @@
<Connector executor="tomcatThreadPool"
port="{{ tomcat_port }}"
protocol="HTTP/1.1"
connectionTimeout="20000" />
connectionTimeout="20000"
{% if lookup('env', 'KILLBILL_TOMCAT_PROXY_NAME') %}
proxyName="{{ lookup('env', 'KILLBILL_TOMCAT_PROXY_NAME') }}""
{% endif %}
{% if lookup('env', 'KILLBILL_TOMCAT_PROXY_PORT') %}
proxyPort="{{ lookup('env', 'KILLBILL_TOMCAT_PROXY_PORT') }}""
{% endif %}
{% if lookup('env', 'KILLBILL_TOMCAT_SCHEME') %}
scheme="{{ lookup('env', 'KILLBILL_TOMCAT_SCHEME') }}""
{% endif %}
/>
<Engine name="Catalina" defaultHost="localhost">
<Host name="localhost"
Expand Down

0 comments on commit ecefcc3

Please sign in to comment.