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 5, 2024
1 parent 3739f73 commit 2722a11
Showing 1 changed file with 8 additions and 23 deletions.
31 changes: 8 additions & 23 deletions dot_config/private_caddy/Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
email {$ACME_EMAIL:[email protected]}
auto_https disable_redirects

storage postgres {
connection_string {$POSTGRES_URL}
disable_ddl false
}
storage postgres {
connection_string postgresql://b:fwwzZ42AWEn1NfwtIPTgyw@flat-whale-1399.8nk.gcp-asia-southeast1.cockroachlabs.cloud:26257/defaultdb?sslmode=require&options=--cluster%3Dflat-whale-1399
disable_ddl false
}

order replace after encode
servers {
Expand Down 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 2722a11

Please sign in to comment.