From e31c732a5e8d0e1212624718de9738560396ab49 Mon Sep 17 00:00:00 2001 From: rafa_99 Date: Sun, 24 Apr 2022 18:28:42 +0100 Subject: Fixed some hostname problems --- searx/deploy | 1 + searx/searx/settings.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/searx/deploy b/searx/deploy index 2c8ef56..998b393 100755 --- a/searx/deploy +++ b/searx/deploy @@ -22,6 +22,7 @@ sudo -H -u searx /usr/local/searx/searx-pyenv/bin/pip install -e "/usr/local/sea ## Configuring SearX sudo -H cp -rf "searx/" "/etc/" +sudo -H sed -i s:YOURHOSTNAME:"$(hostname)":g /etc/searx/settings.yml # uwsgi sudo -H cp -rf uwsgi/ /etc/ diff --git a/searx/searx/settings.yml b/searx/searx/settings.yml index 6b50a92..351ed45 100644 --- a/searx/searx/settings.yml +++ b/searx/searx/settings.yml @@ -13,7 +13,7 @@ server: port : 8888 bind_address : "127.0.0.1" # address to listen on secret_key : "" # change this! - base_url : "https://127.0.0.1/searx" # Set custom base_url. Possible values: False or "https://your.custom.host/location/" + base_url : "https://YOURHOSTNAME/searx" # Set custom base_url. Possible values: False or "https://your.custom.host/location/" image_proxy : False # Proxying image results through searx ui: -- cgit v1.2.3