mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-20 17:15:51 +02:00
Renamed some env to match their purpose better
This commit is contained in:
parent
7cd2662c77
commit
18ae32f15a
2 changed files with 8 additions and 11 deletions
15
.env
15
.env
|
@ -145,17 +145,14 @@ PROVIDER_OCTOPART_ONLY_AUTHORIZED_SELLERS=1
|
|||
# Mouser Provider API V2:
|
||||
# You can get your API key from https://www.mouser.it/api-hub/
|
||||
PROVIDER_MOUSER_KEY=
|
||||
# If not provided, the default is false. Used when searching for keywords in the language specified when you signed up for Search API.
|
||||
# Can use string representation: true.
|
||||
PROVIDER_MOUSER_LANGUAGE='true'
|
||||
#searchOptions string
|
||||
#Optional. If not provided, the default is None.
|
||||
#Refers to options supported by the search engine.
|
||||
#Only one value at a time is supported.
|
||||
#Available options: None | Rohs | InStock | RohsAndInStock - can use string representations or integer IDs: 1[None] | 2[Rohs] | 4[InStock] | 8[RohsAndInStock].
|
||||
PROVIDER_MOUSER_OPTION='1'
|
||||
# Filter search results by RoHS compliance and stock availability:
|
||||
# Available options: None | Rohs | InStock | RohsAndInStock
|
||||
PROVIDER_MOUSER_SEARCH_OPTION='None'
|
||||
# The number of results to get from Mouser while searching (please note that this value is max 50)
|
||||
PROVIDER_MOUSER_SEARCH_LIMIT=50
|
||||
# It is recommended to leave this set to 'true'. The option is not really good doumented by Mouser:
|
||||
# Used when searching for keywords in the language specified when you signed up for Search API.
|
||||
PROVIDER_MOUSER_SEARCH_WITH_SIGNUP_LANGUAGE='true'
|
||||
|
||||
###################################################################################
|
||||
# SAML Single sign on-settings
|
||||
|
|
|
@ -280,8 +280,8 @@ services:
|
|||
App\Services\InfoProviderSystem\Providers\MouserProvider:
|
||||
arguments:
|
||||
$api_key: '%env(string:PROVIDER_MOUSER_KEY)%'
|
||||
$language: '%env(string:PROVIDER_MOUSER_LANGUAGE)%'
|
||||
$options: '%env(string:PROVIDER_MOUSER_OPTION)%'
|
||||
$language: '%env(string:PROVIDER_MOUSER_SEARCH_WITH_SIGNUP_LANGUAGE)%'
|
||||
$options: '%env(string:PROVIDER_MOUSER_SEARCH_OPTION)%'
|
||||
$search_limit: '%env(int:PROVIDER_MOUSER_SEARCH_LIMIT)%'
|
||||
|
||||
####################################################################################################################
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue