8000 searxng restart problem by yogibear54 · Pull Request #61 · coleam00/local-ai-packaged · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

searxng restart problem #61

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.env
supabase
16 changes: 8 additions & 8 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ services:
- SEARXNG_HOSTNAME=${SEARXNG_HOSTNAME:-":8006"}
- LANGFUSE_HOSTNAME=${LANGFUSE_HOSTNAME:-":8007"}
- LETSENCRYPT_EMAIL=${LETSENCRYPT_EMAIL:-internal}
cap_drop:
- ALL
# cap_drop:
# - ALL # Temporarily commented out for first run
cap_add:
- NET_BIND_SERVICE
logging:
Expand Down Expand Up @@ -272,9 +272,9 @@ services:
timeout: 3s
retries: 10
environment:
POSTGRES_USER: postgres
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: postgres
POSTGRES_DB: ${POSTGRES_DB}
ports:
- 127.0.0.1:5433:5432
volumes:
Expand All @@ -287,8 +287,8 @@ services:
restart: unless-stopped
volumes:
- valkey-data:/data
cap_drop:
- ALL
# cap_drop:
# - ALL # Temporarily commented out for first run
cap_add:
- SETGID
- SETUID
Expand Down Expand Up @@ -316,8 +316,8 @@ services:
- SEARXNG_BASE_URL=https://${SEARXNG_HOSTNAME:-localhost}/
- UWSGI_WORKERS=${SEARXNG_UWSGI_WORKERS:-4}
- UWSGI_THREADS=${SEARXNG_UWSGI_THREADS:-4}
cap_drop:
- ALL
# cap_drop:
# - ALL # Temporarily commented out for first run
cap_add:
- CHOWN
- SETGID
Expand Down
15 changes: 15 additions & 0 deletions searxng/settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# see https://docs.searxng.org/admin/settings/settings.html#settings-use-default-settings
use_default_settings: true
server:
# base_url is defined in the SEARXNG_BASE_URL environment variable, see .env and docker-compose.yml
secret_key: "070b432daf6a1faaa97f48c46ef4382677578a601314f8466ab84beeec06dfb8" # change this!
limiter: false
image_proxy: true
ui:
static_use_hash: true
redis:
url: redis://redis:6379/0
search:
formats:
- html
- json
55 changes: 55 additions & 0 deletions searxng/uwsgi.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
[uwsgi]
# Listening address
# default value: [::]:8080 (see Dockerfile)
http-socket = $(BIND_ADDRESS)

# Who will run the code
uid = searxng
gid = searxng

# Number of workers (usually CPU count)
# default value: %k (= number of CPU core, see Dockerfile)
workers = $(UWSGI_WORKERS)

# Number of threads per worker
# default value: 4 (see Dockerfile)
threads = $(UWSGI_THREADS)

# The right granted on the created socket
chmod-socket = 666

# Plugin to use and interpreter config
single-interpreter = true
master = true
lazy-apps = true
enable-threads = true

# Module to import
module = searx.webapp

# Virtualenv and python path
pythonpath = /usr/local/searxng/
chdir = /usr/local/searxng/searx/

# automatically set processes name to something meaningful
auto-procname = true

# Disable request logging for privacy
disable-logging = true
log-5xx = true

# Set the max size of a request (request-body excluded)
buffer-size = 8192

# No keep alive
# See https://github.com/searx/searx-docker/issues/24
add-header = Connection: close

# Follow SIGTERM convention
# See https://github.com/searxng/searxng/issues/3427
die-on-term

# uwsgi serves the static files
static-map = /static=/usr/local/searxng/searx/static
static-gzip-all = True
offload-threads = %k
0