Compare commits
3 commits
b91e8ab455
...
a2838d1068
| Author | SHA1 | Date | |
|---|---|---|---|
| a2838d1068 | |||
| 80484b0a32 | |||
| 5b29e1630b |
4 changed files with 30 additions and 16 deletions
|
|
@ -10,7 +10,7 @@
|
|||
<variable name="dns_is_only_local" type="boolean" description="DNS resolve only local address" hidden="True">
|
||||
<value>True</value>
|
||||
</variable>
|
||||
<variable name="dns_client_address" type="domainname" description="Nom de domaine du serveur DNS" supplier="LocalDNS" hidden="True"/>
|
||||
<variable name="dns_client_address" type="domainname" description="Nom de domaine du serveur DNS" supplier="LocalDNS" hidden="True" mandatory="True"/>
|
||||
<variable name="ip_dns" type="ip" description="Adresse IP du serveur DNS" hidden="True"/>
|
||||
</family>
|
||||
</variables>
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -12,9 +12,9 @@
|
|||
<variables>
|
||||
<family name="network" description="Réseau">
|
||||
<variable name="zones_list" mandatory="False" redefine="True"/>
|
||||
<variable name="outgoing_ports" redefine="True">
|
||||
<value>443</value>
|
||||
</variable>
|
||||
<variable name="first_zone_name" hidden="True"/>
|
||||
<variable name="outgoing_ports" redefine="True" mandatory="False"/>
|
||||
<variable name="dns_client_address" redefine="True" mandatory="False"/>
|
||||
</family>
|
||||
<family name="revprox">
|
||||
<variable name="revprox_client_server_domainname" redefine="True" mandatory="False"/>
|
||||
|
|
@ -25,12 +25,10 @@
|
|||
<variable name="revprox_client_location" redefine="True">
|
||||
<value>/.well-known/acme-challenge</value>
|
||||
</variable>
|
||||
<!--variable name="revprox_client_local_location" redefine="True">
|
||||
<value>/</value>
|
||||
</variable-->
|
||||
<variable name="revprox_http" redefine="True">
|
||||
<value>True</value>
|
||||
</variable>
|
||||
<variable name="revprox_client_web_address" redefine="True" mandatory="False"/>
|
||||
</family>
|
||||
<variable name="revprox_client_http" redefine='True'>
|
||||
<value>True</value>
|
||||
|
|
@ -40,4 +38,20 @@
|
|||
</variable>
|
||||
</family>
|
||||
</variables>
|
||||
<constraints>
|
||||
<fill name="calc_value">
|
||||
<param type="variable" optional="True">domain_name_eth0</param>
|
||||
<param type="nil"/>
|
||||
<param name="first" type="boolean">True</param>
|
||||
<target>first_zone_name</target>
|
||||
</fill>
|
||||
<fill name="calc_value">
|
||||
<param type="nil"/>
|
||||
<param name="default">443</param>
|
||||
<param name="condition" type="variable">first_zone_name</param>
|
||||
<param name="expected" type="nil"/>
|
||||
<param name="multi">True</param>
|
||||
<target>outgoing_ports</target>
|
||||
</fill>
|
||||
</constraints>
|
||||
</rougail>
|
||||
|
|
|
|||
Loading…
Reference in a new issue