update conf/homepage
authorShane Jaroch <chown_tee@proton.me>
Wed, 21 Jan 2026 20:50:27 +0000 (15:50 -0500)
committerShane Jaroch <chown_tee@proton.me>
Wed, 21 Jan 2026 20:52:28 +0000 (15:52 -0500)
etc/nginx/conf.d/default.dev.conf
etc/nginx/conf.d/default.prod.conf
scripts/gen_services_map.py
scripts/gitweb-simplefrontend/services.html
scripts/homepage.html

index 7ef1660443959bbb813581914e8755ccf592c2b7..d3bd2e9c0f9026d364d35bea70a08c2fec025475 100644 (file)
@@ -105,6 +105,7 @@ server {
   index homepage.html;
 
   location / {
+    ssi on;
     try_files $uri $uri/ =404;
   }
 
index 39122c398be8821641feaae0ea160901a840b024..0af80c03e4fca55c7fc1e771854c5e2547c223f7 100644 (file)
@@ -114,6 +114,7 @@ server {
   index homepage.html;
 
   location / {
+    ssi on;
     try_files $uri $uri/ =404;
   }
 
index 66f22474924a470feee208d49e0c313e8c3f7ec1..c8bcf3c469e15aa5fa075bc416531d29d0f73286 100755 (executable)
@@ -1,6 +1,7 @@
 #!/usr/bin/env python3
 import os
 import re
+from datetime import datetime
 from pathlib import Path
 
 # Paths relative to repo root
@@ -23,6 +24,8 @@ HTML_TEMPLATE = """<!DOCTYPE html>
         .service a:hover {{ text-decoration: underline; }}
         .desc {{ margin-bottom: 0.5rem; }}
         .meta {{ font-size: 0.85em; color: #666; }}
+        footer {{ margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid #eee; font-size: 0.8em; color: #888; text-align: center; }}
+        footer .ssi {{ font-family: monospace; background: #f5f5f5; padding: 0.2em 0.5em; border-radius: 3px; }}
     </style>
 </head>
 <body>
@@ -31,6 +34,12 @@ HTML_TEMPLATE = """<!DOCTYPE html>
 
     {content}
 
+    <footer>
+        <p>Built: {build_time} | Services: {service_count}</p>
+        <p>Nginx: <span class="ssi">v<!--#echo var="nginx_version"--></span> |
+           Served: <span class="ssi"><!--#echo var="date_local"--></span> |
+           Request: <span class="ssi"><!--#echo var="request_uri"--></span></p>
+    </footer>
 </body>
 </html>"""
 
@@ -123,7 +132,12 @@ def generate_html(title, groups, intro_html=None):
             <div class="desc">{s['description']}</div>
         </div>"""
 
-    return HTML_TEMPLATE.format(title=title, content=content_html)
+    return HTML_TEMPLATE.format(
+        title=title,
+        content=content_html,
+        build_time=datetime.now().strftime("%Y-%m-%d %H:%M:%S %Z"),
+        service_count=sum(len(g[1]) for g in groups),
+    )
 
 
 def main():
index 44b7d40e135987c5fb099349f2b5d4e760451100..6616b188271a244add1ed4640f57d67dfa0b4697 100644 (file)
@@ -13,6 +13,8 @@
         .service a:hover { text-decoration: underline; }
         .desc { margin-bottom: 0.5rem; }
         .meta { font-size: 0.85em; color: #666; }
+        footer { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid #eee; font-size: 0.8em; color: #888; text-align: center; }
+        footer .ssi { font-family: monospace; background: #f5f5f5; padding: 0.2em 0.5em; border-radius: 3px; }
     </style>
 </head>
 <body>
             <div class="desc">Gitea (Full Server with Backend, Main)</div>
         </div>
 
+    <footer>
+        <p>Built: 2026-01-21 15:51:38  | Services: 3</p>
+        <p>Nginx: <span class="ssi">v<!--#echo var="nginx_version"--></span> |
+           Served: <span class="ssi"><!--#echo var="date_local"--></span> |
+           Request: <span class="ssi"><!--#echo var="request_uri"--></span></p>
+    </footer>
 </body>
 </html>
\ No newline at end of file
index 394c45ecd296f79863f011e2e4574f908b860699..f05c10a5416829b7a346a0cb803e14353093fb3a 100644 (file)
@@ -13,6 +13,8 @@
         .service a:hover { text-decoration: underline; }
         .desc { margin-bottom: 0.5rem; }
         .meta { font-size: 0.85em; color: #666; }
+        footer { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid #eee; font-size: 0.8em; color: #888; text-align: center; }
+        footer .ssi { font-family: monospace; background: #f5f5f5; padding: 0.2em 0.5em; border-radius: 3px; }
     </style>
 </head>
 <body>
             <div class="desc">Gitea (Full Server with Backend, Main)</div>
         </div>
 
+    <footer>
+        <p>Built: 2026-01-21 15:51:38  | Services: 6</p>
+        <p>Nginx: <span class="ssi">v<!--#echo var="nginx_version"--></span> |
+           Served: <span class="ssi"><!--#echo var="date_local"--></span> |
+           Request: <span class="ssi"><!--#echo var="request_uri"--></span></p>
+    </footer>
 </body>
 </html>
\ No newline at end of file