差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

后一修订版
前一修订版
it:skills:searxng [2022-08-26 08:13] – 创建 goldentianyait:skills:searxng [2023-09-16 07:31] (当前版本) goldentianya
行 1: 行 1:
 ====== Searxng 搜索引擎 ====== ====== Searxng 搜索引擎 ======
  
-[[https://docs.searxng.org/admin/installation-docker.html|Docker 文档]]+[[https://docs.searxng.org/admin/installation-docker.html|Docker 文档]] [[https://blog.laoda.de/archives/docker-compose-install-searxng|播主文档]]
  
 1. 拉取镜像 <color #ff7f27>''%%docker pull searxng/searxng%%''</color> 1. 拉取镜像 <color #ff7f27>''%%docker pull searxng/searxng%%''</color>
  
-2. 安装 +2. 安装 (<wrap lo>BASE_URL=http://localhost:$PORT/</wrap>) 
-<code | download>+<code> 
 +mkdir /root/searxng 
 +cd /root/searxng 
 docker run --rm \ docker run --rm \
 -d -p 8080:8080 \ -d -p 8080:8080 \
--v "${PWD}/searxng:/etc/searxng"+-v "/root/searxng/searxng:/etc/searxng"
--e "BASE_URL=http://localhost:$PORT/" \+-e "BASE_URL=https://xng.yfmai.eu.org/" \
 -e "INSTANCE_NAME=searxng" \ -e "INSTANCE_NAME=searxng" \
 searxng/searxng searxng/searxng
 +
 +docker update --restart unless-stopped  zealous_cohen
 </code> </code>
 +
 +3. Nginx 反向代理端口
 +++++ xng.yfmai.eu.org |
 +<code | download>
 +server {
 +    server_name  xng.yfmai.eu.org;
 +
 +    #将所有请求转发给demo_pool池的应用处理
 +    location / {
 +        proxy_pass http://127.0.0.1:8080; #$request_uri;
 +        proxy_set_header Host $host;
 +        # see flaskfix.py
 +        proxy_set_header   X-Scheme         $scheme;
 +        proxy_set_header   X-Script-Name    /searxng;
 +        proxy_set_header X-Real-IP $remote_addr;
 +        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
 +        proxy_set_header Via "nginx";
 +    }
 +
 +    listen 443 ssl; # managed by Certbot
 +    ssl_certificate /root/ssl-keys/yfmai/fullchain.pem;
 +    ssl_certificate_key /root/ssl-keys/yfmai/private.key;
 +}
 +
 +
 +server {
 +    if ($host = xng.yfmai.eu.org) {
 +        return 301 https://$host$request_uri;
 +    }
 +
 +    listen 80;
 +    server_name  xng.yfmai.eu.org;
 +    return 404; # managed by Certbot
 +}
 +</code>
 +++++
 +
 +自动启动docker容器
 +<code>
 +mkdir /root/searxng
 +cd /root/searxng
 +
 +docker run --restart always \
 +-d -p 8080:8080 \
 +-v "/root/searxng/searxng:/etc/searxng" \
 +-e "BASE_URL=https://xng.yfmai.eu.org/" \
 +-e "INSTANCE_NAME=searxng" \
 +searxng/searxng
 +</code>
 +
 +
it/skills/searxng.1661501637.txt.gz · 最后更改: 2022-08-26 08:13 由 goldentianya
回到顶部
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0