feat: import Sea vHost single-server testing release
This commit is contained in:
commit
248badd33e
441 files changed
+63221
No files matched your search
Executable
+25
@@ -0,0 +1,25 @@
|
||||
#!/usr/bin/env bash
|
||||
set +e
|
||||
|
||||
printf '%s\n' '=== services ==='
|
||||
systemctl show sea-vhost-agent sea-vhost-panel-broker sea-vhost-api -p Id -p ActiveState -p SubState -p MainPID -p ExecMainStatus --no-pager
|
||||
printf '%s\n' '=== listeners ==='
|
||||
ss -lntp | grep -E '(:80|:443|:8080)[[:space:]]' || true
|
||||
printf '%s\n' '=== API health ==='
|
||||
curl --silent --show-error --max-time 5 --write-out '\nhttp=%{http_code}\n' --header 'Host: host.ser888.cn' http://127.0.0.1:8080/healthz || true
|
||||
printf '%s\n' '=== HTTPS health ==='
|
||||
curl --silent --show-error --max-time 10 --write-out '\nhttp=%{http_code}\n' --resolve host.ser888.cn:443:127.0.0.1 https://host.ser888.cn/healthz || true
|
||||
printf '%s\n' '=== API journal ==='
|
||||
journalctl -u sea-vhost-api -n 25 --no-pager -o cat || true
|
||||
printf '%s\n' '=== Nginx config ==='
|
||||
/www/server/nginx/sbin/nginx -t 2>&1 || true
|
||||
printf '%s\n' '=== certificate ==='
|
||||
openssl x509 -in /www/server/panel/vhost/cert/host.ser888.cn/fullchain.pem -noout -subject -issuer -dates -checkhost host.ser888.cn 2>&1 || true
|
||||
openssl x509 -in /www/server/panel/vhost/cert/host.ser888.cn/fullchain.pem -noout -ext subjectAltName 2>&1 || true
|
||||
printf '%s\n' '=== FTPS synchronization ==='
|
||||
systemctl show sea-vhost-ftps-sync.service sea-vhost-ftps-sync.timer -p Id -p LoadState -p ActiveState -p SubState -p Result -p ExecMainStatus --no-pager 2>&1 || true
|
||||
journalctl -u sea-vhost-ftps-sync.service -n 15 --no-pager -o cat 2>&1 || true
|
||||
stat -Lc '%A %a %U:%G %n' /www/server/pure-ftpd/etc/pure-ftpd.pem 2>&1 || true
|
||||
openssl x509 -in /www/server/pure-ftpd/etc/pure-ftpd.pem -noout -subject -issuer -ext subjectAltName 2>&1 || true
|
||||
for ftp_pid in $(pgrep pure-ftpd 2>/dev/null || true); do printf 'pid=%s started=' "${ftp_pid}"; ps -o lstart= -p "${ftp_pid}"; printf 'cmd='; tr '\0' ' ' <"/proc/${ftp_pid}/cmdline"; printf '\n'; done
|
||||
timeout 15 openssl s_client -connect 127.0.0.1:21 -starttls ftp -servername sv0123456789.vhost.ser888.cn -verify_hostname sv0123456789.vhost.ser888.cn -verify_return_error </dev/null 2>&1 | tail -n 12 || true
|
||||
Reference in new issue
Block a user