fix : start_service.sh & compose
This commit is contained in:
+1
-2
@@ -30,10 +30,9 @@ services:
|
|||||||
- "8080:8080"
|
- "8080:8080"
|
||||||
volumes:
|
volumes:
|
||||||
- ./searxng:/etc/searxng:rw
|
- ./searxng:/etc/searxng:rw
|
||||||
- ./searxng/entrypoint.sh:/usr/local/bin/searxng-entrypoint.sh:ro
|
|
||||||
entrypoint: /usr/local/bin/searxng-entrypoint.sh
|
|
||||||
environment:
|
environment:
|
||||||
- SEARXNG_BASE_URL=http://localhost:8080/
|
- SEARXNG_BASE_URL=http://localhost:8080/
|
||||||
|
- SEARXNG_SECRET_KEY=$(openssl rand -hex 32)
|
||||||
- UWSGI_WORKERS=4
|
- UWSGI_WORKERS=4
|
||||||
- UWSGI_THREADS=4
|
- UWSGI_THREADS=4
|
||||||
cap_add:
|
cap_add:
|
||||||
|
|||||||
@@ -1,9 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# entrypoint for docker searxng service
|
|
||||||
|
|
||||||
SECRET_KEY=$(openssl rand -hex 32)
|
|
||||||
|
|
||||||
sed -i "s/ultrasecretkey/$SECRET_KEY/g" /etc/searxng/settings.yml
|
|
||||||
|
|
||||||
exec /usr/local/searxng/dockerfiles/docker-entrypoint.sh "$@"
|
|
||||||
@@ -95,7 +95,7 @@ server:
|
|||||||
# If your instance owns a /etc/searxng/settings.yml 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: "ultrasecretkey" # Is overwritten by ${SEARXNG_SECRET}
|
secret_key: "supersecret" # Is overwritten by ${SEARXNG_SECRET},W
|
||||||
# Proxy image results through SearXNG. Is overwritten by ${SEARXNG_IMAGE_PROXY}
|
# Proxy image results through SearXNG. Is overwritten by ${SEARXNG_IMAGE_PROXY}
|
||||||
image_proxy: false
|
image_proxy: false
|
||||||
# 1.0 and 1.1 are supported
|
# 1.0 and 1.1 are supported
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ server:
|
|||||||
# If your instance owns a /etc/searxng/settings.yml 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: "7e1e975e77322d8a27f0cc403e6dbd4cd8f75336358bf5c88c0ddd83d7be78dc" # Is overwritten by ${SEARXNG_SECRET}
|
secret_key: "a0f32049a2301f36ef012b9b7ef62733b4af1379a1d28d5c33d92cea37288182" # Is overwritten by ${SEARXNG_SECRET}
|
||||||
# Proxy image results through SearXNG. Is overwritten by ${SEARXNG_IMAGE_PROXY}
|
# Proxy image results through SearXNG. Is overwritten by ${SEARXNG_IMAGE_PROXY}
|
||||||
image_proxy: false
|
image_proxy: false
|
||||||
# 1.0 and 1.1 are supported
|
# 1.0 and 1.1 are supported
|
||||||
|
|||||||
@@ -1,7 +0,0 @@
|
|||||||
|
|
||||||
def print_hello():
|
|
||||||
hello = "Hello World"
|
|
||||||
print(hello)
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
|
||||||
print_hello()
|
|
||||||
@@ -16,6 +16,7 @@ class FlightSearch(Tools):
|
|||||||
"""
|
"""
|
||||||
super().__init__()
|
super().__init__()
|
||||||
self.tag = "flight_search"
|
self.tag = "flight_search"
|
||||||
|
self.api_key = None
|
||||||
self.api_key = api_key or os.getenv("AVIATIONSTACK_API_KEY")
|
self.api_key = api_key or os.getenv("AVIATIONSTACK_API_KEY")
|
||||||
|
|
||||||
def execute(self, blocks: str, safety: bool = True) -> str:
|
def execute(self, blocks: str, safety: bool = True) -> str:
|
||||||
|
|||||||
@@ -31,7 +31,6 @@ class Tools():
|
|||||||
"""
|
"""
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.tag = "undefined"
|
self.tag = "undefined"
|
||||||
self.api_key = None
|
|
||||||
self.client = None
|
self.client = None
|
||||||
self.messages = []
|
self.messages = []
|
||||||
self.logger = Logger("tools.log")
|
self.logger = Logger("tools.log")
|
||||||
|
|||||||
Reference in New Issue
Block a user