Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps - Status | Demo | Docs | Install
  1. Cloudron Forum
  2. OpenWebUI
  3. Web Search with Searxng

Web Search with Searxng

Scheduled Pinned Locked Moved OpenWebUI
7 Posts 2 Posters 3.4k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    taowang
    wrote on last edited by
    #1

    How to use Open WebUI with Searxng instance?

    https://docs.openwebui.com/tutorial/web_search

    Is it possible to connect Open WebUI and Searxng on Cloudron?

    Shoud I just add these env variables to the env.sh file via file manager?

      ENABLE_RAG_WEB_SEARCH: True
      RAG_WEB_SEARCH_ENGINE: "searxng"
      RAG_WEB_SEARCH_RESULT_COUNT: 3
      RAG_WEB_SEARCH_CONCURRENT_REQUESTS: 10
      SEARXNG_QUERY_URL: "http://searxng:8080/search?q=<query>"
    

    And I tried to change the favicon of open webui, but it did not work.
    d458a6af-53a8-415c-83a8-ebfc5ce75b42-image.png
    I added STATIC_DIR=/app/data/images
    And I replaced the default favicon with my logo.
    But after restarting the app, the default favicon came back, and my logo disappeared.

    J 2 Replies Last reply
    2
    • T taowang

      How to use Open WebUI with Searxng instance?

      https://docs.openwebui.com/tutorial/web_search

      Is it possible to connect Open WebUI and Searxng on Cloudron?

      Shoud I just add these env variables to the env.sh file via file manager?

        ENABLE_RAG_WEB_SEARCH: True
        RAG_WEB_SEARCH_ENGINE: "searxng"
        RAG_WEB_SEARCH_RESULT_COUNT: 3
        RAG_WEB_SEARCH_CONCURRENT_REQUESTS: 10
        SEARXNG_QUERY_URL: "http://searxng:8080/search?q=<query>"
      

      And I tried to change the favicon of open webui, but it did not work.
      d458a6af-53a8-415c-83a8-ebfc5ce75b42-image.png
      I added STATIC_DIR=/app/data/images
      And I replaced the default favicon with my logo.
      But after restarting the app, the default favicon came back, and my logo disappeared.

      J Offline
      J Offline
      joseph
      Staff
      wrote on last edited by
      #2

      @taowang said in Web Search with Searxng:

      Shoud I just add these env variables to the env.sh file via file manager?

      yes. Remember to add export keyword in front of those. Each like should be like export ENABLE_RAG_WEB_SEARCH=True

      And remember to remove the port 8080 in the SEARXNG_QUERY_URL (on Cloudron, it would be standard https port 443, best to remove the port altogether)/

      1 Reply Last reply
      1
      • T taowang

        How to use Open WebUI with Searxng instance?

        https://docs.openwebui.com/tutorial/web_search

        Is it possible to connect Open WebUI and Searxng on Cloudron?

        Shoud I just add these env variables to the env.sh file via file manager?

          ENABLE_RAG_WEB_SEARCH: True
          RAG_WEB_SEARCH_ENGINE: "searxng"
          RAG_WEB_SEARCH_RESULT_COUNT: 3
          RAG_WEB_SEARCH_CONCURRENT_REQUESTS: 10
          SEARXNG_QUERY_URL: "http://searxng:8080/search?q=<query>"
        

        And I tried to change the favicon of open webui, but it did not work.
        d458a6af-53a8-415c-83a8-ebfc5ce75b42-image.png
        I added STATIC_DIR=/app/data/images
        And I replaced the default favicon with my logo.
        But after restarting the app, the default favicon came back, and my logo disappeared.

        J Offline
        J Offline
        joseph
        Staff
        wrote on last edited by
        #3

        @taowang said in Web Search with Searxng:

        I added STATIC_DIR=/app/data/images

        Remember to add export in front (if you missed it)! On Cloudron, if a file ends with .sh, it is a shell script and thus needs export.

        Per https://github.com/open-webui/open-webui/blob/9518111ed30f921bf921edf123bb0d003c9c6741/backend/config.py#L451 , if you have favicon.png and splash.png it is supposed to work.

        T 1 Reply Last reply
        1
        • J joseph

          @taowang said in Web Search with Searxng:

          I added STATIC_DIR=/app/data/images

          Remember to add export in front (if you missed it)! On Cloudron, if a file ends with .sh, it is a shell script and thus needs export.

          Per https://github.com/open-webui/open-webui/blob/9518111ed30f921bf921edf123bb0d003c9c6741/backend/config.py#L451 , if you have favicon.png and splash.png it is supposed to work.

          T Offline
          T Offline
          taowang
          wrote on last edited by
          #4

          @joseph

          These logos do not persist. They change back to the default logos after restarts.

          1af52978-8696-48da-b44f-ff94bc8efd27-image.png
          f59c227f-a0d4-43fc-9b66-ea42f795aa2e-image.png

          And can I change the url to SEARXNG_QUERY_URL: "http://searxng.riverhill.ai/search?q=<query>"

          Since I already have a searxng intance outside cloudron.

          1 Reply Last reply
          0
          • J Offline
            J Offline
            joseph
            Staff
            wrote on last edited by
            #5

            @taowang let me try this and get back

            T 1 Reply Last reply
            0
            • J joseph

              @taowang let me try this and get back

              T Offline
              T Offline
              taowang
              wrote on last edited by
              #6

              @joseph

              I found the root cause already. There is a script in the config.py file that downloads the logo and favicon from openwebui.com to override the png files in the static folder.

              I need to edit config.py and /src/app.html in order to use custom site name, logo and favicon. I uploaded the png files to jsdelivr and changed the code of my local instance.

              So on cloudron, you might need to put these 2 files in the /app/data folder so that users can customize the png URLs and site name.

              J 1 Reply Last reply
              1
              • T taowang

                @joseph

                I found the root cause already. There is a script in the config.py file that downloads the logo and favicon from openwebui.com to override the png files in the static folder.

                I need to edit config.py and /src/app.html in order to use custom site name, logo and favicon. I uploaded the png files to jsdelivr and changed the code of my local instance.

                So on cloudron, you might need to put these 2 files in the /app/data folder so that users can customize the png URLs and site name.

                J Offline
                J Offline
                joseph
                Staff
                wrote on last edited by
                #7

                @taowang maybe worth reporting upstream? I think config.py is source code and not a configurable file. Even in their docker it's not stashed.

                1 Reply Last reply
                0
                • T taowang referenced this topic on

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Bookmarks
                • Search