forked from stove/dataset
revprox only if eth0 exists (for tls server)
This commit is contained in:
parent
5b29e1630b
commit
80484b0a32
2 changed files with 9 additions and 9 deletions
|
@ -20,7 +20,7 @@
|
|||
</variable>
|
||||
<variable name="revprox_client_max_body_size" description="Taille maximum du corps" supplier="ReverseProxy:max_body_size"/>
|
||||
<variable name="revprox_client_local_location" type="filename" hidden='True'/>
|
||||
<variable name="revprox_client_web_address" type="web_address" hidden='True' supplier="ReverseProxy:url"/>
|
||||
<variable name="revprox_client_web_address" type="web_address" hidden='True' supplier="ReverseProxy:url" mandatory="True"/>
|
||||
<variable name="revprox_http" type="boolean" hidden='True' supplier="ReverseProxy:http">
|
||||
<value>False</value>
|
||||
</variable>
|
||||
|
@ -43,10 +43,10 @@
|
|||
<target>revprox_client_server_ip</target>
|
||||
</fill>
|
||||
<fill name="calc_web_address">
|
||||
<param type="variable">domain_name_eth0</param>
|
||||
<param type="variable">revprox_client_port</param>
|
||||
<param type="variable">revprox_client_local_location</param>
|
||||
<param type="variable">revprox_client_http</param>
|
||||
<param type="variable" name="domain_name" optional="True">domain_name_eth0</param>
|
||||
<param type="variable" name="port">revprox_client_port</param>
|
||||
<param type="variable" name="local_location">revprox_client_local_location</param>
|
||||
<param type="variable" name="http">revprox_client_http</param>
|
||||
<target>revprox_client_web_address</target>
|
||||
</fill>
|
||||
</constraints>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
def calc_web_address(domain_name: str,
|
||||
port: str,
|
||||
local_location: str,
|
||||
http: bool,
|
||||
def calc_web_address(domain_name: str=None,
|
||||
port: str=None,
|
||||
local_location: str=None,
|
||||
http: bool=None,
|
||||
) -> str:
|
||||
if not domain_name or not port:
|
||||
return
|
||||
|
|
Loading…
Reference in a new issue