first commit

This commit is contained in:
micialware committed 2026-10-09 22:15:22 +03:00
commit 865786f210
16 files changed
+743

No files matched your search

+30
View File
@@ -0,0 +1,30 @@
# vv.micialware.ru — красивая обертка вместо autoindex
# Положить в /etc/nginx/conf.d/vv.conf (замени пути под себя)
upstream vv_ext { server 127.0.0.1:8000; }
server {
listen 80;
server_name vv.micialware.ru;
# фронт (index.html, app.js, style.css)
location / {
root /var/www/vv_ext;
try_files $uri $uri/ /index.html;
}
# видео раздает nginx напрямую, Python не трогаем
location /videos/ {
alias /var/www/vv/;
autoindex off;
expires 30d;
add_header Accept-Ranges bytes;
# докачка/перемотка работают из коробки через Range
}
# API -> Flask
location /api/ {
proxy_pass http://vv_ext;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $remote_addr;
}
}