自托管搜索引擎whoogle
https://github.com/benbusby/whoogle-search
安装:
sudo pip install whoogle-search
启动文件
/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
启动&自启动
systemctl start whoogle systemctl enable whoogle
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
- 参考
https://zhen.bushini.de/15026.html