Explorar o código

Fixed robot and humans txt file and updated human.tt

user %!s(int64=4) %!d(string=hai) anos
pai
achega
a41fba0162
Modificáronse 3 ficheiros con 21 adicións e 3 borrados
  1. 2 2
      main.router.go
  2. 18 1
      web/humans.txt
  3. 1 0
      web/login.system

+ 2 - 2
main.router.go

@@ -23,8 +23,8 @@ func mrouter(h http.Handler) http.Handler {
 			You can also check the path for url using r.URL.Path
 		*/
 
-		if r.URL.Path == "/favicon.ico" || r.URL.Path == "/manifest.webmanifest" {
-			//Serving favicon or manifest. Allow no auth access.
+		if r.URL.Path == "/favicon.ico" || r.URL.Path == "/manifest.webmanifest" || r.URL.Path == "/robots.txt" || r.URL.Path == "/humans.txt" {
+			//Serving web specification files. Allow no auth access.
 			h.ServeHTTP(w, r)
 		} else if r.URL.Path == "/login.system" {
 			//Login page. Require special treatment for template.

+ 18 - 1
web/humans.txt

@@ -1 +1,18 @@
-ArozOS is a web desktop online system that provide native desktop like experience through the latest web technology. Protecting your privacy while reducing your dependencies over large company's cloud service. If you'd like to help us out, see github.com/tobychui/arozos.
+                                                               
+                                                               
+      db                                  .g8""8q.    .M"""bgd 
+     ;MM:                               .dP'    `YM. ,MI    "Y 
+    ,V^MM.    `7Mb,od8 ,pW"Wq.  M"""MMV dM'      `MM `MMb.     
+   ,M  `MM      MM' "'6W'   `Wb '  AMV  MM        MM   `YMMNq. 
+   AbmmmqMA     MM    8M     M8   AMV   MM.      ,MP .     `MM 
+  A'     VML    MM    YA.   ,A9  AMV  , `Mb.    ,dP' Mb     dM 
+.AMA.   .AMMA..JMML.   `Ybmd9'  AMMmmmM   `"bmmd"'   P"Ybmmd"  
+                                                               
+                                                               
+Congratulation! You find the magic file hidden in the ArozOS system.
+
+ArozOS is a web desktop online system that provide native desktop like experience through 
+the latest web technology. Protecting your privacy while reducing your dependencies over 
+large company's cloud service. 
+
+If you'd like to help us out on this open souce project, see github.com/tobychui/arozos.

+ 1 - 0
web/login.system

@@ -4,6 +4,7 @@
     <meta charset="UTF-8">
     <meta name="robots" content="noindex" />
     <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
+    <link rel="author" href="humans.txt"/>
     <title>ArozOS - Login</title>
     <link rel="stylesheet" href="script/tocas/tocas.css">
     <link rel="stylesheet" href="script/ao.css">