From 82f520c1105c18c5e68adbcb1554e42d31d31a2b Mon Sep 17 00:00:00 2001 From: Alison Watson Date: Sun, 20 Jun 2021 07:54:43 -0600 Subject: [PATCH] misc networking crap --- network/mpd.conf | 11 +++++++++++ network/nginx.conf | 26 ++++++++++++++++++++++++-- 2 files changed, 35 insertions(+), 2 deletions(-) diff --git a/network/mpd.conf b/network/mpd.conf index bf5ec25..6553155 100644 --- a/network/mpd.conf +++ b/network/mpd.conf @@ -22,3 +22,14 @@ audio_output { path "~/.config/mpd/fifo" } + +audio_output { + type "httpd" + name "mpdhttpd" + encoder "opus" + port "8069" + quality "5.0" + format "44100:16:1" + always_on "yes" + tags "yes" +} diff --git a/network/nginx.conf b/network/nginx.conf index 774152c..fc7644b 100644 --- a/network/nginx.conf +++ b/network/nginx.conf @@ -1,9 +1,22 @@ +load_module /usr/local/lib/ngx_rtmp_module.so; worker_processes 1; events { worker_connections 1024; } +rtmp { + server { + listen 1935; + chunk_size 4096; + + application live { + live on; + record off; + } + } +} + http { disable_symlinks off; @@ -21,16 +34,25 @@ http { server { listen 80; server_name heavenisin.space; - index index.html index.htm; + index index.html; include common.conf; - root /var/www/pub_http/; + root /var/www/heavenisin.space/; location /temp { alias /tmp/hosting/; } } + server { + listen 80; + server_name bussyslayer69.gay; + index index.html; + + include common.conf; + root /var/www/bussyslayer69.gay/; + } + server { listen 81; listen [::]:81;