مراية لـ
https://github.com/postalserver/postal.git
تم المزامنة 2025-11-30 21:32:30 +00:00
refactor: remove the fast server
هذا الالتزام موجود في:
@@ -28,5 +28,9 @@ module Postal
|
||||
|
||||
# Disable field_with_errors
|
||||
config.action_view.field_error_proc = Proc.new { |t, i| t }
|
||||
|
||||
# Load the tracking server middleware
|
||||
require 'postal/tracking_middleware'
|
||||
config.middleware.use Postal::TrackingMiddleware
|
||||
end
|
||||
end
|
||||
|
||||
@@ -10,10 +10,6 @@ module Clockwork
|
||||
SendNotificationsJob.queue(:main)
|
||||
end
|
||||
|
||||
every 15.minutes, 'every-15-minutes', :at => ['**:00', '**:15', '**:30', '**:45'] do
|
||||
RenewTrackCertificatesJob.queue(:main)
|
||||
end
|
||||
|
||||
every 1.hour, 'every-hour', :at => ['**:15'] do
|
||||
CheckAllDNSJob.queue(:main)
|
||||
ExpireHeldMessagesJob.queue(:main)
|
||||
|
||||
@@ -21,20 +21,6 @@ web_server:
|
||||
port: 5000
|
||||
max_threads: 5
|
||||
|
||||
fast_server:
|
||||
enabled: false
|
||||
bind_address:
|
||||
# Set appropriate IP addresses to listen on. These should be dedicated IP
|
||||
# addresses just used for this server. You should list IPv4 and IPv6 addresses
|
||||
# as appropriate.
|
||||
# - 1.2.3.4
|
||||
# - abcd:a:b:c:d::1
|
||||
port: 80
|
||||
ssl_port: 443
|
||||
proxy_protocol: false
|
||||
default_private_key_path: # Defaults to config/fast_server.key
|
||||
default_tls_certificate_path: # Defaults to config/fast_server.cert
|
||||
|
||||
main_db:
|
||||
host: 127.0.0.1
|
||||
port: 3306
|
||||
|
||||
@@ -1,17 +0,0 @@
|
||||
require_relative '../lib/postal/config'
|
||||
threads_count = Postal.config.fast_server&.max_threads&.to_i || 5
|
||||
threads threads_count, threads_count
|
||||
bind_address = Postal.config.fast_server&.bind_address || '127.0.0.1'
|
||||
bind_port = Postal.config.fast_server&.port&.to_i || 5010
|
||||
bind "tcp://#{bind_address}:#{bind_port}"
|
||||
environment Postal.config.rails&.environment || 'development'
|
||||
prune_bundler
|
||||
quiet false
|
||||
rackup File.expand_path('../../lib/postal/fast_server/config.ru', __FILE__)
|
||||
unless ENV['LOG_TO_STDOUT']
|
||||
stdout_redirect Postal.app_root.join('log', 'puma.fast.log'), Postal.app_root.join('log', 'puma.fast.log'), true
|
||||
end
|
||||
|
||||
if ENV['APP_ROOT']
|
||||
directory ENV['APP_ROOT']
|
||||
end
|
||||
المرجع في مشكلة جديدة
حظر مستخدم