feat: Add SearXNG module and update infrastructure

- Introduced a new SearXNG module with configuration for Kubernetes deployment, service, and ingress.
- Updated existing Terraform app modules to include SearXNG in both dev-01 and prod-01 environments.
- Added necessary variables and secrets for SearXNG in the respective Terraform files.
- Updated Dockerfiles for llama.cpp and ollama to use latest versions.
- Enhanced security and hardening defaults in Kubernetes deployments.
- Improved documentation for Copilot instructions and Terraform workflows.
This commit is contained in:
2026-05-20 20:58:02 +02:00
parent dcf9a5c796
commit 829ab48919
24 changed files with 918 additions and 11 deletions
+11 -1
View File
@@ -5,7 +5,7 @@ module "open-webui" {
fqdn = local.open_webui_fqdn
ollama_proxy = local.ollama_proxy
secret_key = var.webui_secret_key
tag = "0.6-slim"
tag = "v0.9.2-slim"
log_level = local.open_webui_log_level
}
@@ -82,3 +82,13 @@ module "mstream" {
music_folder = local.mstream_music_folder
fqdn = local.mstream_fqdn
}
module "searxng" {
source = "../../modules/apps/searxng"
persistent_folder = local.searxng_folder
fqdn = local.searxng_fqdn
issuer = local.searxng_issuer
tag = "2026.5.2-aefc3c316"
secret_key = var.searxng_secret_key
}
+10
View File
@@ -111,6 +111,11 @@ locals {
name = "music"
type = "CNAME"
content = "dev-01.${local.lab_domain}."
},
{
name = "search"
type = "CNAME"
content = "dev-01.${local.lab_domain}."
}
]
}
@@ -234,6 +239,11 @@ locals {
# mstream
mstream_music_folder = "/mnt/storage/Music"
mstream_fqdn = "music.${local.lab_domain}"
# searxng
searxng_folder = "/mnt/md0/searxng"
searxng_fqdn = "search.${local.lab_domain}"
searxng_issuer = "letsencrypt-prod"
}
data "terraform_remote_state" "scaleway" {
+3
View File
@@ -16,5 +16,8 @@ provider "kubernetes" {
config_path = "~/.kube/config"
config_context = "microk8s-dev-01"
insecure = true
ignore_annotations = [
"kubectl.kubernetes.io.*",
]
}
+6
View File
@@ -27,3 +27,9 @@ variable "webui_secret_key" {
type = string
sensitive = true
}
variable "searxng_secret_key" {
description = "The secret key for SearXNG"
type = string
sensitive = true
}
+1
View File
@@ -6,3 +6,4 @@ TF_VAR_nextcloud_admin_password=$NEXTCLOUD_ADMIN_PASSWORD
TF_VAR_scaleway_project_id=$SCALEWAY_PROJECT_ID
TF_VAR_telegram_bot_token=$TELEGRAM_BOT_TOKEN
TF_VAR_webui_secret_key=$WEBUI_SECRET_KEY
TF_VAR_searxng_secret_key=$SEARXNG_SECRET_KEY