| 
									
										
										
										
											2020-02-04 10:39:42 +01:00
										 |  |  | # -*- coding: utf-8; mode: sh -*- | 
					
						
							|  |  |  | # SPDX-License-Identifier: AGPL-3.0-or-later | 
					
						
							| 
									
										
										
										
											2020-02-04 19:47:33 +01:00
										 |  |  | # shellcheck shell=bash disable=SC2034 | 
					
						
							| 
									
										
										
										
											2020-02-04 10:39:42 +01:00
										 |  |  | # | 
					
						
							|  |  |  | # This environment is used by ./utils scripts like filtron.sh or searx.sh.  The | 
					
						
							|  |  |  | # default values are *most flexible* and *best maintained*, you normally not | 
					
						
							|  |  |  | # need to change the defaults (except PUBLIC_URL). | 
					
						
							|  |  |  | # | 
					
						
							|  |  |  | # Before you change any value here you have to uninstall any previous | 
					
						
							|  |  |  | # installation.  Further is it recommended to backup your changes simply by | 
					
						
							|  |  |  | # adding them to you local brand (git branch):: | 
					
						
							|  |  |  | # | 
					
						
							|  |  |  | #     git add .config | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # The public URL of the searx instance: PUBLIC_URL="https://mydomain.xy/searx" | 
					
						
							| 
									
										
										
										
											2020-03-29 15:09:34 +02:00
										 |  |  | # The default is taken from ./utils/brand.env. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | PUBLIC_URL="${SEARX_URL}" | 
					
						
							| 
									
										
										
										
											2020-04-04 17:53:16 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | if [[ ${PUBLIC_URL} == "https://searx.me" ]]; then | 
					
						
							| 
									
										
										
										
											2020-04-13 11:34:28 +02:00
										 |  |  |     # hint: Linux containers do not have DNS entries, lets use IPs | 
					
						
							|  |  |  |     PUBLIC_URL="http://$(primary_ip)/searx" | 
					
						
							| 
									
										
										
										
											2020-04-04 17:53:16 +02:00
										 |  |  | fi | 
					
						
							| 
									
										
										
										
											2020-02-04 10:39:42 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | # searx.sh | 
					
						
							|  |  |  | # --------- | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-06-27 12:53:03 +02:00
										 |  |  | # SEARX_INTERNAL_HTTP="127.0.0.1:8888" | 
					
						
							| 
									
										
										
										
											2020-12-08 20:19:10 +01:00
										 |  |  | # SEARX_SETTINGS_TEMPLATE="${REPO_ROOT}/utils/templates/etc/searx/use_default_settings.yml" | 
					
						
							| 
									
										
										
										
											2020-02-04 10:39:42 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-12-23 16:06:06 +01:00
										 |  |  | # Only change, if you maintain a searx brand in your searx fork (GIT_URL) which | 
					
						
							|  |  |  | # is not hold by branch 'master'.  The branch has to be a local branch, in the | 
					
						
							|  |  |  | # repository from which you install (which is most often the case).  If you want | 
					
						
							|  |  |  | # to install branch 'foo', don't forget to run 'git branch foo origin/foo' once. | 
					
						
							| 
									
										
										
										
											2020-03-29 15:09:34 +02:00
										 |  |  | # GIT_BRANCH="${GIT_BRANCH:-master}" | 
					
						
							| 
									
										
										
										
											2020-02-04 10:39:42 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | # filtron.sh | 
					
						
							|  |  |  | # ---------- | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-03-29 15:09:34 +02:00
										 |  |  | # FILTRON_API="127.0.0.1:4005" | 
					
						
							|  |  |  | # FILTRON_LISTEN="127.0.0.1:4004" | 
					
						
							|  |  |  | # FILTRON_TARGET="127.0.0.1:8888" | 
					
						
							| 
									
										
										
										
											2021-04-28 12:10:10 +02:00
										 |  |  | # FILTRON_RULES_TEMPLATE="${REPO_ROOT}/utils/templates/etc/searx/use_default_settings.yml" | 
					
						
							| 
									
										
										
										
											2020-02-04 10:39:42 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | # morty.sh | 
					
						
							|  |  |  | # -------- | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # morty listen address | 
					
						
							| 
									
										
										
										
											2020-03-29 15:09:34 +02:00
										 |  |  | # MORTY_LISTEN="127.0.0.1:3000" | 
					
						
							| 
									
										
										
										
											2020-04-09 14:28:34 +02:00
										 |  |  | # PUBLIC_URL_PATH_MORTY="/morty/" | 
					
						
							| 
									
										
										
										
											2020-02-04 10:39:42 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | # system services | 
					
						
							|  |  |  | # --------------- | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-03-29 15:09:34 +02:00
										 |  |  | # Common $HOME folder of the service accounts | 
					
						
							|  |  |  | # SERVICE_HOME_BASE="/usr/local" | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-02-04 10:39:42 +01:00
										 |  |  | # **experimental**: Set SERVICE_USER to run all services by one account, but be | 
					
						
							|  |  |  | # aware that removing discrete components might conflict! | 
					
						
							|  |  |  | # SERVICE_USER=searx |