mirror of
				https://github.com/searxng/searxng.git
				synced 2025-10-31 02:27:06 -04:00 
			
		
		
		
	This patch migrates from `redis==5.2.1` [1] to `valkey==6.1.0` [2].
The migration to valkey is necessary because the company behind Redis has decided
to abandon the open source license. After experiencing a drop in user numbers,
they now want to run it under a dual license again. But this move demonstrates
once again how unreliable the company is and how it treats open source
developers.
To review first, read the docs::
    $ make docs.live
Follow the instructions to remove redis:
- http://0.0.0.0:8000/admin/settings/settings_redis.html
Config and install a local valkey DB:
- http://0.0.0.0:8000/admin/settings/settings_valkey.html
[1] https://pypi.org/project/redis/
[2] https://pypi.org/project/valkey/
Co-authored-by: HLFH <gaspard@dhautefeuille.eu>
Co-authored-by: Markus Heiser <markus.heiser@darmarit.de>
		
	
			
		
			
				
	
	
		
			38 lines
		
	
	
		
			820 B
		
	
	
	
		
			ReStructuredText
		
	
	
	
	
	
			
		
		
	
	
			38 lines
		
	
	
		
			820 B
		
	
	
	
		
			ReStructuredText
		
	
	
	
	
	
| .. _settings redis:
 | |
| 
 | |
| ==========
 | |
| ``redis:``
 | |
| ==========
 | |
| 
 | |
| .. _Valkey: https://valkey.io
 | |
| 
 | |
| .. attention::
 | |
| 
 | |
|    SearXNG is switching from the Redis DB to Valkey_. The configuration
 | |
|    description of Valkey_ in SearXNG can be found here: :ref:`settings
 | |
|    <settings valkey>`.
 | |
| 
 | |
| If you have built and installed a local Redis DB for SearXNG, it is recommended
 | |
| to uninstall it now and replace it with the installation of a Valkey_ DB.
 | |
| 
 | |
| .. _Redis Developer Notes:
 | |
| 
 | |
| Redis Developer Notes
 | |
| =====================
 | |
| 
 | |
| To uninstall SearXNG's local Redis DB you can use:
 | |
| 
 | |
| .. code:: sh
 | |
| 
 | |
|    # stop your SearXNG instance
 | |
|    $ ./utils/searxng.sh remove.redis
 | |
| 
 | |
| Remove the Redis DB in your YAML setting:
 | |
| 
 | |
| .. code:: yaml
 | |
| 
 | |
|    redis:
 | |
|      url: unix:///usr/local/searxng-redis/run/redis.sock?db=0
 | |
| 
 | |
| To install Valkey_ read: :ref:`Valkey Developer Notes`
 |