https://github.com/benbusby/whoogle-search
Snipaste_2022-04-02_15-36-01.JPG

  1. 安装:

    sudo pip install whoogle-search
  2. 启动文件/lib/systemd/system/whoogle.service

    [Unit]
    Description=Whoogle
    After=network.target
    [Service]
    Type=simple
    User=root
    WorkingDirectory={whoogle-search所在目录}
    ExecStart={whoogle-search路径} --host 127.0.0.1 --port 5000 --userpass {访问用户名:密码}
    ExecReload=/bin/kill -HUP $MAINPID
    Restart=on-failure
    [Install]
    WantedBy=multi-user.target
  3. 启动&自启动

    systemctl start whoogle
    systemctl enable whoogle
  4. nginx反代
    nginx虚拟服务器设置

    server {
     server_name 子域名;
     location / {
         proxy_pass 目标URL;
         proxy_set_header Host $host;
         proxy_set_header X-Real-IP $remote_addr;
     }
    }

    重启nginx,设置https

    systemctl restart nginx
    certbot --nginx
  5. 参考
    https://zhen.bushini.de/15026.html

标签: none

添加新评论