Browse Source

new: [searx] add charm

Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
pull/1/head
Valentin Lab 4 years ago
parent
commit
4206880520
  1. 12
      searx/hooks/web_proxy-relation-joined
  2. 16
      searx/metadata.yml

12
searx/hooks/web_proxy-relation-joined

@ -0,0 +1,12 @@
#!/bin/bash
set -e
URL=$(relation-get url) || exit 1
config-add "\
services:
$MASTER_BASE_SERVICE_NAME:
environment:
BASE_URL: $URL
"

16
searx/metadata.yml

@ -0,0 +1,16 @@
docker-image: docker.0k.io/searx:0.18.0-237 ## from: searx/searx:0.18.0-237-e2fb5008
config-resources:
- /etc/searx
default-options:
uses:
web-proxy:
#constraint: required | recommended | optional
#auto: pair | summon | none ## default: pair
constraint: recommended
auto: pair
solves:
proxy: "Public access"
default-options:
target: !var-expand ${MASTER_BASE_SERVICE_NAME}:8080
Loading…
Cancel
Save