hadadrjt commited on
Commit
7aa0021
·
1 Parent(s): 5de0892

OpenWebUI: Initial here.

Browse files

* This is no longer necessary, as there is a fork of:
https://huggingface.co/spaces/umint/ai/tree/main

Dockerfile CHANGED
@@ -18,32 +18,6 @@ COPY --chown=$UID:$GID src/database/webui.db /app/backend/data/
18
  # Set the database permission
19
  RUN chmod 777 /app/backend/data/webui.db
20
 
21
- # Search Engine Optimization (SEO)
22
- # Robots Exclusion Protocol
23
- RUN search='<meta name="robots" content="noindex,nofollow"' && \
24
- replace='<meta name="robots" content="index,follow"' && \
25
- find /app -type f -name '*.html' -exec grep -l "$search" {} \; | \
26
- while IFS= read -r file; do \
27
- echo "Processing: $file" && \
28
- if sed -i "s|$search|$replace|g" "$file"; then \
29
- echo "Success: $file updated"; \
30
- else \
31
- echo "Error: failed to update $file"; \
32
- exit 1; \
33
- fi; \
34
- done
35
- # https://umint-ai.hf.space/robots.txt
36
- COPY --chown=$UID:$GID src/crawlers/robots.txt /app/build/
37
- # Sitemaps
38
- # https://umint-ai.hf.space/sitemap.xml
39
- COPY --chown=$UID:$GID src/crawlers/sitemap.xml /app/build/
40
- # Google Search Console Tools
41
- # https://umint-ai.hf.space/google15aba15fe250d693.html
42
- COPY --chown=$UID:$GID src/webmasters/google.html /app/build/google15aba15fe250d693.html
43
- # Bing Webmaster Tools
44
- # https://umint-ai.hf.space/BingSiteAuth.xml
45
- COPY --chown=$UID:$GID src/webmasters/bing.xml /app/build/BingSiteAuth.xml
46
-
47
  # Open the port so the application can be accessed
48
  EXPOSE 8000
49
 
 
18
  # Set the database permission
19
  RUN chmod 777 /app/backend/data/webui.db
20
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
21
  # Open the port so the application can be accessed
22
  EXPOSE 8000
23
 
src/crawlers/robots.txt DELETED
@@ -1,4 +0,0 @@
1
- User-agent: *
2
- Allow: /
3
-
4
- Sitemap: https://umint-ai.hf.space/sitemap.xml
 
 
 
 
 
src/crawlers/sitemap.xml DELETED
@@ -1,12 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!--
3
- SPDX-FileCopyrightText: Hadad <[email protected]>
4
- SPDX-License-Identifier: MIT
5
- -->
6
- <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
7
- <url>
8
- <loc>https://umint-ai.hf.space</loc>
9
- <changefreq>daily</changefreq>
10
- <priority>1.0</priority>
11
- </url>
12
- </urlset>
 
 
 
 
 
 
 
 
 
 
 
 
 
src/webmasters/bing.xml DELETED
@@ -1,4 +0,0 @@
1
- <?xml version="1.0"?>
2
- <users>
3
- <user>6F0E69E47393F89FAEEEE8B9212EBAE4</user>
4
- </users>
 
 
 
 
 
src/webmasters/google.html DELETED
@@ -1 +0,0 @@
1
- google-site-verification: google15aba15fe250d693.html