Introduce mysqld socket stream forwarding with nginx for chroot jails
This commit is contained in:
@ -26,3 +26,6 @@ fastcgi_param SERVER_NAME $server_name;
|
||||
fastcgi_param REDIRECT_STATUS 200;
|
||||
# https://www.nginx.com/blog/mitigating-the-httpoxy-vulnerability-with-nginx/
|
||||
fastcgi_param HTTP_PROXY "";
|
||||
|
||||
#running in chroots
|
||||
fastcgi_param SCRIPT_FILENAME /www/$fastcgi_script_name;
|
||||
|
@ -100,3 +100,7 @@ http {
|
||||
|
||||
include /etc/nginx/sites-enabled/*;
|
||||
}
|
||||
|
||||
stream {
|
||||
include /etc/nginx/streams-enabled/*;
|
||||
}
|
||||
|
@ -18,5 +18,6 @@ SystemCallArchitectures=native
|
||||
BindPaths=/var/log/nginx/
|
||||
BindPaths=/var/lib/nginx/
|
||||
BindPaths=/var/run/
|
||||
BindPaths=/var/www/var/run/
|
||||
BindPaths=/run/
|
||||
InaccessiblePaths=/root/
|
||||
|
Reference in New Issue
Block a user