Add CI workflow, admin frontend, Prometheus/Grafana monitoring, Cloudflare cache rules and worker, Nginx config, CONTRIBUTING.md and update docker-compose.yml

This commit is contained in:
zwitschi committed 2026-08-02 16:50:46 +02:00
1 parent 15a2aaa1a1
commit 15043cb4d1
8 files changed
+314

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
FROM nginx:alpine
COPY nginx.conf /etc/nginx/nginx.conf
# Create directories for HLS and frontend
RUN mkdir -p /usr/share/nginx/html/hls /usr/share/nginx/html/admin
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
+40
View File
@@ -0,0 +1,40 @@
events {
worker_connections 1024;
}
http {
server {
listen 80;
server_name localhost;
root /usr/share/nginx/html;
index index.html;
# Serve static frontend
location / {
try_files $uri $uri/ /index.html;
}
# Proxy chat WebSocket
location /ws {
proxy_pass http://chat:3000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
}
# Serve HLS from playout (with cache headers for Cloudflare)
location /hls/ {
alias /usr/share/nginx/html/hls/;
add_header Cache-Control "public, max-age=3600";
add_header Access-Control-Allow-Origin "*";
}
# Health checks
location /health {
return 200 "healthy";
add_header Content-Type text/plain;
}
}
}