mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 01:32:36 +02:00
30 seconds wait for screenshot (from 1 min)
This commit is contained in:
parent
6132875b6b
commit
1c98e591af
4 changed files with 4 additions and 4 deletions
|
@ -150,5 +150,5 @@ CSV.foreach("./files/country_codes.csv") do |row|
|
|||
end
|
||||
|
||||
gandi_opts = {}
|
||||
gandi_opts[:env] = :test unless ENV['RACK_ENV'] == 'production'
|
||||
gandi_opts[:env] = :test # unless ENV['RACK_ENV'] == 'production'
|
||||
$gandi = Gandi::Session.new $config['gandi_api_key'], gandi_opts
|
||||
|
|
|
@ -1446,7 +1446,7 @@ class Site < Sequel::Model
|
|||
purge_cache path
|
||||
|
||||
if pathname.extname.match HTML_REGEX
|
||||
ScreenshotWorker.perform_in 1.minute, values[:username], relative_path
|
||||
ScreenshotWorker.perform_in 30.seconds, values[:username], relative_path
|
||||
elsif pathname.extname.match IMAGE_REGEX
|
||||
ThumbnailWorker.perform_async values[:username], relative_path
|
||||
end
|
||||
|
|
|
@ -21,7 +21,7 @@ daemonize
|
|||
pidfile '/var/run/neocities/neocities.pid'
|
||||
stdout_redirect '/var/log/neocities/neocities.log', '/var/log/neocities/neocities-errors.log', true
|
||||
quiet
|
||||
workers processor_count
|
||||
workers 4
|
||||
worker_timeout 600
|
||||
preload_app!
|
||||
on_worker_boot { DB.disconnect }
|
||||
|
|
|
@ -21,7 +21,7 @@ Rainbows! do
|
|||
|
||||
client_max_body_size 100*1024*1024 # 100 Megabytes
|
||||
|
||||
worker_processes processor_count
|
||||
worker_processes 4
|
||||
worker_connections 32
|
||||
timeout 600 # 10 minutes
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue