123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- lua_code_cache on;
- client_max_body_size 5m;
- client_body_buffer_size 256k;
- lua_package_path "/opt/wolf/agent/lua/?.lua;;";
- error_log /dev/stderr info;
- server {
- listen 12182;
- server_name localhost;
- #EXTENSION_CONFIG
- location /wolf/rbac {
- proxy_set_header Host $host;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header REMOTE-HOST $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header Accept-Encoding "";
- proxy_connect_timeout 10;
- proxy_send_timeout 10;
- proxy_read_timeout 10;
- proxy_buffer_size 256k;
- proxy_buffers 4 256k;
- proxy_busy_buffers_size 256k;
- proxy_temp_file_write_size 256k;
- proxy_max_temp_file_size 128m;
- proxy_pass http://127.0.0.1:12180;
- }
- # Clear the content-length of response
- header_filter_by_lua_file /opt/wolf/agent/lua/header_filter.lua;
- # filter, add infobar to the page
- body_filter_by_lua_file /opt/wolf/agent/lua/body_filter.lua;
- # proxy for application
- location / {
- # $appID,Must be an application ID that has been successfully added on the console
- set $appID unknow;
- # access check
- access_by_lua_file /opt/wolf/agent/lua/access_check.lua;
- #proxy_set_header Host $host;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header REMOTE-HOST $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header Accept-Encoding "";
- proxy_connect_timeout 10;
- proxy_send_timeout 10;
- proxy_read_timeout 10;
- proxy_buffer_size 256k;
- proxy_buffers 4 256k;
- proxy_busy_buffers_size 256k;
- proxy_temp_file_write_size 256k;
- proxy_max_temp_file_size 128m;
- # for test only
- proxy_ssl_verify off;
- # really url for the application
- proxy_pass http://127.0.0.1:12184;
- }
- }
|