commit | ef18a48d23e7fcaef501166b0766680519846272 | [log] [tgz] |
---|---|---|
author | Deepak Kodihalli <dkodihal@in.ibm.com> | Mon Jul 30 03:41:43 2018 -0500 |
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | Tue Aug 21 19:30:29 2018 +0000 |
tree | f1cf207f04249e254d778469b328724856ebea36 | |
parent | ed734e8c838ce77fd01aa8e9d54f47145b828f37 [diff] [blame] |
webui: serve via nginx Serve the mostly pre-compressed static webui content via nginx. If nginx can't find a static file, proxy the URI back to the rest server. A follow-up commit will remove code that serves webui from the phosphor-rest-server. Tested: - The webui, rest server and bmcweb seem to be working as before. - curl -H "Accept-Encoding: gzip" https://<witherspoon>/foo.html is served compressed content. - curl https://<witherspoon>/foo.html is served uncompressed content. Change-Id: Ice443f00a467f3558f28d697261df4f23278f420 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
diff --git a/meta-openbmc-machines/meta-openpower/meta-ibm/recipes-httpd/nginx/nginx_%.bbappend b/meta-openbmc-machines/meta-openpower/meta-ibm/recipes-httpd/nginx/nginx_%.bbappend index 8a58341..8eb7e40 100644 --- a/meta-openbmc-machines/meta-openpower/meta-ibm/recipes-httpd/nginx/nginx_%.bbappend +++ b/meta-openbmc-machines/meta-openpower/meta-ibm/recipes-httpd/nginx/nginx_%.bbappend
@@ -9,7 +9,7 @@ file://gen-cert.sh \ " -EXTRA_OECONF =+ " --without-select_module" +EXTRA_OECONF =+ " --without-select_module --with-http_gunzip_module" SSLCERTPATH = "/etc/ssl/certs/nginx/"