130 lines
2.8 KiB
YAML
130 lines
2.8 KiB
YAML
---
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: searxng-config
|
|
namespace: researchowl
|
|
data:
|
|
settings.yml: |
|
|
use_default_settings: true
|
|
general:
|
|
instance_name: "ResearchOwl Search"
|
|
debug: false
|
|
search:
|
|
safe_search: 0
|
|
autocomplete: ""
|
|
default_lang: "all"
|
|
server:
|
|
secret_key: "researchowl-searxng-secret-key-change-me"
|
|
limiter: false
|
|
image_proxy: false
|
|
port: 8080
|
|
bind_address: "0.0.0.0"
|
|
http_protocol_version: "1.1"
|
|
botdetection:
|
|
ip_limit:
|
|
enabled: false
|
|
ip_lists:
|
|
enabled: false
|
|
ui:
|
|
static_use_hash: true
|
|
engines:
|
|
- name: duckduckgo
|
|
engine: duckduckgo
|
|
shortcut: ddg
|
|
- name: google
|
|
engine: google
|
|
shortcut: g
|
|
- name: bing
|
|
engine: bing
|
|
shortcut: bi
|
|
- name: brave
|
|
engine: brave
|
|
shortcut: brave
|
|
- name: wikipedia
|
|
engine: wikipedia
|
|
shortcut: wp
|
|
base_url: "https://en.wikipedia.org/"
|
|
- name: reddit
|
|
engine: reddit
|
|
shortcut: re
|
|
outgoing:
|
|
request_timeout: 10.0
|
|
max_request_timeout: 15.0
|
|
useragent_suffix: ""
|
|
pool_connections: 100
|
|
pool_maxsize: 20
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: searxng
|
|
namespace: researchowl
|
|
labels:
|
|
app: searxng
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: searxng
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: searxng
|
|
spec:
|
|
containers:
|
|
- name: searxng
|
|
image: searxng/searxng:latest
|
|
ports:
|
|
- containerPort: 8080
|
|
env:
|
|
- name: SEARXNG_SETTINGS_PATH
|
|
value: "/etc/searxng/settings.yml"
|
|
- name: SEARXNG_PORT
|
|
value: "8080"
|
|
- name: SEARXNG_BIND_ADDRESS
|
|
value: "0.0.0.0"
|
|
securityContext:
|
|
runAsUser: 977
|
|
runAsGroup: 977
|
|
volumeMounts:
|
|
- name: config
|
|
mountPath: /etc/searxng
|
|
resources:
|
|
requests:
|
|
memory: "256Mi"
|
|
cpu: "100m"
|
|
limits:
|
|
memory: "512Mi"
|
|
cpu: "500m"
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /healthz
|
|
port: 8080
|
|
initialDelaySeconds: 30
|
|
periodSeconds: 30
|
|
failureThreshold: 3
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /healthz
|
|
port: 8080
|
|
initialDelaySeconds: 10
|
|
periodSeconds: 10
|
|
volumes:
|
|
- name: config
|
|
configMap:
|
|
name: searxng-config
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: searxng-svc
|
|
namespace: researchowl
|
|
spec:
|
|
selector:
|
|
app: searxng
|
|
ports:
|
|
- port: 8080
|
|
targetPort: 8080
|
|
type: ClusterIP
|