0
0

Removed 4get

This commit is contained in:
Opnxng 2023-11-14 19:35:34 +08:00
parent e25978b45f
commit 2a63245b54
5 changed files with 36 additions and 40 deletions

View File

@ -7,8 +7,8 @@
- name: Set up paulgo conf - name: Set up paulgo conf
template: template:
src: "conf/settings.yaml.j2" src: "conf/settings.yml.j2"
dest: "{{ docker_dir }}/paulgo/settings.yaml" dest: "{{ docker_dir }}/paulgo/settings.yml"
owner: 1000 owner: 1000
group: 1000 group: 1000
mode: 0755 mode: 0755

View File

@ -35,7 +35,7 @@ services:
depends_on: depends_on:
- redis - redis
volumes: volumes:
- {{ docker_dir }}/paulgo/settings.yaml:/usr/local/searxng/searx/settings.yaml - {{ docker_dir }}/paulgo/settings.yml:/usr/local/searxng/searx/settings.yml
- {{ docker_dir }}/paulgo/donate.md:/usr/local/searxng/searx/infopage/en/donate.md - {{ docker_dir }}/paulgo/donate.md:/usr/local/searxng/searx/infopage/en/donate.md
network_mode: host network_mode: host

View File

@ -544,29 +544,29 @@
} }
} }
@4g host 4g.{$HOSTNAME} # @4g host 4g.{$HOSTNAME}
handle @4g { # handle @4g {
encode zstd gzip # encode zstd gzip
@notstatic { # @notstatic {
not path /static/* /android-chrome* /favicon* /robots.txt /banner/* /site.webmanifest # not path /static/* /android-chrome* /favicon* /robots.txt /banner/* /site.webmanifest
} # }
rate_limit @notstatic {remote.ip} 2r/s 60000 500 # rate_limit @notstatic {remote.ip} 2r/s 60000 500
rate_limit @notstatic {remote.ip} 45r/m 300000 500 # rate_limit @notstatic {remote.ip} 45r/m 300000 500
reverse_proxy { # reverse_proxy {
to {{ oracle1_private_ip }}:8907 # to {{ oracle1_private_ip }}:8907
to {{ oracle2_private_ip }}:8907 # to {{ oracle2_private_ip }}:8907
to {{ oracle3_private_ip }}:8907 # to {{ oracle3_private_ip }}:8907
to {{ oracle4_private_ip }}:8907 # to {{ oracle4_private_ip }}:8907
lb_policy ip_hash # lb_policy ip_hash
lb_try_duration 5s # lb_try_duration 5s
lb_try_interval 1s # lb_try_interval 1s
fail_duration 30s # fail_duration 30s
max_fails 3 # max_fails 3
} # }
header { # header {
X-Robots-Tag "noindex, noimageindex, nosnippet, notranslate, noarchive, nofollow" # X-Robots-Tag "noindex, noimageindex, nosnippet, notranslate, noarchive, nofollow"
} # }
} # }
@ig host ig.{$HOSTNAME} @ig host ig.{$HOSTNAME}
handle @ig { handle @ig {

View File

@ -76,7 +76,7 @@ server:
base_url: "https://opnxng.com" base_url: "https://opnxng.com"
public_instance: true public_instance: true
# If your instance owns a /etc/searxng/settings.yaml file, then set the following # If your instance owns a /etc/searxng/settings.yml file, then set the following
# values there. # values there.
secret_key: "{{ paulgo_jwt_secret }}" # Is overwritten by ${SEARXNG_SECRET} secret_key: "{{ paulgo_jwt_secret }}" # Is overwritten by ${SEARXNG_SECRET}
# Proxying image results through searx # Proxying image results through searx

View File

@ -1,14 +1,10 @@
compose: config:
vultr:
- 4get
oracle1:
- 4get
oracle2:
- 4get
oracle3:
- 4get
oracle4: oracle4:
- 4get - paulgo
compose:
oracle4:
- paulgo
# ---------------------------------------------------------------------------------------------------- # ----------------------------------------------------------------------------------------------------