add configs to searngx
Some checks failed
Check Kubernetes YAMLs / scan (push) Failing after 29s

This commit is contained in:
Lee 2024-09-24 07:17:17 +01:00
parent 60cad84180
commit cb18fc6991
4 changed files with 56 additions and 0 deletions

View File

@ -0,0 +1,25 @@
---
apiVersion: v1
kind: ConfigMap
metadata:
name: searxng-config
data:
limiter.toml: |
# This configuration file updates the default configuration file
# See https://github.com/searxng/searxng/blob/master/searx/limiter.toml
[botdetection.ip_limit]
# activate link_token method in the ip_limit method
link_token = true
settings.yml: |
# 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
limiter: true # can be disabled for a private instance
image_proxy: false
ui:
static_use_hash: true
redis:
url: redis://redis:6379/0

View File

@ -22,6 +22,15 @@ spec:
env:
- name: SEARXNG_BASE_URL
value: "https://search.fascinated.cc"
- name: SEARXNG_SECRET_KEY
valueFrom:
secretKeyRef:
name: searxng-secret
key: secret_key
volumeMounts:
- name: searxng-config-volume
mountPath: /etc/searxng
readOnly: true
resources:
requests:
memory: "256Mi"
@ -29,3 +38,7 @@ spec:
limits:
memory: "512Mi"
cpu: "500m"
volumes:
- name: searxng-config-volume
configMap:
name: searxng-config

View File

@ -4,6 +4,8 @@ kind: Kustomization
namespace: public-services
resources:
- pvc.yaml
- config.yaml
- sealed-secrets.yaml
- redis-pod.yaml
- deployment.yaml
- service.yaml

View File

@ -0,0 +1,16 @@
---
apiVersion: bitnami.com/v1alpha1
kind: SealedSecret
metadata:
creationTimestamp: null
name: searxng-secret
namespace: public-services
spec:
encryptedData:
secret_key: AgC0GFaPKSBszjmam9HxhhPIKPj3aTaa7BtMEJJBaPUGRA7wPi/9utkHcQL5MG/1HB2nHwfVmBKQY/nmJaYIZBCE+MGjLljjVED37rNEj6PCTcptA/b27+Rnbn7XxH8Zt19uBZapWf0TO8EZaHu/6B9cYIiThlQ0o5+Im7nwuMoYymQSpxMAAr7O6i5cF4XaehYxiNhP1YfveW34Uit/VCMG8qyVi03YBnxsgUKdMeb8krAL2p5zH15ELSd6CprfYdkB8xTZkFYXxEctKyYywsI6ZEC3G0f2R+lcJ46e19wEEZSaCvT1Nviij/jdt4zafHjdQ+U3ZH69Sc83KwNxKJ3hDRdhM2Nl6wDrftl5IFtMFyk2fwOOPPxd8i096dmMBKzljgNgUYzbH4E3f4LBBjaoW0Nrdgkg0wEJplolfpiZVEOtlCm+Jm9tCxEWGEIkrysuZCv90kmd41fJb+k43/J5oY25gMMzUgqEryjR1fXXexgTQoNd1YKOft6DvWy6jZw/RjZWpwxmBHjtxKx9tbr0kwIx/ZCGAQhZ/4LjYCvmP9axV5h7anBbBgiVMA36BJq6nxg//wJ2GMy4CXlIs1oFpob0zTWOg/aCPwzTfK2GrzYXH6xLFqN1ueTdXSxNjb6qi4aOwOFtmZ9z53ffT/XeKyHVgXsLCt6THc1TJVzaqeHL7eM93RtPWlSezdSf84MfzewokisJd3TD3dDoSzhob43ckHlbFV7lbclzPBUAdw==
template:
metadata:
creationTimestamp: null
name: searxng-secret
namespace: public-services
type: Opaque