Infrastructure
How to enable Redis for Next Auth
If you wish to use Redis for authentication, please ensure that the variables within ~/build/azDevOps/azure/pipeline-vars.yml
relating to redis have been populated; see below for more details:
- name: create_redis
value: true
- name: redis_resource_group_name
value: yourRGName
- name: maxmemory_policy
value: allkeys-lru
- name: sku_name
value: Basic
To enable redis, create_redis
must always be true. redis_resource_group_name
should be an existing resource group that you wish for redis to be created in. maxmemory_policy
and sku_name
should be populated with your specific values, these values can be:
Option | Description | Type | Accepted Values | Default | Comment |
---|---|---|---|---|---|
sku_name | The SKU Redis will use, and the features included | string | The provider to be installed | Basic | View all available options here |
maxmemory_policy | Policy redis will enforce on data stored | string |
| allkeys-lru |