apiVersion: v1 kind: ConfigMap metadata: namespace: emc name: stream-site-public-onion labels: app: nginx type: stream-site stream: public-onion data: torrc: | ## Set DataDirectory DataDirectory /var/lib/tor ## Do not act as a SOCKS proxy SOCKSPort 0 ## Publish a hidden service HiddenServiceDir /srv/onion_service/ HiddenServicePort 80 127.0.0.1:8080 HiddenServiceNonAnonymousMode 1 HiddenServiceSingleHopMode 1 nginx.conf: | worker_processes 4; pid /srv/nginx.pid; error_log /dev/stderr notice; events { worker_connections 768; # multi_accept on; } http { sendfile on; tcp_nopush on; tcp_nodelay on; keepalive_timeout 65; types_hash_max_size 2048; server_names_hash_bucket_size 64; include /etc/nginx/mime.types; default_type application/octet-stream; access_log /dev/null; server { listen 127.0.0.1:8080 default_server; server_name _; root /srv/www; location /js/config.js { alias /srv/config/config.js; } } } config.js: | var config = {"resolutions": {"1080p25": {"width": 1920, "height": 1080, "rate": "25/1"}, "720p25": {"width": 1280, "height": 720, "rate": "25/1"}, "480p25": {"width": 854, "height": 480, "rate": "25/1"}, "360p25": {"width": 640, "height": 360, "rate": "25/1"}, "240p25": {"width": 426, "height": 240, "rate": "25/1"}}, "profiles": {"full": {"video": "1080p25", "audio": 160}, "high": {"video": "720p25", "audio": 160}, "medium": {"video": "480p25", "audio": 128}, "low": {"video": "360p25", "audio": 96}, "mini": {"video": "240p25", "audio": 64}, "rec": {"video": "1080p25", "audio": 0}}, "muxes": {"av-orig": {"video": "sdi-orig:video", "audio": "sdi-orig:audio", "formats": {"flash": ["high", "medium", "low", "mini"], "webm": ["high", "medium", "low", "mini"]}}, "audio-orig": {"audio": "sdi-orig:audio", "formats": {"ogg": ["high", "medium", "low", "mini"], "mp3": ["high", "medium", "low", "mini"]}}}, "streamBaseUrl": "http://elevatexfonbiisp.onion:8000"};