projects
/
vpproxy.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Добавлена обработка заголовков запроса X-Forwarded...
[vpproxy.git]
/
vpconfig.py
diff --git
a/vpconfig.py
b/vpconfig.py
index 97d24fb1c5c99fb46d0ba7b42ec54d22ffbe8cb3..f26c8ee8b2c86d9633abf5a69f44d6752e72d279 100644
(file)
--- a/
vpconfig.py
+++ b/
vpconfig.py
@@
-8,7
+8,7
@@
import logging
class VPConfig():
# Message level (DEBUG, INFO, WARNING, ERROR, CRITICAL)
class VPConfig():
# Message level (DEBUG, INFO, WARNING, ERROR, CRITICAL)
- debug = logging.
INFO
+ debug = logging.
WARNING
# HTTP Server host
httphost = '0.0.0.0'
# HTTP Server port
# HTTP Server host
httphost = '0.0.0.0'
# HTTP Server port
@@
-39,7
+39,7
@@
class VPConfig():
# ----------------------------------------------------
#
# VLC cmd line (use `--file-logging --logfile=filepath` to write log)
# ----------------------------------------------------
#
# VLC cmd line (use `--file-logging --logfile=filepath` to write log)
- vlccmd = "
vlc -I telnet --clock-jitter 0 --network-caching 500 --sout-mux-caching 2000 --telnet-password admin --telnet-port 4212
"
+ vlccmd = "
cvlc -I telnet --clock-jitter 0 --network-caching 500 --sout-mux-caching 2000 --telnet-password admin --telnet-port 4212 --http-user-agent=\"SmartLabs/1.5.9\"
"
# VLC spawn timeout
# Adjust this if you get error 'Cannot spawn VLC!'
vlcspawntimeout = 15
# VLC spawn timeout
# Adjust this if you get error 'Cannot spawn VLC!'
vlcspawntimeout = 15
@@
-66,9
+66,9
@@
class VPConfig():
vlcforceffmpeg = False
# Delay before closing connection when client disconnects
# In seconds.
vlcforceffmpeg = False
# Delay before closing connection when client disconnects
# In seconds.
- videodestroydelay =
5
+ videodestroydelay =
30
# Pre-buffering timeout. In seconds.
# Pre-buffering timeout. In seconds.
- videotimeout =
30
+ videotimeout =
45
#
# Some video players (mostly STBs and Smart TVs) can generate dummy requests
# to detect MIME-type or something before playing.
#
# Some video players (mostly STBs and Smart TVs) can generate dummy requests
# to detect MIME-type or something before playing.