Sindbad~EG File Manager
# o2switch OpenResty API
# Version for the Edge server = ipxtender
# The first API is the one backed by PHP that create all the vhosts
# The second API is just a small bit of lua code for /internal that's used to burst OpenResty Internal cache
server {
listen 445 ssl http2 default_server;
listen [::]:445 ssl http2 default_server;
server_name _;
root /opt/web/nginx/public;
# Internal lua API to manage Nginx internal stuff, like busting the SSL/Vhost cache
location /internal {
#lua_code_cache off;
default_type 'text/plain';
auth_basic "Restricted";
auth_basic_user_file /etc/nginx/openresty/.htpasswd;
access_by_lua_file 'conf/lua/api_nginx_internal.lua';
}
location / {
allow 109.234.160.0/21;
allow 185.154.136.0/21;
allow 10.0.0.0/8;
allow 212.47.251.247;
allow 82.64.127.72;
allow 51.158.99.101;
allow 212.47.239.147;
allow 127.0.0.1;
deny all;
try_files $uri /index.php$is_args$args;
}
location ~ ^/index\.php(/|$) {
fastcgi_pass unix:/var/run/php-fpm-nginx.sock;
fastcgi_split_path_info ^(.+\.php)(/.*)$;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
fastcgi_param DOCUMENT_ROOT $realpath_root;
internal;
}
}
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists