= Variables d'environnements pour configurer l'accès à la BDD

Toutes les options si dessous sont trié avec les mêmes sections que la commande `--help` du server odoo

TIP: `./odoo-bin server --help` pour jouer la commande `--help`

NOTE: xref:mapping.adoc#mapping_db[Voir les mapper]

== Common Option
|===
| Nom de variables | Type Accepté | CLI Odoo | Documentation | Odoo version supportée

| `INSTALL`
| xref:index.adoc#env_var_value_type_csv[csv]
| `--init=VALUE`
| La forme `-i` n'est pas supportée
| v12+

| `UPDATE`
|xref:index.adoc#env_var_value_type_csv[csv]
|`--update=VALUE`
| La forme `-u` n'est pas supportée
| v12+

| `WITHOUT_DEMO`
| xref:index.adoc#env_var_value_type_boolean[bool] ou xref:index.adoc#env_var_value_type_csv[csv]
| `--without-demo=VALUE`
| Si contient une valeur xref:index.adoc#env_var_value_type_boolean[boolean], alors `all` est utilisé comme valeur. +
Sinon la valeur fournie est transmise
| v12+

| `SERVER_WIDE_MODULE`
| xref:index.adoc#env_var_value_type_csv[csv]
| `--load=VALUE`
| Precise les modules à loader au démarrage d'Odoo, voir aussi <<server_wide_module_and_load>>
| v12+

| `DATA_DIR`
| xref:index.adoc#env_var_value_type_str[str]
| `--data-dir=VALUE`
| Precise le `path` ou sera stocké les sessions et le filestore.
| v12+
|===

[[not_supported]]
=== Options non supportée
* `-c` `--config` - Utilisé en interne dans la xref:cli.adoc[CLI {cli-name}]
* `-s` ou `--save` - Utilisé en interne dans la xref:cli.adoc[CLI {cli-name}]
* `-P` ou `--import-partial`
* `--pidfile`
* `--upgrade-path`

== HTTP Service Configuration

|===
| Nom de variables | Type Accepté | Option Odoo | Documentation | Odoo version supportée

| `HTTP_INTERFACE`
| xref:index.adoc#env_var_value_type_str[str]
| `--http-interface=VALUE`
| Remplace `--xmlrpc-interface` dans les anciennes versions d'Odoo. +
xref:mapping.adoc#mapping_http[Mapping] utilisé
| v12+

| `HTTP_PORT`
| xref:index.adoc#env_var_value_type_int[int]
| `--http-port=VALUE`
| Remplace `--xmlrpc-port` dans les anciennes versions d'Odoo. +
xref:mapping.adoc#mapping_http[Mapping] utilisé
| v12+

| `LONGPOLLING_PORT`
| xref:index.adoc#env_var_value_type_int[int]
| `--longpolling-port=VALUE`
| xref:mapping.adoc#mapping_http[Mapping] utilisé
| v12+

| `HTTP_ENABLE`
| xref:index.adoc#env_var_value_type_boolean[bool]
| `--no-http`
| Active ou non le serveur http (Werkzeug)
| v12+

| `PROXY_MODE`
| xref:index.adoc#env_var_value_type_boolean[bool]
| `--proxy_mode`
| Indique à Odoo qu'il se trouve devant un proxy.
| v12+
|===

=== Web interface Configuration

|===
| Nom de variables | Type Accepté | Option Odoo | Documentation | Odoo version supporté

| `DB_FILTER`
| xref:index.adoc#env_var_value_type_str[String]
| xref:index.adoc#odoo_cli_type_arg[Argument]  `--db-filter=VALUE`
| Si pas de valeur, alors prend la valeur de `DB_NAME`
| v12+

|===

=== Testing Configuration

|===
| Nom de variables | Type Accepté | Option Odoo | Documentation | Odoo version supporté

| `TEST_FILE`
| xref:index.adoc#env_var_value_type_str[str]
| xref:index.adoc#odoo_cli_type_arg[Argument] `--test-file=VALUE`
| N/A
| v12+

| `TEST_ENABLE`
| xref:index.adoc#env_var_value_type_boolean[Boolean]
| xref:index.adoc#odoo_cli_type_flag[Flag] `--test-enable`
| N/A
| v12+

| `TEST_TAGS`
| xref:index.adoc#env_var_value_type_str[str]
| xref:index.adoc#odoo_cli_type_arg[Argument] `--test-tags=VALUE`
| N/A
| v12+

|===

=== Options non supportée
* `--screencasts`
* `--screenshots`

== Logging Configuration

|===
| Nom de variables | Type Accepté | Option Odoo | Documentation | Odoo version supporté

| `LOGFILE`
| xref:index.adoc#env_var_value_type_str[str]
| xref:index.adoc#odoo_cli_type_arg[Argument] `--logfile=VALUE`
| N/A
| v12+

| `LOGFILE`
| xref:index.adoc#env_var_value_type_str[str] ou xref:index.adoc#env_var_value_type_multi[multi]
| xref:index.adoc#odoo_cli_type_arg[Argument] `--log-handler=VALUE`
| Voir <<log_handler_section>>
| v12+

| `LOG_REQUEST`
| xref:index.adoc#env_var_value_type_boolean[bool]
| xref:index.adoc#odoo_cli_type_flag[Flag] `--log-request`
| N/A
| v12+

| `LOG_RESPONSE`
| xref:index.adoc#env_var_value_type_boolean[bool]
| xref:index.adoc#odoo_cli_type_flag[Flag] `--log-response`
| N/A
| v12+

| `LOG_WEB`
| xref:index.adoc#env_var_value_type_boolean[bool]
| xref:index.adoc#odoo_cli_type_flag[Flag] `--log-web`
| N/A
| v12+

| `LOG_SQL`
| xref:index.adoc#env_var_value_type_boolean[bool]
| xref:index.adoc#odoo_cli_type_flag[Flag] `--log-sql`
| N/A
| v12+

| `LOG_DB`
| xref:index.adoc#env_var_value_type_boolean[bool]
| xref:index.adoc#odoo_cli_type_flag[Flag] `--log-sql`
| N/A
| v12+

| `LOG_DB_LEVEL`
| xref:index.adoc#env_var_value_type_str[str]
| xref:index.adoc#odoo_cli_type_arg[Argument] `--log-db-level=VALUE`
| N/A
| v12+

| `LOG_LEVEL`
| xref:index.adoc#env_var_value_type_str[str]
| xref:index.adoc#odoo_cli_type_arg[Argument] `--log-level`
| N/A
| v12+


|===

=== Options non supportée
* `--syslog`


== SMTP Configuration

IMPORTANT: Pour l'instant `oenv2config` ne supporte aucune option de cette partie

== Database related options

|===
| Nom de variables | Type Accepté | Option Odoo | Documentation | Odoo version supporté

| `DB_NAME`
| xref:index.adoc#env_var_value_type_str[str]
| xref:index.adoc#odoo_cli_type_arg[Argument] `--database=VALUE`
| xref:mapping.adoc#mapping_db[Mapping] utilisé
| v12+

| `DB_USER`
| xref:index.adoc#env_var_value_type_str[str]
| xref:index.adoc#odoo_cli_type_arg[Argument] `--db_user=VALUE`
| xref:mapping.adoc#mapping_db[Mapping] utilisé
| v12+

| `DB_PASSWORD`
| xref:index.adoc#env_var_value_type_str[str]
| xref:index.adoc#odoo_cli_type_arg[Argument] `--db_password=VALUE`
| xref:mapping.adoc#mapping_db[Mapping] utilisé
| v12+

| `DB_HOST`
| xref:index.adoc#env_var_value_type_str[str]
| xref:index.adoc#odoo_cli_type_arg[Argument] `--db_host=VALUE`
| xref:mapping.adoc#mapping_db[Mapping] utilisé
| v12+

| `DB_PORT`
| xref:index.adoc#env_var_value_type_int[int]
| xref:index.adoc#odoo_cli_type_arg[Argument] `--db_port=VALUE`
| xref:mapping.adoc#mapping_db[Mapping] utilisé
| v12+

| `DB_MAX_CONN`
| xref:index.adoc#env_var_value_type_str[String]
| xref:index.adoc#odoo_cli_type_arg[Argument] `--db_maxconn=VALUE`
| Voir <<db_conn>>
| v12+

|===

=== Options non supportée
* `--db-template`
* `--pg_path`
* `--db_sslmode`


== Internationalisation options

IMPORTANT: Pour l'instant `oenv2config` ne supporte aucune option de cette partie

== Security-related options

|===
| Nom de variables | Type Accepté | Option Odoo | Documentation | Odoo version supporté

| `LIST_DB`
| xref:index.adoc#env_var_value_type_boolean[bool]
| xref:index.adoc#odoo_cli_type_flag[Flag] `--no-database-list`
| Par défaut `"True"`
| v12+

|===

== Advanced options

|===
| Nom de variables | Type Accepté | Option Odoo | Documentation | Odoo version supporté

| `STOP_AFTER_INIT`
| xref:index.adoc#env_var_value_type_boolean[bool]
| xref:index.adoc#odoo_cli_type_flag[Flag] `--stop-after-init`
| Voir Documentation
| v12+

| `OSV_MEMORY_COUNT_LIMIT`
| xref:index.adoc#env_var_value_type_int[int]
| xref:index.adoc#odoo_cli_type_arg[Argument] `--osv-memory-count-limit=VALUE`
| Voir Documentation
| v12+

| `TRANSIENT_AGE_LIMIT`
| xref:index.adoc#env_var_value_type_int[int]
| xref:index.adoc#odoo_cli_type_flag[Argument] `--osv-memory-age-limit=VALUE`
| Voir Documentation et Mapping
| v12, v13

| `TRANSIENT_AGE_LIMIT`
| xref:index.adoc#env_var_value_type_int[int]
| xref:index.adoc#odoo_cli_type_flag[Argument] `--transient-age-limit=VALUE`
| Voir Documentation
| v14+


| `WORKER_CRON`
| xref:index.adoc#env_var_value_type_int[int]
| xref:index.adoc#odoo_cli_type_arg[Argument] `--max-cron-threads=VALUE`
| Voir Documentation
| v12+

| `UNACCENT`
| xref:index.adoc#env_var_value_type_boolean[bool]
| xref:index.adoc#odoo_cli_type_arg[Flag] `--unaccent`
| Voir Documentation
| v12+

|===

=== Options non supportée
* `--dev`
* `--shell-interface`
* `--geoip-db`

== Multiprocessing options

|===
| Nom de variables | Type Accepté | Option Odoo | Documentation | Odoo version supporté

| `WORKERS`
| xref:index.adoc#env_var_value_type_int[int]
| xref:index.adoc#odoo_cli_type_arg[Argument] `--workers=VALUE`
| Voir Documentation
| v12+

| `LIMIT_MEMORY_SOFT`
| xref:index.adoc#env_var_value_type_int[int]
| xref:index.adoc#odoo_cli_type_arg[Argument] `--limit-memory-soft=VALUE`
| Voir Documentation
| v12+

| `LIMIT_MEMORY_HARD`
| xref:index.adoc#env_var_value_type_int[int]
| xref:index.adoc#odoo_cli_type_arg[Argument] `--limit-memory-hard=VALUE`
| Voir Documentation
| v12+

| `LIMIT_TIME_CPU`
| xref:index.adoc#env_var_value_type_int[int]
| xref:index.adoc#odoo_cli_type_arg[Argument] `--limit-time-cpu=VALUE`
| Voir Documentation
| v12+

| `LIMIT_TIME_REAL`
| xref:index.adoc#env_var_value_type_int[int]
| xref:index.adoc#odoo_cli_type_arg[Argument] `--limit-time-real=VALUE`
| Voir Documentation
| v12+

| `LIMIT_TIME_REAL_CRON`
| xref:index.adoc#env_var_value_type_int[int]
| xref:index.adoc#odoo_cli_type_arg[Argument] `--limit-time-real-cron=VALUE`
| Voir Documentation
| v12+

| `LIMIT_REQUEST`
| xref:index.adoc#env_var_value_type_int[int]
| xref:index.adoc#odoo_cli_type_arg[Argument] `--limit-request=VALUE`
| Voir Documentation
| v12+

|===

== Comportement supplémentaire apporté par `oenv2config`


[[config]]
== Configuration additionnelle

|===
| Nom de variables | Type Accepté | Option Odoo | Documentation | Odoo version supporté
|OPT_ODOO_xxxx | str | aucune | | V12+
|===

TIP: Pour utiliser le module module_change_auto_install,
`OPT_ODOO_MODULES_AUTO_INSTALL_ENABLED="web_responsive"` va déclarer une clef `modules_auto_install_enabled` dans le fichier de configuration odoo.


[[db_conn]]
== Nombre de connexions

[[server_wide_module_and_load]]
== `SERVER_WIDE_MODULE` et `LOAD_`

[[log_handler_section]]
== LOG_HANDLER
