[extensions-web/deploy] openshift: fixed nginx configuration
- From: Yuri Konotopov <ykonotopov src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [extensions-web/deploy] openshift: fixed nginx configuration
- Date: Sat, 15 Dec 2018 11:17:54 +0000 (UTC)
commit b26c52e81d620126d015d5157110ae85ab353492
Author: Yuri Konotopov <ykonotopov gnome org>
Date:   Sat Dec 15 15:17:45 2018 +0400
    openshift: fixed nginx configuration
 openshift/docker/nginx/nginx.conf | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/openshift/docker/nginx/nginx.conf b/openshift/docker/nginx/nginx.conf
index a539321..c2e9d27 100644
--- a/openshift/docker/nginx/nginx.conf
+++ b/openshift/docker/nginx/nginx.conf
@@ -54,11 +54,6 @@ http {
             access_log off;
         }
 
-        location ~* \.(jpg|jpeg|gif|png|ico|css|pdf|txt|bmp|js)$ {
-            access_log off;
-            expires 3d;
-        }
-
         location /health {
             access_log off;
             return 200 "alive";
@@ -69,6 +64,11 @@ http {
         }
 
         location /static/ {
+            location ~* \.(jpg|jpeg|gif|png|svg|ico|css|pdf|txt|bmp|js)$ {
+                access_log off;
+                expires 3d;
+            }
+
             alias /extensions-web/www/static-files/;
         }
 
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]