-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
8 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 { | ||
|
@@ -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 { | ||
|
@@ -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 | ||
|