linux - started work on bunkerized-nginx command
This commit is contained in:
@@ -43,7 +43,7 @@ end
|
||||
|
||||
-- Load plugins
|
||||
ngx.shared.plugins_data:safe_set("plugins", nil, 0)
|
||||
local p = io.popen("find /plugins -maxdepth 1 -type d ! -path /plugins")
|
||||
local p = io.popen("find /opt/bunkerized-nginx/plugins -maxdepth 1 -type d ! -path /opt/bunkerized-nginx/plugins")
|
||||
for dir in p:lines() do
|
||||
-- read JSON
|
||||
local file = io.open(dir .. "/plugin.json")
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
location ~ ^/.well-known/acme-challenge/ {
|
||||
root /acme-challenge;
|
||||
root /opt/bunkerized-nginx/acme-challenge;
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ http {
|
||||
listen 0.0.0.0:%HTTP_PORT% default_server;
|
||||
server_name _;
|
||||
location ~ ^/.well-known/acme-challenge/ {
|
||||
root /acme-challenge;
|
||||
root /opt/bunkerized-nginx/acme-challenge;
|
||||
}
|
||||
%USE_API%
|
||||
location / {
|
||||
|
||||
@@ -78,7 +78,7 @@ http {
|
||||
port_in_redirect off;
|
||||
|
||||
# lua path and dicts
|
||||
lua_package_path "/usr/local/lib/lua/?.lua;/plugins/?.lua;;";
|
||||
lua_package_path "/usr/local/lib/lua/?.lua;/opt/bunkerized-nginx/plugins/?.lua;;";
|
||||
{% if has_value("USE_WHITELIST_IP", "yes") %}lua_shared_dict whitelist_ip_cache 10m;{% endif %}
|
||||
{% if has_value("USE_WHITELIST_REVERSE", "yes") %}lua_shared_dict whitelist_reverse_cache 10m;{% endif %}
|
||||
{% if has_value("USE_BLACKLIST_IP", "yes") %}lua_shared_dict blacklist_ip_cache 10m;{% endif %}
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
location ~ ^/.well-known/acme-challenge/ {
|
||||
root /acme-challenge;
|
||||
root /opt/bunkerized-nginx/acme-challenge;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user