luizalabs / nginx-lua

armazenar o Dockerfile da imagem de nginx

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nginx Docker Image with suporte to Lua Scripts

Also the decompress.lua scritp to decompress a gzipped request

How To Use

Dockerfile

FROM luizalabs/nginx-lua:0.0.1

# Add your nginx conf
COPY ./nginx.conf /etc/nginx/nginx.conf

CMD ["nginx"]

Nginx.conf

error_log /dev/stdout info;

events {
  worker_connections 1024;
}

http {
  server {
    server_name my-server;

    location / {
      proxy_pass http://my-server:8000;

      # to compress responses
      gzip on;
      gzip_types text/plain application/json;

      # to decompress requests to backend
      set $max_chunk_size 10240;
      set $max_body_size 524288;
      rewrite_by_lua_file /etc/lua/decompress.lua;
    }
  }
}

daemon off;

About

armazenar o Dockerfile da imagem de nginx


Languages

Language:Lua 69.0%Language:Shell 15.8%Language:Dockerfile 15.3%