Skip to content

Instantly share code, notes, and snippets.

@jll90
Last active December 24, 2020 02:24

Revisions

  1. jll90 revised this gist Dec 24, 2020. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion nginx.conf
    Original file line number Diff line number Diff line change
    @@ -15,7 +15,6 @@ http {
    location / {
    access_by_lua_file lua/auth.lua;
    proxy_pass http://microservice:3000;
    # log_by_lua_file lua/request_logger.lua;
    }
    }
    }
  2. jll90 created this gist Dec 24, 2020.
    21 changes: 21 additions & 0 deletions nginx.conf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,21 @@
    user nginx;
    worker_processes auto;
    error_log /var/log/nginx/error.log;
    pid /run/nginx.pid;

    events {
    worker_connections 1024;
    }

    http {
    server {
    listen 80;
    server_name local.lua;

    location / {
    access_by_lua_file lua/auth.lua;
    proxy_pass http://microservice:3000;
    # log_by_lua_file lua/request_logger.lua;
    }
    }
    }