mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-31 10:01:53 +08:00
os building environ
This commit is contained in:
51
os/kvm/nginx.conf
Normal file
51
os/kvm/nginx.conf
Normal file
@@ -0,0 +1,51 @@
|
||||
user http;
|
||||
worker_processes 4;
|
||||
|
||||
# error_log /tmp/nginx.error.log;
|
||||
error_log /dev/null crit;
|
||||
|
||||
events {
|
||||
worker_connections 64;
|
||||
use epoll;
|
||||
}
|
||||
|
||||
http {
|
||||
include mime.types;
|
||||
default_type application/octet-stream;
|
||||
charset utf-8;
|
||||
|
||||
sendfile on;
|
||||
keepalive_timeout 10;
|
||||
# gzip on;
|
||||
|
||||
server {
|
||||
# access_log /tmp/nginx.access.log;
|
||||
access_log off;
|
||||
|
||||
listen 80;
|
||||
server_name localhost;
|
||||
|
||||
client_body_temp_path /tmp/nginx.client_body_temp;
|
||||
fastcgi_temp_path /tmp/nginx.fastcgi_temp;
|
||||
proxy_temp_path /tmp/nginx.proxy_temp;
|
||||
scgi_temp_path /tmp/nginx.scgi_temp;
|
||||
uwsgi_temp_path /tmp/nginx.uwsgi_temp;
|
||||
|
||||
location / {
|
||||
root /srv/http;
|
||||
index index.html;
|
||||
}
|
||||
|
||||
location /video {
|
||||
rewrite /video/?(.*) /$1 break;
|
||||
proxy_pass http://localhost:8082;
|
||||
}
|
||||
|
||||
location /kvm/ws {
|
||||
rewrite /kvm/ws/?(.*) /ws break;
|
||||
proxy_pass http://localhost:8081;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user