linux - started work on bunkerized-nginx command

This commit is contained in:
bunkerity
2021-06-22 21:19:12 +02:00
parent b448d91ca8
commit d0366fcc0d
10 changed files with 100 additions and 6 deletions

View File

@@ -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")

View File

@@ -1,3 +1,3 @@
location ~ ^/.well-known/acme-challenge/ {
root /acme-challenge;
root /opt/bunkerized-nginx/acme-challenge;
}

View File

@@ -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 / {

View File

@@ -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 %}

View File

@@ -1,3 +1,3 @@
location ~ ^/.well-known/acme-challenge/ {
root /acme-challenge;
root /opt/bunkerized-nginx/acme-challenge;
}