<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>It's not possible for just put wok.conf in /etc/nginx. There is
      not statement in nginx.conf that includes /etc/nginx/*conf files.
      <br>
      <br>
      We can do it, if we add this statement to nginx.conf. Here is the
      includes statement:<br>
    </p>
    <p>ramonn@jarvis:/etc/nginx$ cat nginx.conf | grep include<br>
      include /usr/share/nginx/modules/*.conf;<br>
          include             /etc/nginx/mime.types;<br>
          # See <a class="moz-txt-link-freetext" href="http://nginx.org/en/docs/ngx_core_module.html#include">http://nginx.org/en/docs/ngx_core_module.html#include</a><br>
          include /etc/nginx/conf.d/*.conf;<br>
              include /etc/nginx/default.d/*.conf;<br>
      #        include /etc/nginx/default.d/*.conf;<br>
      <br>
      My system (fedora 24) has conf.d and default.d, but opensuse does
      not have both.<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 09/27/2016 04:24 PM, Daniel Henrique
      Barboza wrote:<br>
    </div>
    <blockquote
      cite="mid:4a2d7180-ad42-db5b-8d82-5f6f928d4667@gmail.com"
      type="cite">I don't like this solution of adding the 'conf.d' dir
      if it doesn't exist. We shouldn't
      <br>
      tamper with other packages dir structure.
      <br>
      <br>
      An acceptable solution would be to use the /etc/nginx/conf.d dir
      if it exists, otherwise
      <br>
      use /etc/nginx .
      <br>
      <br>
      I also want to point out that this bug is preventing WoK from
      working at all in
      <br>
      Opensuse 42.1. Hardcode freeze for the release is tomorrow. I
      advise to send
      <br>
      a v2 and get it upstream ASAP
      <br>
      <br>
      On 09/27/2016 03:52 PM, Aline Manera wrote:
      <br>
      <blockquote type="cite">
        <br>
        <br>
        On 09/26/2016 01:17 PM, Ramon Medeiros wrote:
        <br>
        <blockquote type="cite">
          <br>
          <br>
          On 09/22/2016 09:00 AM, Aline Manera wrote:
          <br>
          <blockquote type="cite">Hi Ramon,
            <br>
            <br>
            On 09/21/2016 02:58 PM, Ramon Medeiros wrote:
            <br>
            <blockquote type="cite">Create dir if not exist
              <br>
            </blockquote>
            <br>
            Is it the recommendation from nginx?
            <br>
            I mean, this directory should be installed by nginx and if
            it is not maybe there is a better directory (already
            installed by nginx) to place configuration files.
            <br>
            <br>
            Also, doing that, the system will keep the directory on
            package removal.
            <br>
          </blockquote>
          Nop,
          <br>
          <br>
          just remove the rpm and the file is still there
          <br>
        </blockquote>
        <br>
        And we don't want it, right?
        <br>
        <br>
        <blockquote type="cite">
          <blockquote type="cite">
            <br>
            <blockquote type="cite">
              <br>
              Signed-off-by: Ramon Medeiros
              <a class="moz-txt-link-rfc2396E" href="mailto:ramonn@linux.vnet.ibm.com">&lt;ramonn@linux.vnet.ibm.com&gt;</a>
              <br>
              ---
              <br>
                src/wok/proxy.py | 5 +++++
              <br>
                1 file changed, 5 insertions(+)
              <br>
              <br>
              diff --git a/src/wok/proxy.py b/src/wok/proxy.py
              <br>
              index b68b86e..4b06fc2 100644
              <br>
              --- a/src/wok/proxy.py
              <br>
              +++ b/src/wok/proxy.py
              <br>
              @@ -116,6 +116,11 @@ def _create_proxy_config(options):
              <br>
                    # SSL certifications.
              <br>
                    if not paths.installed:
              <br>
                        dst = os.path.join(paths.sys_nginx_conf_dir,
              "wok.conf")
              <br>
              +
              <br>
              +        # directoy does not exist: create it
              <br>
              +        if not os.path.exists(paths.sys_nginx_conf_dir):
              <br>
              +            os.makedirs(paths.sys_nginx_conf_dir)
              <br>
              +
              <br>
                        if os.path.isfile(dst) or os.path.islink(dst):
              <br>
                            os.remove(dst)
              <br>
                        os.symlink(os.path.join(nginx_config_dir,
              "wok.conf"), dst)
              <br>
            </blockquote>
            <br>
          </blockquote>
          <br>
        </blockquote>
        <br>
        _______________________________________________
        <br>
        Kimchi-devel mailing list
        <br>
        <a class="moz-txt-link-abbreviated" href="mailto:Kimchi-devel@ovirt.org">Kimchi-devel@ovirt.org</a>
        <br>
        <a class="moz-txt-link-freetext" href="http://lists.ovirt.org/mailman/listinfo/kimchi-devel">http://lists.ovirt.org/mailman/listinfo/kimchi-devel</a>
        <br>
      </blockquote>
      <br>
      _______________________________________________
      <br>
      Kimchi-devel mailing list
      <br>
      <a class="moz-txt-link-abbreviated" href="mailto:Kimchi-devel@ovirt.org">Kimchi-devel@ovirt.org</a>
      <br>
      <a class="moz-txt-link-freetext" href="http://lists.ovirt.org/mailman/listinfo/kimchi-devel">http://lists.ovirt.org/mailman/listinfo/kimchi-devel</a>
      <br>
      <br>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 

Ramon Nunes Medeiros
Kimchi Developer
Linux Technology Center Brazil
IBM Systems &amp; Technology Group
Phone : +55 19 2132 7878
<a class="moz-txt-link-abbreviated" href="mailto:ramonn@br.ibm.com">ramonn@br.ibm.com</a> </pre>
  </body>
</html>