<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<br>
<div class="moz-cite-prefix">On 10/31/2016 01:54 PM, Aline Manera
wrote:<br>
</div>
<blockquote
cite="mid:f54bfa75-bf54-c205-2516-4e9f2321f185@linux.vnet.ibm.com"
type="cite">
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
Hi Ramon,<br>
<br>
<div class="moz-cite-prefix">On 10/26/2016 03:27 PM, Ramon
Medeiros wrote:<br>
</div>
<blockquote
cite="mid:ffee51b5-a9ff-a8f7-f145-cfd8f324c117@linux.vnet.ibm.com"
type="cite">
<meta http-equiv="content-type" content="text/html;
charset=windows-1252">
<p>Propose:<br>
<br>
</p>
Do not regenerate wok.conf at nginx at startup of wok.<br>
<br>
Questions:<br>
<br>
1) The wok.conf will be generated at make ? And then copied at
make rpm?<br>
</blockquote>
<br>
It will follow the same approach of the logrotate file.<br>
There will be a nginx/wok.conf on source code that would be copy
as-is to /etc/nginx/conf.d on wok installation.<br>
<br>
Today, when Wok starts up, the SSL certificate is generated and
the path is used by nginx/wok.conf<br>
<br>
ssl_certificate
${cert_pem}; <br>
ssl_certificate_key ${cert_key}; <br>
<br>
You will need to have this path set as default and on package
installation, probably on post installation section, those 2 files
should be generated (or install empty files and let wok generated
the certificate on start up ?)<br>
<br>
We also need to think when running wokd from source code. The
nginx/wok.conf will point to a specific path and on start up the
certificate will be generated?<br>
<br>
<blockquote
cite="mid:ffee51b5-a9ff-a8f7-f145-cfd8f324c117@linux.vnet.ibm.com"
type="cite"> <br>
2) If using make to generate it, how development run (when
running from git), will work? The developer must copy wok.conf
to nginx directory?<br>
<br>
</blockquote>
<br>
You can identify if wok is running from a installed system or not
and if not create a syslink to /etc/nginx/conf.d<br>
<br>
<blockquote
cite="mid:ffee51b5-a9ff-a8f7-f145-cfd8f324c117@linux.vnet.ibm.com"
type="cite"> 3) The [server] configuration at wok.conf will be
removed? letting to the user to change parameters?<br>
</blockquote>
<br>
Most of the [server] configuration will be removed.<br>
<br>
We have today is:<br>
<tt><br>
</tt><tt>[server]</tt><tt><br>
</tt><tt><font color="#cc0000"># Hostname or IP address to listen
on<br>
#host = 0.0.0.0<br>
<br>
# Port to listen on<br>
#port = 8000<br>
<br>
# Start an SSL-enabled server on the given port<br>
#ssl_port = 8001<br>
<br>
# Allow user disables HTTP port. In that case, all the
connections<br>
# will be done directly through HTTPS port (values:
true|false)<br>
#https_only = false<br>
</font></tt><tt><br>
</tt><tt># Cherrypy server port</tt><tt><br>
</tt><tt>#cherrypy_port = 8010</tt><tt><br>
</tt><tt><br>
</tt><tt><font color="#cc0000"># Port for websocket proxy to
listen on<br>
#websockets_port = 64667<br>
<br>
# Number of minutes that a session can remain idle before the
server<br>
# terminates it automatically.<br>
#session_timeout = 10<br>
<br>
# The full path to an SSL Certificate or chain of certificates
in<br>
# PEM format. When a chain is used, the server's certificate
must be<br>
# the first certificate in the file with the chain
concatenated into<br>
# the end of that certificate. If left unspecified, Wok will
generate<br>
# a self-signed certificate automatically.<br>
#ssl_cert =<br>
<br>
# The corresponding private key in PEM format for the SSL
Certificate supplied<br>
# above. If left blank, Wok will generate a self-signed
certificate.<br>
#ssl_key =</font></tt><tt><br>
</tt><tt><br>
</tt><tt># Running environment of the server</tt><tt><br>
</tt><tt>#environment = production</tt><tt><br>
</tt><tt><br>
</tt><tt><font color="#cc0000"># Max request body size in KB,
default value is 4GB<br>
#max_body_size = 4 * 1024 * 1024</font></tt><tt><br>
</tt><tt><br>
</tt><tt># Wok server root. Set the following variable to
configure any relative path to</tt><tt><br>
</tt><tt># the server. For example, to have Wok pointing to <a
moz-do-not-send="true" class="moz-txt-link-freetext"
href="https://localhost:8001/wok/">https://localhost:8001/wok/</a></tt><tt><br>
</tt><tt># uncomment the following:</tt><tt><br>
</tt><tt>#server_root=/wok</tt><br>
<br>
All the red parameters should be removed and keep those in black.<br>
<br>
It implies in remove all the occurrences on code about parameters
that will be removed.<br>
<br>
</blockquote>
<br>
Please, also add a comment on server_root parameter informing user,
he/she will need to update the nginx/wok.conf file if this value is
changed too.<br>
<br>
And do not forget to update the man page docs/kimchid.8.in<br>
<br>
<blockquote
cite="mid:f54bfa75-bf54-c205-2516-4e9f2321f185@linux.vnet.ibm.com"
type="cite">
<blockquote
cite="mid:ffee51b5-a9ff-a8f7-f145-cfd8f324c117@linux.vnet.ibm.com"
type="cite">
<pre class="moz-signature" cols="72">--
Ramon Nunes Medeiros
Kimchi Developer
Linux Technology Center Brazil
IBM Systems & Technology Group
Phone : +55 19 2132 7878
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:ramonn@br.ibm.com">ramonn@br.ibm.com</a> </pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Kimchi-devel mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Kimchi-devel@ovirt.org">Kimchi-devel@ovirt.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.ovirt.org/mailman/listinfo/kimchi-devel">http://lists.ovirt.org/mailman/listinfo/kimchi-devel</a>
</pre>
</blockquote>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Kimchi-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Kimchi-devel@ovirt.org">Kimchi-devel@ovirt.org</a>
<a class="moz-txt-link-freetext" href="http://lists.ovirt.org/mailman/listinfo/kimchi-devel">http://lists.ovirt.org/mailman/listinfo/kimchi-devel</a>
</pre>
</blockquote>
<br>
</body>
</html>