Skip to content

Instantly share code, notes, and snippets.

@jll90
Last active December 24, 2020 02:24
Show Gist options
  • Save jll90/bde056d30b3be8342a1b62e772cbd5ca to your computer and use it in GitHub Desktop.
Save jll90/bde056d30b3be8342a1b62e772cbd5ca to your computer and use it in GitHub Desktop.
Lua Nginx Module Authorization nginx.conf
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;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment