mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 01:00:29 +08:00
nginx hooks for future extensions
This commit is contained in:
parent
aeed3daac5
commit
bc88a49dcc
2
Makefile
2
Makefile
@ -5,7 +5,7 @@ TESTENV_LOOP ?= /dev/loop7
|
||||
TESTENV_CMD ?= /bin/bash -c " \
|
||||
(socat PTY,link=$(TESTENV_HID) PTY,link=/dev/ttyS11 &) \
|
||||
&& rm -rf /etc/nginx/* \
|
||||
&& cp /configs/nginx/* /etc/nginx \
|
||||
&& cp -r /configs/nginx/* /etc/nginx \
|
||||
&& nginx -c /etc/nginx/nginx.conf \
|
||||
&& ln -s $(TESTENV_VIDEO) /dev/kvmd-streamer \
|
||||
&& (losetup -d /dev/kvmd-msd || true) \
|
||||
|
||||
0
configs/nginx/ext.d/noop/http-ctx.conf
Normal file
0
configs/nginx/ext.d/noop/http-ctx.conf
Normal file
0
configs/nginx/ext.d/noop/main-ctx.conf
Normal file
0
configs/nginx/ext.d/noop/main-ctx.conf
Normal file
0
configs/nginx/ext.d/noop/server-ctx.conf
Normal file
0
configs/nginx/ext.d/noop/server-ctx.conf
Normal file
@ -6,6 +6,8 @@ worker_processes 4;
|
||||
# error_log /tmp/nginx.error.log;
|
||||
error_log /dev/null crit;
|
||||
|
||||
include /etc/nginx/ext.d/*/main-ctx.conf;
|
||||
|
||||
events {
|
||||
worker_connections 1024;
|
||||
use epoll;
|
||||
@ -38,6 +40,8 @@ http {
|
||||
server 127.0.0.1:8082 fail_timeout=0s max_fails=0;
|
||||
}
|
||||
|
||||
include /etc/nginx/ext.d/*/http-ctx.conf;
|
||||
|
||||
#PROD server {
|
||||
#PROD listen 80;
|
||||
#PROD server_name localhost;
|
||||
@ -133,5 +137,7 @@ http {
|
||||
proxy_buffering off;
|
||||
proxy_ignore_headers X-Accel-Buffering;
|
||||
}
|
||||
|
||||
include /etc/nginx/ext.d/*/server-ctx.conf;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user