initial commit with docker-compose file and default configs
This commit is contained in:
25
nginx/conf.d/default.conf
Normal file
25
nginx/conf.d/default.conf
Normal file
@@ -0,0 +1,25 @@
|
||||
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 doesn’t know .opus by default → teach it:
|
||||
types { audio/opus opus; }
|
||||
|
||||
try_files $uri =404;
|
||||
}
|
||||
}
|
||||
}
|
15
nginx/html/index.html
Normal file
15
nginx/html/index.html
Normal file
@@ -0,0 +1,15 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>Hello from b.mindboost.team 🎉</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>🚀 Nginx inside Docker – it works!</h1>
|
||||
<p>
|
||||
Edit
|
||||
<code>nginx/html/index.html</code>
|
||||
and re-deploy to see changes.
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user