forked from Archives/searxng
utils & Makefile: add .config.mk & .config.sh for searx brands
By isolating the environment of makefiles and bash scripts into .config.mk and .config.sh it is simple to maintain searx brands by setting some central environments. Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>dependabot/pip/master/sphinx-6.1.3
parent
94ac560dcc
commit
79e1f837ef
@ -0,0 +1,13 @@
|
|||||||
|
# -*- coding: utf-8; mode: makefile-gmake -*-
|
||||||
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
#
|
||||||
|
# This environment is used by Makefile targets. If you not maintain your own
|
||||||
|
# searx brand, you normally not need to change the defaults (except SEARX_URL).
|
||||||
|
# Compare your settings here with file .config.sh used by the toolboxing in
|
||||||
|
# utils.
|
||||||
|
|
||||||
|
export SEARX_URL=https://searx.me
|
||||||
|
|
||||||
|
export GIT_URL=https://github.com/asciimoo/searx
|
||||||
|
export DOCS_URL=https://asciimoo.github.io/searx
|
||||||
|
|
@ -0,0 +1,54 @@
|
|||||||
|
# -*- coding: utf-8; mode: sh -*-
|
||||||
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
# shellcheck shell=bash
|
||||||
|
#
|
||||||
|
# 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
|
||||||
|
#
|
||||||
|
# Compare your settings here with file .config.mk used by the Makefile targets.
|
||||||
|
|
||||||
|
# The public URL of the searx instance: PUBLIC_URL="https://mydomain.xy/searx"
|
||||||
|
PUBLIC_URL="${PUBLIC_URL:-http://$(uname -n)/searx}"
|
||||||
|
PUBLIC_HOST="${PUBLIC_HOST:-$(echo "$PUBLIC_URL" | sed -e 's/[^/]*\/\/\([^@]*@\)\?\([^:/]*\).*/\2/')}"
|
||||||
|
|
||||||
|
# searx.sh
|
||||||
|
# ---------
|
||||||
|
|
||||||
|
SEARX_INTERNAL_URL="${SEARX_INTERNAL_URL:-127.0.0.1:8888}"
|
||||||
|
|
||||||
|
# Only change, if you maintain a searx brand in your searx fork
|
||||||
|
SEARX_DOCS_URL="${SEARX_DOCS_URL:-https://asciimoo.github.io/searx}"
|
||||||
|
SEARX_GIT_URL="${SEARX_GIT_URL:-https://github.com/asciimoo/searx.git}"
|
||||||
|
SEARX_GIT_BRANCH="${SEARX_GIT_BRANCH:-master}"
|
||||||
|
|
||||||
|
# filtron.sh
|
||||||
|
# ----------
|
||||||
|
|
||||||
|
FILTRON_API="${FILTRON_API:-127.0.0.1:4005}"
|
||||||
|
FILTRON_LISTEN="${FILTRON_LISTEN:-127.0.0.1:4004}"
|
||||||
|
FILTRON_TARGET="${FILTRON_TARGET:-127.0.0.1:8888}"
|
||||||
|
|
||||||
|
# morty.sh
|
||||||
|
# --------
|
||||||
|
|
||||||
|
# morty listen address
|
||||||
|
MORTY_LISTEN="${MORTY_LISTEN:-127.0.0.1:3000}"
|
||||||
|
|
||||||
|
# system services
|
||||||
|
# ---------------
|
||||||
|
|
||||||
|
# **experimental**: Set SERVICE_USER to run all services by one account, but be
|
||||||
|
# aware that removing discrete components might conflict!
|
||||||
|
#
|
||||||
|
# SERVICE_USER=searx
|
||||||
|
|
||||||
|
# Common $HOME folder of the service accounts
|
||||||
|
SERVICE_HOME_BASE="${SERVICE_HOME_BASE:-/usr/local}"
|
||||||
|
|
@ -1,17 +0,0 @@
|
|||||||
# -*- coding: utf-8; mode: sh -*-
|
|
||||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
||||||
#
|
|
||||||
# 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 them. Before you change any value here you have to uninstall
|
|
||||||
# any previous installation. It is recommended to backup your changes simply by
|
|
||||||
# adding them to you local brand (git branch).
|
|
||||||
|
|
||||||
# The public URL of the searx instance
|
|
||||||
PUBLIC_URL="${PUBLIC_URL:-http://$(uname -n)/searx}"
|
|
||||||
PUBLIC_HOST="${PUBLIC_HOST:-$(echo "$PUBLIC_URL" | sed -e 's/[^/]*\/\/\([^@]*@\)\?\([^:/]*\).*/\2/')}"
|
|
||||||
|
|
||||||
# Run all services by one account, but be aware that removing discrete
|
|
||||||
# components might conflict! **experimental**
|
|
||||||
#
|
|
||||||
# SERVICE_USER=service_account42
|
|
Loading…
Reference in New Issue