![]() As we live in a global village, if we have an online shop, many of our visitors will quite likely be based on a different country than our own, and use a different currency than our own. Products and services are increasingly accessed and bought online. Your store's Open Exchange Rates "App ID".This article has been kindly supported by our dear friends at ExchangeRatesApi.io who provide developers with powerful data and conversion APIs for current and historical exchange rates. To use this feature, you will need an Open Exchange Rates account. Saleor can automatically convert amounts between currencies. STATIC_URL Ĭontrols the production assets mount path. SECRET_KEY Ĭontrols Django's secret key setting. ![]() PLAYGROUND_ENABLED Ĭontrols whether to run Playground - the interactive GraphQL explorer - when accessing the /graphql/ URL exposed by Saleor. MEDIA_URL Ĭontrols Django's MEDIA_URL setting. MAX_CHECKOUT_LINE_QUANTITY Ĭontrols the maximum quantity of a line item that can be added to a single checkout. The password is required for loading RSA_PRIVATE_KEY. It is required in production environments. This is unnecessary in the DEBUG mode as Saleor will generate a temporary private key. The RSA private key in PEM format is used for signing Saleor's JWT tokens. The value should be a time expression like 5m, 5 minutes, 5d, 5 days, 1w, or 1 week. The time until email change request tokens expire. The time until JWT refresh tokens expire. Multiple values should be separated with a comma. INTERNAL_IPS Ĭontrols Django's internal IPs setting. If the query's complexity exceeds this limit, it will not be executed, and GraphQL API will return an error instead. GRAPHQL_QUERY_MAX_COMPLEXITY Ĭontrols maximum allowed complexity (cost) of a GraphQL query. Sets upper limit on how many entities may be requested by Apollo Federation's gateway for a single GraphQL query. Requires ALLOWED_CLIENT_HOSTS variable to be set.ĭefaults to True. Defaults to printing everything to the console.Īmazon SMTP server ENABLE_ACCOUNT_CONFIRMATION_BY_EMAIL Ĭontrols whether registering new customer accounts should require email confirmation. Note that using the toolbar is recommended only locally and should be disabled in production, as it affects the performance and may potentially reveal sensitive or private information. Then, the toolbar will be rendered when accessing the /graphql/ URL. To use the toolbar, you must also enable the PLAYGROUND_ENABLED setting. ENABLE_DEBUG_TOOLBAR Ĭontrols whether to run Django Debug Toolbar. Indicates a default email address to use for all outgoing mail. Indicates a default currency which is a basis for all prices entered and stored in your store. Depending on what setup you require, this variable also controls the default VAT, shipping country, etc. Indicates the default country of your store. Defaults to DEBUG Ĭontrols Django's debug mode. The connection URL to a PostgreSQL database. You can read more about configuring this at Celery Documentation. ![]() It defaults to local process memory.Įxample: redis://:6379/0 CELERY_BROKER_URL ĭefault task broker URL. This variable controls Django's allowed hosts setting. ALLOWED_GRAPHQL_ORIGINS Ĭontrols the value of Access-Control-Allow-Origin response header. In local development ( DEBUG=True), when it's not set, the paths are validated against localhost, 127.0.0.1. These paths are validated against URLs configured in the ALLOWED_CLIENT_HOSTS setting.ĪLLOWED_CLIENT_HOSTS is required in production mode (with DEBUG=False). The backend doesn't know the structure of frontend applications' routing, and the path to the view where users can proceed with the operation needs to be passed as arguments in GraphQL mutations. Some operations, such as registering a new account or resetting the password, involve sending an email from the backend with a link that users need to click to confirm the action. Values in this list should be URLs in RFC 1808 format. General configuration ALLOWED_CLIENT_HOSTS Ī list of strings representing host/domain names of client applications (storefront or dashboard) that use this Saleor instance as a backend.
0 Comments
Leave a Reply. |