Sfoglia il codice sorgente

Added Nginx image filter module for image resize support #611

Mark Shust 3 anni fa
parent
commit
d6426240df
3 ha cambiato i file con 5 aggiunte e 2 eliminazioni
  1. 1 1
      .github/workflows/build-nginx.yml
  2. 2 1
      README.md
  3. 2 0
      images/nginx/1.18/conf/nginx.conf

+ 1 - 1
.github/workflows/build-nginx.yml

@@ -31,4 +31,4 @@ jobs:
           push: true
           tags: |
             markoshust/magento-nginx:1.18
-            markoshust/magento-nginx:1.18-5
+            markoshust/magento-nginx:1.18-6

+ 2 - 1
README.md

@@ -29,7 +29,8 @@ View Dockerfiles:
 
 - [markoshust/magento-nginx (Docker Hub)](https://hub.docker.com/r/markoshust/magento-nginx/)
   - 1.18
-      - [`1.18`, `1.18-5`](https://github.com/markshust/docker-magento/tree/master/images/nginx/1.18)
+      - [`1.18`, `1.18-6`](https://github.com/markshust/docker-magento/tree/master/images/nginx/1.18)
+      - [`1.18-5`](https://github.com/markshust/docker-magento/tree/41.0.2/images/nginx/1.18)
       - [`1.18-4`](https://github.com/markshust/docker-magento/tree/39.1.0/images/nginx/1.18)
       - [`1.18-3`](https://github.com/markshust/docker-magento/tree/34.0.0/images/nginx/1.18)
       - [`1.18-2`](https://github.com/markshust/docker-magento/tree/33.0.0/images/nginx/1.18)

+ 2 - 0
images/nginx/1.18/conf/nginx.conf

@@ -4,6 +4,8 @@ worker_processes 2;
 error_log /var/log/nginx/error.log debug;
 pid /var/run/nginx.pid;
 
+load_module /etc/nginx/modules/ngx_http_image_filter_module.so;
+
 events {
   # this should be equal to value of "ulimit -n"
   # reference: https://www.digitalocean.com/community/tutorials/how-to-optimize-nginx-configuration