2022-03-08 19:42:28 +01:00
<?xml version='1.0' encoding='UTF-8'?>
<rougail version= "0.10" >
<services >
<service name= "nginx" manage= "False" >
2022-03-15 12:01:51 +01:00
<file file_type= "variable" source= "ca_InternalReverseProxy.crt" > revprox_ca_file</file>
2022-03-08 19:42:28 +01:00
<file file_type= "variable" source= "revprox.crt" > revprox_cert_file</file>
<file file_type= "variable" source= "revprox.key" owner_type= "variable" owner= "revprox_client_cert_owner" group_type= "variable" group= "revprox_client_cert_group" mode= "400" > revprox_key_file</file>
</service>
</services>
<variables >
<family name= "nginx" description= "Reverse proxy" >
<variable name= "revprox_client_server_domainname" type= "domainname" description= "Nom de domaine du serveur mandataire inverse" mandatory= 'True' />
<variable name= "revprox_client_server_ip" type= "ip" hidden= 'True' />
<variable name= "revprox_client_external_domainname" type= "domainname" description= "Nom de domaine exterieur du serveur" mandatory= 'True' provider= "external_domainname" />
2022-03-11 18:41:49 +01:00
<family name= "revprox_client" description= "Point d'entré des clients" leadership= "True" >
<variable name= "revprox_client_location" type= "filename" description= "Nom de l'arborescence racine du site" mandatory= "True" multi= "True" >
<value > /</value>
</variable>
<variable name= "revprox_client_is_websocket" type= "boolean" description= "Le point d'entré est de types websocket" mandatory= "True" >
<value > False</value>
</variable>
</family>
2022-03-08 19:42:28 +01:00
<variable name= "revprox_client_local_location" type= "filename" description= "Nom de l'arborescene racine du site localement" hidden= 'True' />
<variable name= "revprox_client_web_address" type= "web_address" description= "Nom de domaine du client du mandataire inverse" hidden= 'True' />
<variable name= "revprox_client_port" type= "port" description= "Port du client du mandataire inverse" hidden= 'True' >
<value > 443</value>
</variable>
<variable name= "revprox_client_cert_owner" type= "unix_user" description= "Reverse proxy certificate owner" >
<value > root</value>
</variable>
<variable name= "revprox_client_cert_group" type= "unix_user" description= "Reverse proxy certificate group" >
<value > root</value>
</variable>
<variable name= "revprox_ca_file" type= "filename" description= "Reverse proxy CA filename" hidden= "True" />
<variable name= "revprox_cert_file" type= "filename" description= "Reverse proxy certificate filename" hidden= "True" />
<variable name= "revprox_key_file" type= "filename" description= "Reverse proxy private key filename" hidden= "True" />
</family>
</variables>
<constraints >
<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>
<target > revprox_client_web_address</target>
</fill>
<fill name= "calc_value" >
<param type= "variable" > tls_ca_directory</param>
2022-03-15 12:01:51 +01:00
<param > ca_InternalReverseProxy.crt</param>
2022-03-08 19:42:28 +01:00
<param name= "join" > /</param>
<target > revprox_ca_file</target>
</fill>
<fill name= "calc_value" >
<param type= "variable" > tls_cert_directory</param>
<param > revprox.crt</param>
<param name= "join" > /</param>
<target > revprox_cert_file</target>
</fill>
<fill name= "calc_value" >
<param type= "variable" > tls_key_directory</param>
<param > revprox.key</param>
<param name= "join" > /</param>
<target > revprox_key_file</target>
</fill>
<fill name= "set_linked" >
<param name= "linked_server" type= "variable" > revprox_client_server_domainname</param>
2022-03-11 18:41:49 +01:00
<param name= "linked_provider" > revprox_clients</param>
2022-03-08 19:42:28 +01:00
<param name= "linked_value" type= "variable" > revprox_client_external_domainname</param>
<param name= "linked_returns" > ip</param>
<param name= "dynamic" > 0</param>
<target > revprox_client_server_ip</target>
</fill>
<check name= "set_linked_configuration" >
<param name= "linked_server" type= "variable" > revprox_client_server_domainname</param>
2022-03-11 18:41:49 +01:00
<param name= "linked_provider" > revprox_location</param>
2022-03-08 19:42:28 +01:00
<param name= "dynamic" type= "variable" > revprox_client_external_domainname</param>
<target > revprox_client_location</target>
</check>
<check name= "set_linked_configuration" >
<param name= "linked_server" type= "variable" > revprox_client_server_domainname</param>
2022-03-11 18:41:49 +01:00
<param name= "linked_provider" > revprox_is_websocket</param>
<param name= "dynamic" type= "variable" > revprox_client_external_domainname</param>
2022-03-11 19:55:02 +01:00
<param name= "leader_provider" > revprox_location</param>
<param name= "leader_value" type= "variable" > revprox_client_location</param>
2022-03-11 18:41:49 +01:00
<target > revprox_client_is_websocket</target>
</check>
<check name= "set_linked_configuration" >
<param name= "linked_server" type= "variable" > revprox_client_server_domainname</param>
<param name= "linked_provider" > revprox_url</param>
<param name= "leader_provider" > revprox_location</param>
2022-03-08 19:42:28 +01:00
<param name= "leader_value" type= "variable" > revprox_client_location</param>
<param name= "dynamic" type= "variable" > revprox_client_external_domainname</param>
<target > revprox_client_web_address</target>
</check>
</constraints>
</rougail>