0
0

SearXNG: changed instance's name

This commit is contained in:
Opnxng 2024-03-29 10:03:21 +08:00
parent 5c844bdaef
commit 3d9ff9f9e6
4 changed files with 18 additions and 22 deletions

View File

@ -3,8 +3,8 @@ version: '3.7'
services:
redlib:
container_name: redlib
image: quay.io/redlib/redlib:latest
#image: quay.io/redlib/redlib:latest-arm
#image: quay.io/redlib/redlib:latest
image: quay.io/redlib/redlib:latest-arm
security_opt:
#- seccomp="seccomp-redlib.json"
- no-new-privileges
@ -16,6 +16,8 @@ services:
- LIBREDDIT_DEFAULT_SHOW_NSFW=on
- REDLIB_DEFAULT_THEME=black
- REDLIB_DEFAULT_SHOW_NSFW=on
- RUST_LOG=redlib=trace #logging on the crate
#- RUST_LOG=trace
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "--tries=1", "http://localhost:8080/settings"]

View File

@ -145,18 +145,17 @@
@l host l.{$HOSTNAME}
handle @l {
encode zstd gzip
reverse_proxy {{ vultr_private_ip }}:8882
# reverse_proxy {
# to {{ oracle1_private_ip }}:8882
# to {{ oracle2_private_ip }}:8882
# to {{ oracle3_private_ip }}:8882
# to {{ oracle4_private_ip }}:8882
# lb_policy ip_hash
# lb_try_duration 5s
# lb_try_interval 1s
# fail_duration 30s
# max_fails 3
# }
reverse_proxy {
to {{ oracle1_private_ip }}:8882
to {{ oracle2_private_ip }}:8882
to {{ oracle3_private_ip }}:8882
to {{ oracle4_private_ip }}:8882
lb_policy ip_hash
lb_try_duration 5s
lb_try_interval 1s
fail_duration 30s
max_fails 3
}
header {
Content-Security-Policy "default-src 'self';base-uri 'self';block-all-mixed-content;font-src 'self' https: data:;frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"
X-Robots-Tag "noindex, noimageindex, nosnippet, notranslate, noarchive, nofollow"

View File

@ -3,7 +3,7 @@ general:
# Debug mode, only for development. Is overwritten by ${SEARXNG_DEBUG}
debug: false
# displayed name
instance_name: "SearXNG"
instance_name: "OpnXNG"
# For example: https://example.com/privacy
privacypolicy_url: false
# use true to use your own donation page written in searx/info/en/donate.md
@ -217,11 +217,8 @@ hostname_replace:
'(.*\.)?youtube\.com$': 'invidious.fdn.fr'
'(.*\.)?youtu\.be$': 'invidious.fdn.fr'
'(.*\.)?youtube-noocookie\.com$': 'invidious.fdn.fr'
'(.*\.)?reddit\.com$': 'l.opnxng.com'
'(.*\.)?redd\.it$': 'l.opnxng.com'
# '(.*\.)?libi.opnxng\.com$': 'l.opnxng.com'
# '(.*\.)?reddit\.com$': 'old.reddit.com'
# '(.*\.)?redd\.it$': 'old.reddit.com'
'(.*\.)?reddit\.com$': 'libreddit.bus-hit.me'
'(.*\.)?redd\.it$': 'libreddit.bus-hit.me'
'(.*\.)?medium\.com$': 'm.opnxng.com'
'fandom\.com$': 'z.opnxng.com'
'dic\.academic\.ru$': 'akademik.bloat.cat'

View File

@ -5,8 +5,6 @@ config:
compose:
oracle4:
- paulgo
vultr:
- teddit
# ----------------------------------------------------------------------------------------------------