Odoo(OpenERP)配置文件openerp-server.conf详解

谁借莪1个温暖的怀抱¢ 2022-07-31 16:21 362阅读 0赞
  1. [options]
  2. ; addons模块的查找路径
  3. addons_path = E:\GreenOdoo8.0\source\openerp\addons
  4. ; 管理员主控密码(用于创建、还原和备份数据库等操作)
  5. admin_passwd = admin
  6. ; 自动重载?
  7. auto_reload = None
  8. ; 用于导入导出的csv文件的默认分隔符
  9. csv_internal_sep = ,
  10. ; data目录, 用于存放session信息、附件
  11. data_dir = data
  12. ; 数据库主机名
  13. db_host = 127.0.0.1
  14. ; 数据库的最大连接数
  15. db_maxconn = 64
  16. ; 指定要使用的数据库名
  17. db_name = False
  18. ; 数据库用户密码
  19. db_password = openerp
  20. ; 数据库端口号
  21. db_port = 65432
  22. ; 创建新数据库时使用的数据库模板
  23. db_template = template1
  24. ; 数据库用户名
  25. db_user = openerp
  26. ; 过滤要显示的数据库名称
  27. dbfilter = .*
  28. ; 是否为调试模式
  29. debug_mode = False
  30. ; 哪些模块加载demo数据?
  31. demo = {}
  32. ; 用于发送邮件的邮箱地址
  33. email_from = False
  34. ; 在导入大量数据时使用这个选项, 如果在导入期间程序宕机, 你可以在当前状态下继续。指定一个存储中间导入状态的文件名。
  35. import_partial =
  36. ; 一个处理器允许使用的最大物理内存
  37. limit_memory_hard = None
  38. ; 一个处理器允许使用的最大虚拟内存
  39. limit_memory_soft = None
  40. ; 一个处理器接受的最大请求数
  41. limit_request = None
  42. ; 一个请求最多占用多少处理器时间
  43. limit_time_cpu = None
  44. ; 一个请求允许的最长实时时间
  45. limit_time_real = None
  46. ; 是否允许显示数据库列表
  47. list_db = True
  48. ; 是否将log写入dbir_logging
  49. log_db = False
  50. ; 可以是一组module:log_level对, 默认值是:INFO(表示所有模块的默认日志级别为INFO级别)
  51. log_handler = :INFO
  52. ; 日志的级别, 可选值包括debug_rpc_answer, debug_rpc, debug, debug_sql, info, warn, error, critical
  53. log_level = info
  54. ; 指定用来存储日志的文件
  55. logfile = openerp-server.log
  56. ; 是否按天存放日志
  57. logrotate = False
  58. ; 长连接池使用的端口号?
  59. longpolling_port = 8072
  60. ; 处理当前计划任务的最大线程数
  61. max_cron_threads = 2
  62. ; 强制保存在virtual osv_memory表中的记录的最长时间,以小时为单位
  63. osv_memory_age_limit = 1.0
  64. ; 强制一个virtual osv_memory表的最大记录数
  65. osv_memory_count_limit = False
  66. ; 数据库可执行文件的路径
  67. pg_path = runtime/pgsql/bin
  68. ; 存储服务器pid的文件名
  69. pidfile = None
  70. ; 是否使用反向代理模式
  71. proxy_mode = False
  72. ; 是否压缩报表
  73. reportgz = False
  74. ; 指定用于SSL连接的证书文件
  75. secure_cert_file = server.cert
  76. ; 指定用于SSL连接的主密钥文件
  77. secure_pkey_file = server.pkey
  78. ; server范围的模块,以逗号分隔
  79. server_wide_modules = None
  80. ; 发送邮件的SMTP用户密码
  81. smtp_password = False
  82. ; SMTP端口号
  83. smtp_port = 25
  84. ; SMTP服务器名
  85. smtp_server = localhost
  86. ; SMTP服务器是否支持SSL协议
  87. smtp_ssl = False
  88. ; 发送邮件的SMTP用户名
  89. smtp_user = False
  90. ; 是否把日志发送给系统日志服务器
  91. syslog = False
  92. ; 是否提交YAMLXML测试造成的数据库更改
  93. test_commit = False
  94. ; 是否允许YAML和单元测试
  95. test_enable = False
  96. ; YML测试文件
  97. test_file = False
  98. ; 报表的范例的存放位置
  99. test_report_directory = False
  100. ; 为系统提供一个参照的时区
  101. timezone = False
  102. ; 哪些模块可翻译, 默认为all
  103. translate_modules = ['all']
  104. ; 是否使用数据库的unaccent功能
  105. unaccent = False
  106. ; 在安装时哪些模块不加载演示数据
  107. without_demo = False
  108. ; 要使用的处理器数量
  109. workers = None
  110. ; 是否禁止使用XML-RPC协议
  111. xmlrpc = True
  112. ; 指定使用XML-RPC协议的IP地址,为空时表示绑定到现有IP
  113. xmlrpc_interface =
  114. ; XML-RPC协议使用的TCP端口
  115. xmlrpc_port = 8069
  116. ; 是否禁止使用XML-RPC安全协议
  117. xmlrpcs = True
  118. ; 指定使用XML-RPC安全协议的IP地址,为空时表示绑定到现有IP
  119. xmlrpcs_interface =
  120. ; XML-RPC安全协议使用的TCP端口
  121. xmlrpcs_port = 8071
  122. openerp-server.conf for OpenERP 7 explained
  123. ubuntuOE的配置文件默认在目录: /etc/openerp
  124. Here are the options that you can use in your openerp-server.conf file to tweak your OpenERP 7 installation.
  125. In one of my previous posts Install OpenERP 7.0 from trunk Ive written how to start your server with a start scrip just changing the ports and all other default settings. You can also start your server with a specified config file with -c command.
  126. ./server/openerp-server -c /path/to/openerp-server.conf
  127. Here is the config file spitted into parts for easy understanding.
  128. Server startup config Common options
  129. # Admin password for creating, restoring and backing up databases
  130. admin_passwd = admin
  131. # default CSV separator for import and export
  132. csv_internal_sep = ,
  133. # to compress reports
  134. reportgz = False
  135. # disable loading demo data for modules to be installed (comma-separated, use "all" for all modules)
  136. without_demo = False
  137. # Use this for big data importation, if it crashes you will be able to continue at the current state. Provide a filename to store intermediate importation states.
  138. import_partial =
  139. # file where the server pid will be stored
  140. pidfile = None
  141. # specify additional addons paths (separated by commas)
  142. addons_path = /full/path/to/addons
  143. # Comma-separated list of server-wide modules default=web
  144. server_wide_modules = None
  145. XML-RPC / HTTP XML-RPC Configuration
  146. # disable the XML-RPC protocol
  147. xmlrpc = True
  148. # Specify the TCP IP address for the XML-RPC protocol. The empty string binds to all interfaces.
  149. xmlrpc_interface =
  150. # specify the TCP port for the XML-RPC protocol
  151. xmlrpc_port = 8069
  152. # Enable correct behavior when behind a reverse proxy
  153. proxy_mode = False
  154. XML-RPC / HTTPS XML-RPC Secure Configuration
  155. # disable the XML-RPC Secure protocol
  156. xmlrpcs = True
  157. # Specify the TCP IP address for the XML-RPC Secure protocol. The empty string binds to all interfaces.
  158. xmlrpcs_interface =
  159. # specify the TCP port for the XML-RPC Secure protocol
  160. xmlrpcs_port = 8071
  161. # specify the certificate file for the SSL connection
  162. secure_cert_file = server.cert
  163. # specify the private key file for the SSL connection
  164. secure_pkey_file = server.pkey
  165. NET-RPC NET-RPC Configuration
  166. # enable the NETRPC protocol
  167. netrpc = False
  168. # specify the TCP IP address for the NETRPC protocol
  169. netrpc_interface =
  170. # specify the TCP port for the NETRPC protocol
  171. netrpc_port = 8070
  172. WEB Web interface Configuration
  173. # Filter listed database REGEXP
  174. dbfilter = .*
  175. Static HTTP Static HTTP service
  176. # enable static HTTP service for serving plain HTML files
  177. static_http_enable = False
  178. # specify the directory containing your static HTML files (e.g '/var/www/')
  179. static_http_document_root = None
  180. # specify the URL root prefix where you want web browsers to access your static HTML files (e.g '/')
  181. static_http_url_prefix = None
  182. Testing Group Testing Configuration
  183. # Launch a YML test file.
  184. test_file = False
  185. # If set, will save sample of all reports in this directory.
  186. test_report_directory = False
  187. # Enable YAML and unit tests.
  188. test_enable = False
  189. # Commit database changes performed by YAML or XML tests.
  190. test_commit = False
  191. Logging Group Logging Configuration
  192. # file where the server log will be stored
  193. logfile = None
  194. # do not rotate the logfile
  195. logrotate = True
  196. # Send the log to the syslog server
  197. syslog = False
  198. # setup a handler at LEVEL for a given PREFIX. An empty PREFIX indicates the root logger. This option can be repeated. Example: "openerp.ormEBUG" or "werkzeug:CRITICAL" (default: ":INFO")
  199. log_handler = [':INFO']
  200. # specify the level of the logging. Accepted values: info, debug_rpc, warn, test, critical, debug_sql, error, debug, debug_rpc_answer, notset
  201. log_level = info
  202. SMTP Group SMTP Configuration
  203. # specify the SMTP email address for sending email
  204. email_from = False
  205. # specify the SMTP server for sending email
  206. smtp_server = localhost
  207. # specify the SMTP port
  208. smtp_port = 25
  209. # specify the SMTP server support SSL or not
  210. smtp_ssl = False
  211. # specify the SMTP username for sending email
  212. smtp_user = False
  213. # specify the SMTP password for sending email
  214. smtp_password = False
  215. Database related options
  216. # specify the database name
  217. db_name = False
  218. # specify the database user name
  219. db_user = openerp
  220. # specify the database password
  221. db_password = False
  222. # specify the pg executable path
  223. pg_path = None
  224. # specify the database host
  225. db_host = False
  226. # specify the database port
  227. db_port = False
  228. # specify the the maximum number of physical connections to posgresql
  229. db_maxconn = 64
  230. # specify a custom database template to create a new database
  231. db_template = template1
  232. Internationalisation options
  233. translate_modules = ['all']
  234. Security-related options
  235. # disable the ability to return the list of databases
  236. list_db = True
  237. Advanced options Advanced options
  238. # enable debug mode
  239. debug_mode = False
  240. # specify reference timezone for the server (e.g. Europe/Brussels")
  241. timezone = False
  242. # Force a limit on the maximum number of records kept in the virtual osv_memory tables. The default is False, which means no count-based limit.
  243. osv_memory_count_limit = False
  244. # Force a limit on the maximum age of records kept in the virtual osv_memory tables. This is a decimal value expressed in hours, and the default is 1 hour.
  245. osv_memory_age_limit = 1.0
  246. # Maximum number of threads processing concurrently cron jobs (default 2)
  247. max_cron_threads = 2
  248. # Use the unaccent function provided by the database when available.
  249. unaccent = False
  250. Multiprocessing options
  251. # Specify the number of workers, 0 disable prefork mode.
  252. workers = 0
  253. # Maximum allowed virtual memory per worker, when reached the worker be reset after the current request (default 671088640 aka 640MB)
  254. limit_memory_soft = 671088640
  255. # Maximum allowed virtual memory per worker, when reached, any memory allocation will fail (default 805306368 aka 768MB)
  256. limit_memory_hard = 805306368
  257. # Maximum allowed CPU time per request (default 60)
  258. limit_time_cpu = 60
  259. # Maximum allowed Real time per request (default 120)
  260. limit_time_real = 120
  261. # Maximum number of request to be processed per worker (default 8192)
  262. limit_request = 8192
  263. There are few more options that you can find in this file
  264. vi server/openerp/tools/config.py

发表评论

表情:
评论列表 (有 0 条评论,362人围观)

还没有评论,来说两句吧...

相关阅读