/srv/www/obs/api/config/environments/production.rb
来源:互联网 发布:梦里花落知多少文靖 编辑:程序博客网 时间:2024/06/02 00:12
# Settings specified here will take precedence over those in config/environment.rb
# The production environment is meant for finished, "live" apps.
# Code is not reloaded between requests
config.cache_classes = true
# Use a different logger for distributed setups
# config.logger = SyslogLogger.new
config.log_level = :info
# Full error reports are disabled and caching is turned on
config.action_controller.consider_all_requests_local = false
config.action_controller.perform_caching = true
# Enable serving of images, stylesheets, and javascripts from an asset server
# config.action_controller.asset_host = "http://assets.example.com"
# Disable delivery errors if you bad email addresses should just be ignored
# config.action_mailer.raise_delivery_errors = false
PROXY_AUTH_MODE = :off
LDAP_MODE = :on
# LDAP Servers separated by ':'.
# OVERRIDE with your company's ldap servers. Servers are picked randomly for
# each connection to distribute load.
LDAP_SERVERS = "ldap.turbolinux.com.cn"
# If you're using LDAP_AUTHENTICATE=:ldap then you should ensure that
# ldaps is used to transfer the credentials over SSL or use the StartTLS extension
LDAP_SSL = :off
# Use StartTLS extension of LDAP
LDAP_START_TLS = :off
# LDAP port defaults to 636 for ldaps and 389 for ldap and ldap with StartTLS
#LDAP_PORT=
# Authentication with Windows 2003 AD requires
LDAP_REFERRALS = :off
# Max number of times to attempt to contact the LDAP servers
LDAP_MAX_ATTEMPTS = 10
# OVERRIDE with your company's ldap search base for the users who will use OBS
LDAP_SEARCH_BASE = "dc=turbolinux,dc=com"
# Sam Account Name is the login name for LDAP
LDAP_SEARCH_ATTR = "uid"
# The attribute the users name is stored in
LDAP_NAME_ATTR="cn"
# The attribute the users email is stored in
LDAP_MAIL_ATTR="postOfficeBox"
# Credentials to use to search ldap for the username
LDAP_SEARCH_USER="cn=Manager,dc=turbolinux,dc=com"
LDAP_SEARCH_AUTH="123"
# By default any LDAP user can be used to authenticate to the OBS
# In some deployments this may be too broad and certain criteria should
# be met; eg group membership
#
# To allow only users in a specific group uncomment this line:
#LDAP_USER_FILTER="(memberof=CN=group,OU=Groups,DC=Domain Component)"
#
# Note this is joined to the normal selection like so:
# (&(#{LDAP_SEARCH_ATTR}=#{login})#{LDAP_USER_FILTER})
# giving an ldap search of:
# (&(sAMAccountName=#{login})(memberof=CN=group,OU=Groups,DC=Domain Component))
#
# Also note that openLDAP must be configured to use the memberOf overlay
# How to verify:
# :ldap = attempt to bind to ldap as user using supplied credentials
# :local = compare the credentials supplied with those in
# LDAP using LDAP_AUTH_ATTR & LDAP_AUTH_MECH
# LDAP_AUTH_MECH can be
# : md5
# : cleartext
LDAP_AUTHENTICATE=:local
LDAP_AUTH_ATTR="userPassword"
LDAP_AUTH_MECH=:md5
# Whether to update the user info to LDAP server, it does not take effect
# when LDAP_MODE is not set.
# Since adding new entry operation are more depend on your slapd db define, it might not
# compatiable with all LDAP server settings, you can use other LDAP client tools for your specific usage
LDAP_UPDATE_SUPPORT = :off
# ObjectClass, used for adding new entry
LDAP_OBJECT_CLASS = ['inetOrgPerson']
# Base dn for the new added entry
LDAP_ENTRY_BASE = "ou=Services,dc=turbolinux,dc=com"
# Does sn attribute required, it is a necessary attribute for most of people objectclass,
# used for adding new entry
LDAP_SN_ATTR_REQUIRED = :off
# Whether to search group info from ldap, it does not take effect
# when LDAP_GROUP_SUPPOR is not set.
# Please also set below LDAP_GROUP_* configs correctly to ensure the operation works properly
LDAP_GROUP_SUPPORT = :off
# OVERRIDE with your company's ldap search base for groups
LDAP_GROUP_SEARCH_BASE = "ou=Services,dc=turbolinux,dc=com"
# The attribute the group name is stored in
LDAP_GROUP_TITLE_ATTR = "cn"
# The value of the group objectclass attribute, leave it as "" if objectclass attr doesn't exist
LDAP_GROUP_OBJECTCLASS_ATTR = "Services"
# Perform the group_user search with the member attribute of group entry or memberof attribute of user entry
# It depends on your ldap define
# The attribute the group member is stored in
LDAP_GROUP_MEMBER_ATTR = "member"
# The attribute the user memberof is stored in
# LDAP_USER_MEMBEROF_ATTR = "memberof"
# Do not allow creating group via API to avoid the conflicts when LDAP_GROUP_SUPPORT is :on
# If you do want to import the group data from LDAP to OBS DB manuallly, please set if to :off
DISALLOW_GROUP_CREATION_WITH_API = :off
#SOURCE_HOST = "build.turboliux.com.cn"
SOURCE_HOST = "localhost"
SOURCE_PORT = 5352
SOURCE_PROTOCOL = "http"
EXTENDED_BACKEND_LOG = false
DOWNLOAD_URL='http://repo.turbolinux.com.cn'
#YMP_URL='http://software.opensuse.org/ymp'
require 'hermes'
Hermes::Config.setup do |hermesconf|
hermesconf.dbhost = 'localhost'
hermesconf.dbuser = 'root'
hermesconf.dbpass = 'turbolinux'
hermesconf.dbname = 'hermes'
end
# disabled on production for performance reasons
# RESPONSE_SCHEMA_VALIDATION = true
#require 'memory_debugger'
# dumps the objects after every request
#config.middleware.insert(0, MemoryDebugger)
#require 'memory_dumper'
# dumps the full heap after next request on SIGURG
#config.middleware.insert(0, MemoryDumper)
# The production environment is meant for finished, "live" apps.
# Code is not reloaded between requests
config.cache_classes = true
# Use a different logger for distributed setups
# config.logger = SyslogLogger.new
config.log_level = :info
# Full error reports are disabled and caching is turned on
config.action_controller.consider_all_requests_local = false
config.action_controller.perform_caching = true
# Enable serving of images, stylesheets, and javascripts from an asset server
# config.action_controller.asset_host = "http://assets.example.com"
# Disable delivery errors if you bad email addresses should just be ignored
# config.action_mailer.raise_delivery_errors = false
PROXY_AUTH_MODE = :off
LDAP_MODE = :on
# LDAP Servers separated by ':'.
# OVERRIDE with your company's ldap servers. Servers are picked randomly for
# each connection to distribute load.
LDAP_SERVERS = "ldap.turbolinux.com.cn"
# If you're using LDAP_AUTHENTICATE=:ldap then you should ensure that
# ldaps is used to transfer the credentials over SSL or use the StartTLS extension
LDAP_SSL = :off
# Use StartTLS extension of LDAP
LDAP_START_TLS = :off
# LDAP port defaults to 636 for ldaps and 389 for ldap and ldap with StartTLS
#LDAP_PORT=
# Authentication with Windows 2003 AD requires
LDAP_REFERRALS = :off
# Max number of times to attempt to contact the LDAP servers
LDAP_MAX_ATTEMPTS = 10
# OVERRIDE with your company's ldap search base for the users who will use OBS
LDAP_SEARCH_BASE = "dc=turbolinux,dc=com"
# Sam Account Name is the login name for LDAP
LDAP_SEARCH_ATTR = "uid"
# The attribute the users name is stored in
LDAP_NAME_ATTR="cn"
# The attribute the users email is stored in
LDAP_MAIL_ATTR="postOfficeBox"
# Credentials to use to search ldap for the username
LDAP_SEARCH_USER="cn=Manager,dc=turbolinux,dc=com"
LDAP_SEARCH_AUTH="123"
# By default any LDAP user can be used to authenticate to the OBS
# In some deployments this may be too broad and certain criteria should
# be met; eg group membership
#
# To allow only users in a specific group uncomment this line:
#LDAP_USER_FILTER="(memberof=CN=group,OU=Groups,DC=Domain Component)"
#
# Note this is joined to the normal selection like so:
# (&(#{LDAP_SEARCH_ATTR}=#{login})#{LDAP_USER_FILTER})
# giving an ldap search of:
# (&(sAMAccountName=#{login})(memberof=CN=group,OU=Groups,DC=Domain Component))
#
# Also note that openLDAP must be configured to use the memberOf overlay
# How to verify:
# :ldap = attempt to bind to ldap as user using supplied credentials
# :local = compare the credentials supplied with those in
# LDAP using LDAP_AUTH_ATTR & LDAP_AUTH_MECH
# LDAP_AUTH_MECH can be
# : md5
# : cleartext
LDAP_AUTHENTICATE=:local
LDAP_AUTH_ATTR="userPassword"
LDAP_AUTH_MECH=:md5
# Whether to update the user info to LDAP server, it does not take effect
# when LDAP_MODE is not set.
# Since adding new entry operation are more depend on your slapd db define, it might not
# compatiable with all LDAP server settings, you can use other LDAP client tools for your specific usage
LDAP_UPDATE_SUPPORT = :off
# ObjectClass, used for adding new entry
LDAP_OBJECT_CLASS = ['inetOrgPerson']
# Base dn for the new added entry
LDAP_ENTRY_BASE = "ou=Services,dc=turbolinux,dc=com"
# Does sn attribute required, it is a necessary attribute for most of people objectclass,
# used for adding new entry
LDAP_SN_ATTR_REQUIRED = :off
# Whether to search group info from ldap, it does not take effect
# when LDAP_GROUP_SUPPOR is not set.
# Please also set below LDAP_GROUP_* configs correctly to ensure the operation works properly
LDAP_GROUP_SUPPORT = :off
# OVERRIDE with your company's ldap search base for groups
LDAP_GROUP_SEARCH_BASE = "ou=Services,dc=turbolinux,dc=com"
# The attribute the group name is stored in
LDAP_GROUP_TITLE_ATTR = "cn"
# The value of the group objectclass attribute, leave it as "" if objectclass attr doesn't exist
LDAP_GROUP_OBJECTCLASS_ATTR = "Services"
# Perform the group_user search with the member attribute of group entry or memberof attribute of user entry
# It depends on your ldap define
# The attribute the group member is stored in
LDAP_GROUP_MEMBER_ATTR = "member"
# The attribute the user memberof is stored in
# LDAP_USER_MEMBEROF_ATTR = "memberof"
# Do not allow creating group via API to avoid the conflicts when LDAP_GROUP_SUPPORT is :on
# If you do want to import the group data from LDAP to OBS DB manuallly, please set if to :off
DISALLOW_GROUP_CREATION_WITH_API = :off
#SOURCE_HOST = "build.turboliux.com.cn"
SOURCE_HOST = "localhost"
SOURCE_PORT = 5352
SOURCE_PROTOCOL = "http"
EXTENDED_BACKEND_LOG = false
DOWNLOAD_URL='http://repo.turbolinux.com.cn'
#YMP_URL='http://software.opensuse.org/ymp'
require 'hermes'
Hermes::Config.setup do |hermesconf|
hermesconf.dbhost = 'localhost'
hermesconf.dbuser = 'root'
hermesconf.dbpass = 'turbolinux'
hermesconf.dbname = 'hermes'
end
# disabled on production for performance reasons
# RESPONSE_SCHEMA_VALIDATION = true
#require 'memory_debugger'
# dumps the objects after every request
#config.middleware.insert(0, MemoryDebugger)
#require 'memory_dumper'
# dumps the full heap after next request on SIGURG
#config.middleware.insert(0, MemoryDumper)
- /srv/www/obs/api/config/environments/production.rb
- /srv/www/obs/webui/config/environments/production.rb
- /srv/www/obs/api/config/database.yml
- /srv/www/obs/webui/config/database.yml
- Go: Best Practices for Production Environments
- compass项目配置文件config.rb
- compass项目配置文件config.rb
- fopen("http://www.baidu.com", "rb"); rb 模式的解释
- environments
- The Apache Tomcat Native library which allows optimal performance in production environments was not found
- 解决:The Apache Tomcat Native library which allows optimal performance in production environments was not found
- 解决:The Apache Tomcat Native library which allows optimal performance in production environments was not found
- 解决:The Apache Tomcat Native library which allows optimal performance in production environments was
- The Apache Tomcat Native library which allows optimal performance in production environments was not
- tomcat启动The Apache Tomcat Native library which allows optimal performance in production environments
- Apache Portable Runtime which allows optimal performance in production environments was not found
- 解决tomcat启动出现in production environments was not found on the java.library.path:xxx
- The Apache Tomcat Native library which allows optimal performance in production environments was not
- VHD装系统
- ubuntu下窗口最大化最小化关闭右边显示
- Objective-c中的委托
- /srv/www/obs/webui/config/environments/production.rb
- 向国内的程序员开炮
- /srv/www/obs/api/config/environments/production.rb
- 2012.6.15
- /usr/lib/obs/server/BSConfig.pm
- Junit4中Test Suite的用法
- count(1),count(*),order by 1,2,3,4 区别
- 多进程和多线程有什么区别
- 笔记本外显示器双显示器导致的某些软件显示不正确的问题
- CreateThread、_beginthreadex、AfxBeginThread
- 项目里的类无错误,但是项目名上打红X