Add full project files

This commit is contained in:
root
2026-07-04 19:24:56 +03:30
parent d54f5441a3
commit b245e7b71a
835 changed files with 30149 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
# CDN — فقط HTTP (قبل از SSL)
# بعد از certbot فایل cdn.modstagram.com.conf را فعال کنید
proxy_cache_path /var/cache/nginx/cdn levels=1:2 keys_zone=cdn_cache:50m inactive=7d max_size=5g;
server {
listen 80;
server_name cdn.modstagram.com;
location /.well-known/acme-challenge/ {
root /var/www/certbot;
}
location /storage/ {
proxy_pass http://127.0.0.1:3002/storage/;
proxy_set_header Host api.modstagram.com;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_cache cdn_cache;
proxy_cache_valid 200 1h;
add_header X-Cache-Status $upstream_cache_status;
add_header Access-Control-Allow-Origin *;
}
location /health {
return 200 "cdn-ok";
add_header Content-Type text/plain;
}
}