Skip to content

Commit

Permalink
use other searxng upstreams
Browse files Browse the repository at this point in the history
  • Loading branch information
contrun committed Oct 12, 2024
1 parent 1ff440d commit 71e031e
Showing 1 changed file with 4 additions and 19 deletions.
23 changes: 4 additions & 19 deletions dot_config/private_caddy/Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@
oauth identity provider generic {
realm generic
driver generic
client_id {$OIDC_CLIENT_ID}
client_secret {$OIDC_CLIENT_SECRET}
client_id {env.OIDC_CLIENT_ID}
client_secret {env.OIDC_CLIENT_SECRET}
scopes openid email profile
base_auth_url {$OIDC_BASE_URL}
metadata_url {$OIDC_BASE_URL}/.well-known/openid-configuration
base_auth_url {env.OIDC_BASE_URL}
metadata_url {env.OIDC_BASE_URL}/.well-known/openid-configuration
}

authentication portal myportal {
Expand Down Expand Up @@ -132,21 +132,6 @@ localhost:{$CADDY_PORT:2016} 127.0.0.1:{$CADDY_PORT:2016} :{$CADDY_PORT:2016} {
respond "Hello, world!"
}

handle /searxng* {
# TODO: Check if it is OK to reverse porxy their website
# They are selected from https://searx.space/
# Since we are serving searxng in a subpath, so we need to choose all
# websites with https://[DOMAIN]/searxng/ as the searx url.
reverse_proxy https://search.leptons.xyz https://search.nordh.tech https://searxng.site {
lb_policy first
fail_duration 30s
header_up -X-Forwarded-For
header_up -X-Forwarded-Proto
header_up -X-Forwarded-Host
header_up Host {upstream_hostport}
}
}

import app dufs http://localhost:5000
import app syncthing http://localhost:8384
import secured_app httpbin https://httpbin.org
Expand Down

0 comments on commit 71e031e

Please sign in to comment.