Last active
December 24, 2020 02:24
-
-
Save jll90/bde056d30b3be8342a1b62e772cbd5ca to your computer and use it in GitHub Desktop.
Lua Nginx Module Authorization nginx.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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