Commit e7f4d773 authored by hark's avatar hark

museek

parent 724d1304
Pipeline #1245 failed with stage
......@@ -7,3 +7,6 @@
[submodule "streaming-media-stuff"]
path = streaming-media-stuff
url = https://git.puscii.nl/sms/streaming-media-stuff.git
[submodule "museek-docker"]
path = museek-docker
url = https://github.com/ultimate-pms/museek-docker.git
Subproject commit 09266168dd121ffc1f241fbf4d24eb0151525084
# same user as Apache
user www-data;
# most sources suggest 1 per core
worker_processes 2;
working_directory /var/www;
error_log /var/log/nginx/error.log;
pid /var/tmp/nginx.pid;
# worker_processes * worker_connections = maxclients
events {
worker_connections 256;
}
http {
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
sendfile on;
tcp_nopush on;
keepalive_timeout 65;
log_format cache '***$time_local '
'$upstream_cache_status '
'Cache-Control: $upstream_http_cache_control '
'Expires: $upstream_http_expires '
'"$request" ($status) '
'"$http_user_agent" ';
access_log /var/log/nginx/cache.log cache;
proxy_buffering on;
proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=edge-cache:10m inactive=20m max_size=1g;
proxy_temp_path /var/cache/nginx/tmp;
proxy_cache_lock on;
proxy_cache_use_stale updating;
proxy_bind 0.0.0.0;
proxy_cache_valid 200 302 10m;
proxy_cache_valid 301 1h;
proxy_cache_valid any 1m;
upstream origin {
server https://hlsorigindev.laglab.org;
keepalive 32;
}
server {
listen 0.0.0.0:80;
server_name edge.unified-streaming.com;
location / {
proxy_pass http://origin;
proxy_cache edge-cache;
proxy_http_version 1.1;
proxy_set_header Connection "";
add_header X-Cache-Status $upstream_cache_status;
add_header X-Handled-By $proxy_host;
}
location /server-status {
stub_status on;
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment