1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100
|
# Phusion Passenger - https://www.phusionpassenger.com/
# Copyright (c) 2010-2013 Phusion
#
# "Phusion Passenger" is a trademark of Hongli Lai & Ninh Bui.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
module PhusionPassenger
UNION_STATION_CORE = "UNION_STATION_CORE".freeze
UNION_STATION_REQUEST_TRANSACTION = "UNION_STATION_REQUEST_TRANSACTION".freeze
PASSENGER_TXN_ID = "PASSENGER_TXN_ID".freeze
PASSENGER_APP_GROUP_NAME = "PASSENGER_APP_GROUP_NAME".freeze
PASSENGER_UNION_STATION_KEY = "UNION_STATION_KEY".freeze
RACK_HIJACK_IO = "rack.hijack_io".freeze
# Constants shared between the C++ and Ruby codebase. The C++ Constants.h
# is automatically generated by the build system from the following
# definitions.
module SharedConstants
# Default config values
DEFAULT_LOG_LEVEL = 0
DEFAULT_RUBY = "ruby"
DEFAULT_PYTHON = "python"
DEFAULT_NODEJS = "nodejs"
DEFAULT_MAX_POOL_SIZE = 6
DEFAULT_POOL_IDLE_TIME = 300
DEFAULT_START_TIMEOUT = 90_000
DEFAULT_WEB_APP_USER = "nobody"
DEFAULT_CONCURRENCY_MODEL = "process"
DEFAULT_STICKY_SESSIONS_COOKIE_NAME = "_passenger_route"
DEFAULT_THREAD_COUNT = 1
DEFAULT_ANALYTICS_LOG_USER = DEFAULT_WEB_APP_USER
DEFAULT_ANALYTICS_LOG_GROUP = ""
DEFAULT_ANALYTICS_LOG_PERMISSIONS = "u=rwx,g=rx,o=rx"
DEFAULT_UNION_STATION_GATEWAY_ADDRESS = "gateway.unionstationapp.com"
DEFAULT_UNION_STATION_GATEWAY_PORT = 443
# Size limits
MESSAGE_SERVER_MAX_USERNAME_SIZE = 100
MESSAGE_SERVER_MAX_PASSWORD_SIZE = 100
POOL_HELPER_THREAD_STACK_SIZE = 1024 * 256
# Time limits
PROCESS_SHUTDOWN_TIMEOUT = 60 # In seconds
PROCESS_SHUTDOWN_TIMEOUT_DISPLAY = "1 minute"
# Versions
PASSENGER_VERSION = PhusionPassenger::VERSION_STRING
SERVER_INSTANCE_DIR_STRUCTURE_MAJOR_VERSION = 1
SERVER_INSTANCE_DIR_STRUCTURE_MINOR_VERSION = 0
SERVER_INSTANCE_DIR_GENERATION_STRUCTURE_MAJOR_VERSION = 3
SERVER_INSTANCE_DIR_GENERATION_STRUCTURE_MINOR_VERSION = 0
# Misc
FEEDBACK_FD = 3
PROGRAM_NAME = "Phusion Passenger"
INDEX_DOC_URL = "https://www.phusionpassenger.com/documentation/Users%20guide.html"
APACHE2_DOC_URL = "https://www.phusionpassenger.com/documentation/Users%20guide%20Apache.html"
NGINX_DOC_URL = "https://www.phusionpassenger.com/documentation/Users%20guide%20Nginx.html"
STANDALONE_DOC_URL = "https://www.phusionpassenger.com/documentation/Users%20guide%20Standalone.html"
SUPPORT_URL = "https://www.phusionpassenger.com/documentation_and_support"
ENTERPRISE_URL = "https://www.phusionpassenger.com/enterprise"
DEB_MAIN_PACKAGE = "passenger"
DEB_DEV_PACKAGE = "passenger-dev"
DEB_APACHE_MODULE_PACKAGE = "libapache2-mod-passenger"
DEB_NGINX_PACKAGE = "nginx-extras"
RPM_MAIN_PACKAGE = "passenger"
RPM_DEV_PACKAGE = "passenger-devel"
RPM_APACHE_MODULE_PACKAGE = "mod_passenger"
RPM_NGINX_PACKAGE = "nginx"
STANDALONE_NGINX_CONFIGURE_OPTIONS =
"--with-cc-opt='-Wno-error' " <<
"--without-http_fastcgi_module " <<
"--without-http_scgi_module " <<
"--without-http_uwsgi_module " <<
"--with-http_gzip_static_module " <<
"--with-http_stub_status_module " <<
"--with-http_ssl_module"
end
SharedConstants.constants.each do |name|
const_set(name, SharedConstants.const_get(name)) unless const_defined? name
end
end
|