mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 01:00:29 +08:00
using 127.0.0.1 instead of localhost
This commit is contained in:
parent
ab342111d0
commit
c65c710962
@ -1,6 +1,6 @@
|
||||
kvmd:
|
||||
server:
|
||||
host: localhost
|
||||
host: 127.0.0.1
|
||||
port: 8081
|
||||
heartbeat: 3.0
|
||||
|
||||
@ -59,7 +59,7 @@ kvmd:
|
||||
- "--encoder=omx"
|
||||
- "--quality={quality}"
|
||||
- "--dv-timings"
|
||||
- "--host=localhost"
|
||||
- "--host=127.0.0.1"
|
||||
- "--port=8082"
|
||||
- "--drop-same-frames=30"
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
kvmd:
|
||||
server:
|
||||
host: localhost
|
||||
host: 127.0.0.1
|
||||
port: 8081
|
||||
heartbeat: 3.0
|
||||
|
||||
@ -63,7 +63,7 @@ kvmd:
|
||||
- "--height=576"
|
||||
- "--fake-width=800"
|
||||
- "--fake-height=600"
|
||||
- "--host=localhost"
|
||||
- "--host=127.0.0.1"
|
||||
- "--port=8082"
|
||||
|
||||
logging:
|
||||
|
||||
@ -31,11 +31,11 @@ http {
|
||||
uwsgi_temp_path /tmp/nginx.uwsgi_temp;
|
||||
|
||||
upstream kvmd {
|
||||
server localhost:8081 fail_timeout=0s max_fails=0;
|
||||
server 127.0.0.1:8081 fail_timeout=0s max_fails=0;
|
||||
}
|
||||
|
||||
upstream ustreamer {
|
||||
server localhost:8082 fail_timeout=0s max_fails=0;
|
||||
server 127.0.0.1:8082 fail_timeout=0s max_fails=0;
|
||||
}
|
||||
|
||||
#PROD server {
|
||||
|
||||
@ -41,7 +41,7 @@ async def _run_client(loop: asyncio.AbstractEventLoop, url: str) -> None:
|
||||
|
||||
def main() -> None:
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument("-u", "--url", default="http://localhost:8081/ws")
|
||||
parser.add_argument("-u", "--url", default="http://127.0.0.1:8081/ws")
|
||||
options = parser.parse_args()
|
||||
|
||||
loop = asyncio.get_event_loop()
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
kvmd:
|
||||
server:
|
||||
host: localhost
|
||||
host: 127.0.0.1
|
||||
port: 8081
|
||||
heartbeat: 3.0
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user