From: Shane Jaroch Date: Wed, 21 Jan 2026 20:50:27 +0000 (-0500) Subject: update conf/homepage X-Git-Url: https://git.nutra.tk/v1?a=commitdiff_plain;h=5e1334c7b793277bfd20cd151d465dbafb9e809b;p=nutratech%2Fvps-root.git update conf/homepage --- diff --git a/etc/nginx/conf.d/default.dev.conf b/etc/nginx/conf.d/default.dev.conf index 7ef1660..d3bd2e9 100644 --- a/etc/nginx/conf.d/default.dev.conf +++ b/etc/nginx/conf.d/default.dev.conf @@ -105,6 +105,7 @@ server { index homepage.html; location / { + ssi on; try_files $uri $uri/ =404; } diff --git a/etc/nginx/conf.d/default.prod.conf b/etc/nginx/conf.d/default.prod.conf index 39122c3..0af80c0 100644 --- a/etc/nginx/conf.d/default.prod.conf +++ b/etc/nginx/conf.d/default.prod.conf @@ -114,6 +114,7 @@ server { index homepage.html; location / { + ssi on; try_files $uri $uri/ =404; } diff --git a/scripts/gen_services_map.py b/scripts/gen_services_map.py index 66f2247..c8bcf3c 100755 --- a/scripts/gen_services_map.py +++ b/scripts/gen_services_map.py @@ -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 = """ .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; }} @@ -31,6 +34,12 @@ HTML_TEMPLATE = """ {content} + """ @@ -123,7 +132,12 @@ def generate_html(title, groups, intro_html=None):
{s['description']}
""" - 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(): diff --git a/scripts/gitweb-simplefrontend/services.html b/scripts/gitweb-simplefrontend/services.html index 44b7d40..6616b18 100644 --- a/scripts/gitweb-simplefrontend/services.html +++ b/scripts/gitweb-simplefrontend/services.html @@ -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; } @@ -33,5 +35,11 @@
Gitea (Full Server with Backend, Main)
+ \ No newline at end of file diff --git a/scripts/homepage.html b/scripts/homepage.html index 394c45e..f05c10a 100644 --- a/scripts/homepage.html +++ b/scripts/homepage.html @@ -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; } @@ -48,5 +50,11 @@
Gitea (Full Server with Backend, Main)
+ \ No newline at end of file