Jump to content

xvids

Members
  • Posts

    87
  • Joined

  • Days Won

    3

xvids last won the day on January 9

xvids had the most liked content!

1 Follower

About xvids

  • Birthday 01/01/1992

Recent Profile Visitors

357 profile views

xvids's Achievements

Newbie

Newbie (1/14)

  • Dedicated Rare
  • First Post Rare
  • Collaborator Rare
  • Conversation Starter Rare
  • Week One Done

Recent Badges

14

Reputation

  1. Hello, How to count outgoing clicks for advertisement when no HTML, just some have JavaScript code.
  2. Hi, has anyone edited KVS code to transfer videos screenshots transfer to multiple server? I need it, If someone have, PATH: /contents/videos_screenshots/
  3. YouTube and Pornhub added, bot option when they delete a video, Reason text & Claimant.
  4. prefork PHP7.4 https://prnt.sc/194h874 Both Installed Nginx & Apache. Yes This maybe, in RAID, I think raid not configure well.
  5. Yes I have Installed HestiaCP with Nginx Apache, but not PHP-FPM, because If enable PHP-FPM then some errors with .htaccess, I don't remmeber that, maybe the issue is "Folder allows PHP execution" Yes by run TOP Its displaying, Nginx, youtube-dl, Apache, Yes looks normal,
  6. AJAX will take time as I tested, <script src="/static/js/main.js"></script> <script> window.onload=function(){ $("#result").load('/related_videos_html.php'); }; </script> This Option is not Possible.
  7. This feature I requested long time ago, and you added it. many thanks, the request was for SEO purpose, but when my tube was not popular in market, now I learn a new thing related to this feature, and the thing is that If some copyright holder requesting to remove their contents, they are also wanted to remove metadata and HTTP-410 for SEO, or they will submit their report to Google for remove from search, *This is just suggestion* Now in KVS should have two option, Mark delete + Real Deletion, is same, I think, because If I delete a video, and video_ID is 12345, then KVS is not gonna generate again this ID for video in future, am I right? Real deletion = means Its should not render 404 page, It just keep the URL, because 410 is better than 404 for SEO and L.A etc..., And Mark delete means Its should delete everything related to the video and header HTTP-410, just keep URL, I'm just trying to make fast the 404.php page, because I know, Its load last day on my website, me and user delete total 15 videos which is popular after that server L.A goes to 100-180, and I try to add same videos IDs but couldn't find any method. Currently I'm Using JavaScript and PHP for metadata and HTTP-410 Instead remove to hide, in Video View block <script type="text/javascript"> document.addEventListener("DOMContentLoaded", function(event) { document.getElementsByClassName("video-info")[0].style.visibility = "hidden"; document.getElementsByClassName("video-info")[0].style.height = "1px"; //document.getElementsByClassName("related-videos")[0].style.display = "none"; document.getElementsByClassName("social")[0].style.display = "none"; document.getElementsByTagName('h1')[0].style.display = 'none'; document.getElementsByTagName('title')[0].innerHTML = 'This Video was deleted'; }); </script> And in Header {{if $storage.video_view_video_view.status_id==5}} {{php}}header( "HTTP/1.1 410 Gone" );{{/php}} {{/if}} Sorry not Related video, just display some Videos list in player(embed player), when Video marked delete, Example: "domain.com/embed/12345/" someone embed a video from my website to their website, and the video I deleted from my website, then KVS just displaying a error page, here is the template code. so I just want to display some other Videos in Player, If the video is not visible then User can any other video from player:
  8. Just one feature request in this update, If possible please add, User Deleted video/album should stay at same URL , because If It was Popular then Its render 404 page which taking time, increase server load, All tube website don't show 404 page for all king of delete video. metadata should delete, but not URL. You can try at YouTube by changing IDs: https://www.youtube.com/watch?v=2fuowcx 2. How I can Display related video in embed Player, when 404 video not found. <html> <head> <title>{{$lang.error_404.title}}</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> </head> <body style="margin: 0; padding: 0; background: #000; color: #fff"> <div style="width: 100%; text-align: center; position: absolute; top: 49%">{{$lang.error_404.title}}</div> </body> </html>
  9. I have Ubuntu 20.04: I edited some Nginx and Apache config. Now L.A 5-6 because All time background task in process, But now Database on MariaDB is working Slow, Please suggest me some info for DB, I have seen many answer on Stackweb that convert MyIsam to Innodb, Intel Xeon-D 2141I - 8c/ 16t - 2.2GHz/ 3GHz Memory : 64GB Ubuntu: 20.04 [client] port=3306 socket=/var/run/mysqld/mysqld.sock [mysqld_safe] socket=/var/run/mysqld/mysqld.sock open_files_limit=4294967295 [mysqld] user=mysql pid-file=/var/run/mysqld/mysqld.pid socket=/var/run/mysqld/mysqld.sock port=3306 basedir=/usr datadir=/var/lib/mysql tmpdir=/tmp lc-messages-dir=/usr/share/mysql log_error=/var/log/mysql/error.log symbolic-links=0 local-infile=0 skip-name-resolve skip-external-locking key_buffer_size = 1024M max_allowed_packet = 1G thread_stack = 384K table_open_cache = 512 sort_buffer_size = 11M read_buffer_size = 21M read_rnd_buffer_size = 24M myisam_sort_buffer_size = 512M myisam_block_size = 5120 myisam_data_pointer_size = 7 key_cache_block_size = 8192 key_cache_division_limit = 60 key_cache_file_hash_size = 8192 key_cache_segments = 0 thread_cache_size = 256 query_cache_size= 300M query_cache_type = 1 query_cache_limit = 256K query_cache_min_res_unit = 2k tmp_table_size= 256M max_heap_table_size= 256M #innodb_use_native_aio = 0 innodb_file_per_table max_connections=2000 max_user_connections=500 wait_timeout=10 interactive_timeout=50 long_query_time=5 !includedir /etc/mysql/conf.d/ !includedir /etc/mysql/mariadb.conf.d/ Apache config: # Global configuration PidFile ${APACHE_PID_FILE} Timeout 40 KeepAlive On MaxKeepAliveRequests 3000 KeepAliveTimeout 5 <IfModule mpm_prefork_module> ServerLimit 256 StartServers 10 MinSpareServers 75 MaxSpareServers 256 MaxRequestWorkers 4500 MaxConnectionsPerChild 10000 </IfModule> <IfModule mpm_worker_module> ServerLimit 256 StartServers 10 MinSpareThreads 75 MaxSpareThreads 256 ThreadLimit 64 ThreadsPerChild 32 MaxRequestWorkers 4500 MaxConnectionsPerChild 10000 </IfModule> <IfModule mpm_event_module> StartServers 10 MinSpareThreads 75 MaxSpareThreads 256 ThreadLimit 64 ThreadsPerChild 32 MaxRequestWorkers 4500 MaxConnectionsPerChild 10000 </IfModule> Nginx config: # Server globals user www-data; worker_processes 24; worker_rlimit_nofile 65535; error_log /var/log/nginx/error.log; pid /var/run/nginx.pid; include /etc/nginx/modules-enabled/*.conf; # Worker config events { worker_connections 4096; use epoll; multi_accept off; accept_mutex off; } http { # Main settings sendfile on; aio threads; directio 8m; tcp_nopush on; tcp_nodelay on; client_header_timeout 180s; client_body_timeout 180s; client_header_buffer_size 2k; client_body_buffer_size 256k; client_max_body_size 256m; large_client_header_buffers 4 8k; send_timeout 60s; keepalive_timeout 60s; keepalive_requests 20000; reset_timedout_connection on; server_tokens off; server_name_in_redirect off; server_names_hash_max_size 512; server_names_hash_bucket_size 512; charset utf-8; # FastCGI settings fastcgi_buffers 4 256k; fastcgi_buffer_size 256k; fastcgi_busy_buffers_size 256k; fastcgi_temp_file_write_size 256k; fastcgi_connect_timeout 30s; fastcgi_read_timeout 300s; fastcgi_send_timeout 180s; fastcgi_cache_lock on; fastcgi_cache_lock_timeout 5s; fastcgi_cache_background_update on; fastcgi_cache_revalidate on; # Proxy settings proxy_redirect off; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_http_version 1.1; proxy_pass_header Set-Cookie; proxy_buffers 32 4k; proxy_connect_timeout 30s; proxy_read_timeout 300s; proxy_send_timeout 180s; # Log format log_format main '$remote_addr - $remote_user [$time_local] $request ' '"$status" $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"'; log_format bytes '$body_bytes_sent'; log_not_found off; access_log off; # Mime settings include /etc/nginx/mime.types; default_type application/octet-stream; # Compression gzip on; gzip_static on; gzip_vary on; gzip_comp_level 6; gzip_min_length 1024; gzip_buffers 16 8k; gzip_http_version 1.1; gzip_types text/plain text/css text/javascript text/js text/xml application/json application/javascript application/x-javascript application/xml application/xml+rss applicatio> gzip_proxied any; gzip_disable "MSIE [1-6]\."; # Cloudflare https://www.cloudflare.com/ips set_real_ip_from 103.21.244.0/22; # SSL PCI compliance ssl_session_cache shared:SSL:20m; ssl_session_timeout 60m; ssl_buffer_size 1400; ssl_protocols TLSv1.2 TLSv1.3; ssl_prefer_server_ciphers on; ssl_ciphers ssl_dhparam /etc/ssl/dhparam.pem; ssl_ecdh_curve secp384r1; ssl_session_tickets off; resolver 213.186.33.99 valid=300s ipv6=off; resolver_timeout 5s; # Error pages error_page 403 /error/404.html; error_page 404 /error/404.html; error_page 410 /error/410.html; error_page 500 501 502 503 504 505 /error/50x.html; # Proxy cache proxy_cache_path /var/cache/nginx levels=2 keys_zone=cache:10m inactive=60m max_size=1024m; proxy_cache_key "$host$request_uri $cookie_user"; proxy_temp_path /var/cache/nginx/temp; proxy_ignore_headers Expires Cache-Control; proxy_cache_use_stale error timeout invalid_header http_502; proxy_cache_valid any 1d; # FastCGI cache fastcgi_cache_path /var/cache/nginx/micro levels=1:2 keys_zone=microcache:10m max_size=1024m inactive=30m; fastcgi_cache_key "$scheme$request_method$host$request_uri"; fastcgi_cache_methods GET HEAD; fastcgi_cache_use_stale updating error timeout invalid_header http_500 http_503; fastcgi_ignore_headers Cache-Control Expires Set-Cookie; add_header X-FastCGI-Cache $upstream_cache_status; # Cache bypass map $http_cookie $no_cache { default 0; ~SESS 1; ~wordpress_logged_in 1; ~*remote_control.php 1; } # File cache (static assets) open_file_cache max=10000 inactive=30s; open_file_cache_valid 60s; open_file_cache_min_uses 2; open_file_cache_errors off; # Wildcard include include /etc/nginx/conf.d/*.conf; include /etc/nginx/conf.d/domains/*.conf; }
  10. Hi team, Any hope for the 2 missing features from Community, 1.) Private video Privacy for only me for only friends, 2.) Block access to a video for review no one can't watch until hear from Uploader that He has the right to upload, when received a copyright Flag,
  11. Memcache memory Increased to 2GB, Now??
  12. Yes you are right as I see in CloudFlare in 24h. 10million request, https://prnt.sc/1662m0v I want to block Bing bot, is this good Idea? If good, the please tell me how I can block Bing, because many DMCA bot using Bing API to scan websites, as I see many DMCA agents send Invalid URLs,
  13. yes LA 5-10 is OK but some time its goes too up 50-60, some tasks wake ffmpeg on local server, can I disable local server ffmpeg? I have configured 24h, but I think this will not able to clean for millions file, that's why I configure to 6h.
  14. https://prnt.sc/163rruc https://prnt.sc/163qq4b https://prnt.sc/163qvik
  15. Hi, I have - Active videos 370,000 Active albums: 50,000 Members: 14282 Traffic 250K daily Traffic: https://prnt.sc/163ffqw And Main Server: 2x Intel Xeon Silver 4214 - 12c/ 24t - 2.2GHz/ 3.2GHz Memory : 96GB 2x960 SSD 1Gbps And DB Server: Intel Xeon-D 2141I - 8c/ 16t - 2.2GHz/ 3GHz Memory : 64GB 2x500 SSD, 1Gbps But still getting errors and load much, Both Server LA: 5-10/ I need some suggestion guys. and my thoughts are remove unused JavaScript & CSS and load Page by Page with $smart If condition. Like: If a user on Video-list, load only video-list and header-footer codes, And move some grabbers from youtube-dl to only PHP, because youtube-dl is also taking CPU, & Memory. or Optimized tasks for parallel process, because Conversion is on Remote Server and Storage is also Remote Server, But I don't know much about $smarty, maybe after remove codes $smarty take place for the loads.
×
×
  • Create New...