fixes for better serving magosit.hu

This commit is contained in:
Richard Thier 2024-09-10 21:22:48 +02:00
parent bfe35a1c5b
commit bf8f4a3f69
2 changed files with 4 additions and 3 deletions

View File

@ -646,8 +646,8 @@ def main():
os.chdir('build')
handler = http.server.SimpleHTTPRequestHandler
httpd = TCPServerV4(("", 9000), handler)
print('Start server on http://localhost:9000')
httpd = TCPServerV4(("", 8080), handler)
print('Start server on http://localhost:8080')
try:
httpd.serve_forever()
except (KeyboardInterrupt, SystemExit):

View File

@ -8,7 +8,8 @@
{% for gallery in galleries_line|reverse %}<!-- comment tricks against space between inline-block
--><div class="gallery-square">
<div class="subgaldiv">
<a href="{{ gallery.link }}">
{# The ending '/' is really needed here for uWebsockets serving these! #}
<a href="{{ gallery.link }}/">
<div class="gallery-title">
<h2>{{ gallery.title }}</h2>
{% if gallery.sub_title %}<h3>{{ gallery.sub_title }}</h3>{% endif %}