2022-11-12 03:17:06 +01:00
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: searxng
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
revisionHistoryLimit: 3
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: searxng
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: searxng
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: searxng
|
2022-11-12 03:42:39 +01:00
|
|
|
image: searxng/searxng:2022.11.11-3a765113
|
2022-11-12 03:17:06 +01:00
|
|
|
resources:
|
|
|
|
limits:
|
|
|
|
memory: "2G"
|
|
|
|
cpu: "1000m"
|
|
|
|
env:
|
|
|
|
- name: BASE_URL
|
2022-11-15 10:41:03 +01:00
|
|
|
value: https://searxng.roxedus.com
|
2022-11-12 03:17:06 +01:00
|
|
|
- name: INSTANCE_NAME
|
|
|
|
value: Roxedus.com
|
2022-11-12 03:38:19 +01:00
|
|
|
envFrom:
|
|
|
|
- secretRef:
|
|
|
|
name: searxng
|
2022-11-12 03:17:06 +01:00
|
|
|
ports:
|
|
|
|
- containerPort: 8080
|
|
|
|
volumeMounts:
|
|
|
|
- mountPath: /etc/searxng
|
|
|
|
name: config
|
|
|
|
readOnly: true
|
|
|
|
volumes:
|
|
|
|
- name: config
|
|
|
|
configMap:
|
|
|
|
name: searxng
|
|
|
|
items:
|
|
|
|
- key: "settings"
|
|
|
|
path: "settings.yml"
|
|
|
|
- key: "uwsgi"
|
|
|
|
path: "uwsgi.ini"
|
|
|
|
---
|
2022-11-15 13:47:22 +01:00
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: searxng
|
|
|
|
spec:
|
|
|
|
type: ClusterIP
|
|
|
|
selector:
|
|
|
|
app: searxng
|
|
|
|
ports:
|
|
|
|
- port: 8080
|
|
|
|
targetPort: 8080
|
|
|
|
---
|
2022-12-18 00:57:06 +01:00
|
|
|
apiVersion: external-secrets.io/v1beta1
|
|
|
|
kind: ExternalSecret
|
|
|
|
metadata:
|
|
|
|
name: searxng
|
|
|
|
namespace: default
|
|
|
|
spec:
|
|
|
|
secretStoreRef:
|
|
|
|
name: secret-store
|
|
|
|
kind: ClusterSecretStore
|
|
|
|
target:
|
|
|
|
name: searxng
|
|
|
|
dataFrom:
|
|
|
|
- extract:
|
|
|
|
key: searxng
|
|
|
|
conversionStrategy: Default
|
|
|
|
decodingStrategy: Auto
|
|
|
|
|
|
|
|
---
|
2022-12-07 14:27:01 +01:00
|
|
|
apiVersion: networking.k8s.io/v1
|
|
|
|
kind: Ingress
|
2022-11-15 10:41:03 +01:00
|
|
|
metadata:
|
2022-12-07 14:27:01 +01:00
|
|
|
annotations:
|
|
|
|
# add an annotation indicating the issuer to use.
|
|
|
|
cert-manager.io/acme-challenge-type: dns01
|
|
|
|
cert-manager.io/cluster-issuer: roxedus.com-cloudflare
|
2022-11-15 10:41:03 +01:00
|
|
|
name: searxng
|
2022-11-15 10:43:31 +01:00
|
|
|
namespace: default
|
2022-11-15 10:41:03 +01:00
|
|
|
spec:
|
2022-12-07 14:27:01 +01:00
|
|
|
ingressClassName: traefik
|
|
|
|
rules:
|
|
|
|
- host: searxng.roxedus.com
|
|
|
|
http:
|
|
|
|
paths:
|
|
|
|
- pathType: Prefix
|
|
|
|
path: /
|
|
|
|
backend:
|
|
|
|
service:
|
|
|
|
name: searxng
|
|
|
|
port:
|
|
|
|
number: 8080
|
2022-11-15 10:47:51 +01:00
|
|
|
tls:
|
2022-12-07 14:27:01 +01:00
|
|
|
- hosts:
|
|
|
|
- searxng.roxedus.com
|
|
|
|
secretName: searxng-roxedus-com-cert
|
2022-11-12 03:17:06 +01:00
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: ConfigMap
|
|
|
|
metadata:
|
|
|
|
name: searxng
|
|
|
|
data:
|
|
|
|
settings: |
|
|
|
|
# see https://docs.searxng.org/admin/engines/settings.html#use-default-settings
|
|
|
|
use_default_settings: true
|
|
|
|
server:
|
|
|
|
limiter: false
|
|
|
|
image_proxy: true
|
|
|
|
ui:
|
|
|
|
static_use_hash: true
|
|
|
|
default_theme: simple
|
|
|
|
theme_args:
|
|
|
|
simple_style: dark
|
|
|
|
infinite_scroll: true
|
2022-11-12 03:38:19 +01:00
|
|
|
results_on_new_tab: true
|
2022-11-12 03:17:06 +01:00
|
|
|
query_in_title: true
|
|
|
|
search:
|
|
|
|
autocomplete: "google"
|
|
|
|
enabled_plugins:
|
|
|
|
- "Hash plugin"
|
|
|
|
- "Search on category select"
|
|
|
|
- "Self Informations"
|
|
|
|
- "Tracker URL remover"
|
|
|
|
- "Hostname replace"
|
|
|
|
- "Open Access DOI rewrite"
|
|
|
|
hostname_replace:
|
|
|
|
'(.*\.)?codegrepper\.com': false
|
|
|
|
'(.*\.)?w3schools\.com': false
|
|
|
|
'(.*\.)?geeksforgeeks\.org': false
|
|
|
|
'(.*\.)?stackshare\.io': false
|
|
|
|
'(.*\.)?tutorialspoint\.com': false
|
|
|
|
'(.*\.)?answeright\.com': false
|
|
|
|
'(.*\.)?askdev\.info': false
|
|
|
|
'(.*\.)?askdev\.io': false
|
|
|
|
'(.*\.)?blogmepost\.com': false
|
|
|
|
'(.*\.)?c-sharpcorner\.com': false
|
|
|
|
'(.*\.)?code-examples\.net': false
|
|
|
|
'(.*\.)?codeflow\.site': false
|
|
|
|
'(.*\.)?gitmemory\.cn': false
|
|
|
|
'(.*\.)?gitmemory\.com': false
|
|
|
|
'(.*\.)?intellipaat\.com': false
|
|
|
|
'(.*\.)?javaer101\.com': false
|
|
|
|
'(.*\.)?programmerstart\.com': false
|
|
|
|
'(.*\.)?programmersought\.com': false
|
|
|
|
'(.*\.)?qastack\.com': false
|
|
|
|
'(.*\.)?roboflow\.ai': false
|
|
|
|
'(.*\.)?stackanswers\.net': false
|
|
|
|
'(.*\.)?stackoom\.com': false
|
|
|
|
'(.*\.)?stackovernet\.com': false
|
|
|
|
'(.*\.)?stackovernet\.xyz': false
|
|
|
|
'(.*\.)?stackoverrun\.com': false
|
|
|
|
'(.*\.)?thetopsites\.net': false
|
|
|
|
'(.*\.)?ubuntugeeks\.com': false
|
|
|
|
'(.*\.)?cyberciti\.biz': false
|
|
|
|
'(.*\.)?ispycode\.com': false
|
|
|
|
'(.*\.)?reposhub\.com': false
|
|
|
|
'(.*\.)?githubmemory\.com': false
|
|
|
|
'(.*\.)?issueexplorer\.com': false
|
|
|
|
'(.*\.)?tabnine\.com': false
|
|
|
|
'(.*\.)?gitcode\.net': false
|
|
|
|
'(.*\.)?command-not-found\.com': false
|
|
|
|
'(.*\.)?im-coder\.com': false
|
|
|
|
'(.*\.)?i-harness\.com': false
|
|
|
|
uwsgi: |
|
|
|
|
[uwsgi]
|
|
|
|
# Who will run the code
|
|
|
|
uid = searxng
|
|
|
|
gid = searxng
|
|
|
|
|
|
|
|
# Number of workers (usually CPU count)
|
|
|
|
workers = %k
|
|
|
|
threads = 4
|
|
|
|
|
|
|
|
# The right granted on the created socket
|
|
|
|
chmod-socket = 666
|
|
|
|
|
|
|
|
# Plugin to use and interpreter config
|
|
|
|
single-interpreter = true
|
|
|
|
master = true
|
|
|
|
plugin = python3
|
|
|
|
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
|
|
|
|
|
|
|
|
# uwsgi serves the static files
|
|
|
|
# expires set to one year since there are hashes
|
|
|
|
static-map = /static=/usr/local/searxng/searx/static
|
|
|
|
static-expires = /* 31557600
|
|
|
|
static-gzip-all = True
|
|
|
|
offload-threads = %k
|
|
|
|
|
|
|
|
# Cache
|
|
|
|
cache2 = name=searxngcache,items=2000,blocks=2000,blocksize=4096,bitmap=1
|