Static ip for clients and separate file server
This commit is contained in:
parent
654752bf42
commit
f422e49d1f
2 changed files with 17 additions and 4 deletions
14
README.md
14
README.md
|
@ -259,3 +259,17 @@ Block size
|
||||||
: 1024
|
: 1024
|
||||||
Delay, msec
|
Delay, msec
|
||||||
: 50
|
: 50
|
||||||
|
|
||||||
|
## Static file server
|
||||||
|
|
||||||
|
To prevent the hugveys from waiting for a suboptimal tornado server, static files can be fetched from a serparate lighttpd server.
|
||||||
|
|
||||||
|
Installed with `apt install lighttpd`.
|
||||||
|
|
||||||
|
In `/etc/lighttpd/lighttpd.conf` set port to `8889` and add an alias for the local dir:
|
||||||
|
|
||||||
|
```
|
||||||
|
alias.url = ("/local/" => "/home/hugvey/hugvey/local/")
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
events:
|
events:
|
||||||
cmd_address: "tcp://hugveycmd.local:5555"
|
cmd_address: "tcp://192.168.1.155:5555"
|
||||||
publish_address: "tcp://hugveycmd.local:5556"
|
publish_address: "tcp://192.168.1.155:5556"
|
||||||
remote_ip: "192.168.1.1" # for stuf not on the Hugvey network, set it to eg. 8.8.8.8
|
|
||||||
voice:
|
voice:
|
||||||
input_rate: 44100
|
input_rate: 44100
|
||||||
target_rate: 16000
|
target_rate: 16000
|
||||||
|
@ -12,5 +11,5 @@ voice:
|
||||||
output_mixer: 'PCM'
|
output_mixer: 'PCM'
|
||||||
input_volume: 100
|
input_volume: 100
|
||||||
output_volume: 60
|
output_volume: 60
|
||||||
file_address: "http://hugveycmd.local:8888"
|
file_address: "http://192.168.1.155:8889"
|
||||||
output_driver: pulseaudio
|
output_driver: pulseaudio
|
||||||
|
|
Loading…
Reference in a new issue