Files
mindboost-media-server/nginx/conf.d/default.conf

26 lines
713 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

server {
listen 80;
server_name localhost;
root /usr/share/nginx/html;
index index.html;
# --- STATIC WEB UI -------------------------------------------------------
location / {
try_files $uri $uri/ =404;
}
# --- MEDIA FILES ---------------------------------------------------------
# Anything with audio-ish extension gets correct MIME + long-term caching.
location ~ \.(opus|ogg|mp3|flac|wav)$ {
# 30-day client cache, tweak at will
add_header Cache-Control "public, max-age=2592000" always;
# nginx:1.27 doesnt know .opus by default → teach it:
types { audio/opus opus; }
try_files $uri =404;
}
}
}