root@learning:/etc/nginx# cat /etc/debian_version
bullseye/sid
oot@learning:/etc/nginx# cat /etc/nginx/nginx.conf
user www-data;
worker_processes auto;
pid /run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;
events {
worker_connections 768;
# multi_accept on;
}
stream {
server {
listen 25565 fastopen=3;
proxy_pass 1.1.1.1:25654;
proxy_protocol on;
}
}
root@learning:/etc/nginx# systemctl start nginx
root@learning:/etc/nginx# systemctl status nginx.service
● nginx.service - nginx - high performance web server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2022-08-20 20:51:08 UTC; 2s ago
Docs: https://nginx.org/en/docs/
Process: 52844 ExecStart=/usr/sbin/nginx -c /etc/nginx/nginx.conf (code=exited, status=0/SUCCESS)
Main PID: 52860 (nginx)
Tasks: 3 (limit: 2338)
Memory: 2.4M
CGroup: /system.slice/nginx.service
├─52860 nginx: master process /usr/sbin/nginx -c /etc/nginx/nginx.conf
├─52861 nginx: worker process
└─52862 nginx: worker process
Aug 20 20:51:08 learning systemd[1]: Starting nginx - high performance web server...
Aug 20 20:51:08 learning systemd[1]: nginx.service: Can't open PID file /run/nginx.pid (yet?) after start: Operation not permitted
Aug 20 20:51:08 learning systemd[1]: Started nginx - high performance web server.
root@learning:/etc/nginx# lsof -i -P -n | grep 25565
nginx 52860 root 6u IPv4 357693 0t0 TCP 127.0.0.1:25565 (LISTEN)
nginx 52861 www-data 6u IPv4 357693 0t0 TCP 127.0.0.1:25565 (LISTEN)
nginx 52862 www-data 6u IPv4 357693 0t0 TCP 127.0.0.1:25565 (LISTEN)
All you need is to define the adminer_object function which returns an object extending the basic Adminer class. Then just include the original adminer.php or editor.php: