mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-31 18:11:54 +08:00
using https with self-signed cert
This commit is contained in:
@@ -10,13 +10,20 @@ events {
|
||||
}
|
||||
|
||||
http {
|
||||
access_log off;
|
||||
|
||||
include /etc/nginx/mime.types;
|
||||
default_type application/octet-stream;
|
||||
charset utf-8;
|
||||
|
||||
sendfile on;
|
||||
keepalive_timeout 10;
|
||||
# gzip on;
|
||||
|
||||
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;
|
||||
|
||||
upstream kvmd {
|
||||
server localhost:8081 fail_timeout=0s max_fails=0;
|
||||
@@ -27,18 +34,9 @@ http {
|
||||
}
|
||||
|
||||
server {
|
||||
# access_log /tmp/nginx.access.log;
|
||||
access_log off;
|
||||
|
||||
listen 8080;
|
||||
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 /web;
|
||||
index index.html;
|
||||
|
||||
Reference in New Issue
Block a user