CR6Oct2020
<<<<<<<
<code> /etc/nginx/sites-enabled/cyclos add the line : proxy_set_header cyclos.header.remoteAddress $remote_addr; Cyclos 4 PRO Documentation13sending a new HTTP to Tomcat and forwarding the response to the client. Examples of suchproxies include Apache with mod_proxy, Nginx, haproxy and Amazon's Elastic Load Balancing.In either way, generally the proxy will have the server certificate and will terminate the SSLconnection with the client. The second request, to Tomcat, will generally use a plain HTTPconnection.That means the client IP address received by Cyclos, as well as the request URL are differentthan the original request performed by the client. As Cyclos uses the client IP for logging andblocking in case of abuse, this would lead Cyclos to block the proxy, preventing any furtherrequest. However, the proxy will add some extra request headers, with information aboutthe original request. Cyclos then needs to be configured to read both the IP address andwhich was the connection protocol used by the original request (HTTP or HTTPS) from thoseheaders, instead of directly from the incoming HTTP request. As such, the following settingsin cyclos.properties are needed:• cyclos.header.remoteAddress: Specifies the name of the header which contains the originalclient's IP address. The name of this header is usually X-Forwarded-For.• cyclos.header.protocol: Specifies the protocol name (http or https) used on the originalrequest. The name of this header is usually X-Forwarded-Proto. </code> => >>>>>>>
TODO : extraire la liste xml puis la convertir en json. Parser le fichier json avec le script python et appeler l'API pour créer les users. |