mirror of
https://github.com/searxng/searxng.git
synced 2025-08-03 02:22:22 +02:00
Merge pull request #216 from return42/fix-searx.sh
normalize environment of installation tasks (shell) with YAML settings
This commit is contained in:
commit
beff764d74
19 changed files with 703 additions and 281 deletions
|
@ -4,13 +4,16 @@ general:
|
|||
contact_url: false # mailto:contact@example.com
|
||||
|
||||
brand:
|
||||
git_url: https://github.com/searxng/searxng
|
||||
git_branch: master
|
||||
issue_url: https://github.com/searxng/searxng/issues
|
||||
new_issue_url: https://github.com/searxng/searxng/issues/new
|
||||
docs_url: https://searxng.github.io/searxng
|
||||
public_instances: https://searx.space
|
||||
wiki_url: https://github.com/searxng/searxng/wiki
|
||||
issue_url: https://github.com/searxng/searxng/issues
|
||||
|
||||
# If you change a value below don't forget to rebuild instance's enviroment
|
||||
# (make buildenv)
|
||||
git_url: https://github.com/return42/searxng
|
||||
git_branch: fix-searx.sh
|
||||
|
||||
search:
|
||||
# Filter results. 0: None, 1: Moderate, 2: Strict
|
||||
|
@ -30,13 +33,16 @@ search:
|
|||
formats: [html, csv, json, rss]
|
||||
|
||||
server:
|
||||
port: 8888
|
||||
# address to listen on
|
||||
bind_address: "127.0.0.1"
|
||||
# If you change port, bind_address or base_url don't forget to rebuild
|
||||
# instance's enviroment (make buildenv)
|
||||
port: 7777
|
||||
bind_address: "127.0.0.12"
|
||||
base_url: false # Possible values: false or "https://example.org/location".
|
||||
|
||||
# If your instance owns a /etc/searx/settings.yml file, then set the following
|
||||
# values there.
|
||||
|
||||
secret_key: "ultrasecretkey" # change this!
|
||||
# Set custom base_url. Possible values:
|
||||
# false or "https://your.custom.host/location/"
|
||||
base_url: false
|
||||
# Proxying image results through searx
|
||||
image_proxy: false
|
||||
# 1.0 and 1.1 are supported
|
||||
|
|
|
@ -147,7 +147,7 @@ SCHEMA = {
|
|||
'formats': SettingsValue(list, OUTPUT_FORMATS),
|
||||
},
|
||||
'server': {
|
||||
'port': SettingsValue(int, 8888),
|
||||
'port': SettingsValue((int,str), 8888, 'SEARX_PORT'),
|
||||
'bind_address': SettingsValue(str, '127.0.0.1', 'SEARX_BIND_ADDRESS'),
|
||||
'secret_key': SettingsValue(str, environ_name='SEARX_SECRET'),
|
||||
'base_url': SettingsValue((False, str), False),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue