index.html.j2 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. #!ipxe
  2. #### {{ boot_domain }} initial loader ####
  3. #### see https://netboot.xyz for more information ####
  4. {% if bootloader_https_enabled | bool %}
  5. set conn_type https
  6. chain --autofree https://{{ boot_domain }}/menu.ipxe || echo HTTPS failed... attempting HTTP...
  7. {% endif %}
  8. {% if bootloader_http_enabled | bool %}
  9. set conn_type http
  10. chain --autofree http://{{ boot_domain }}/menu.ipxe || echo HTTP failed, localbooting...
  11. {% endif %}
  12. <!DOCTYPE html>
  13. <html lang="en">
  14. <head>
  15. <title>{{ site_name }} BootLoaders - Powered by netboot.xyz</title>
  16. </head>
  17. <style>
  18. table, th, td {
  19. padding: 5px;
  20. border: 1px solid black;
  21. }
  22. </style>
  23. <body>
  24. <div style="font-family: monospace, fixed; font-weight: bold;">
  25. {{ index_title.stdout }}
  26. <p>
  27. Version: {{ boot_version }}<br>
  28. Powered by <a href=https://netboot.xyz>netboot.xyz</a>
  29. </p>
  30. <p>Legacy (PCBIOS) iPXE Bootloaders</p>
  31. <table style="width:100%">
  32. <!-- table header -->
  33. <tr>
  34. <th> Type </th>
  35. <th> Bootloader </th>
  36. <th> Description </th>
  37. </tr>
  38. <!-- table rows -->
  39. {% for item in bootloaders.legacy %}
  40. <tr>
  41. <td> {{ item.type }} </td>
  42. <td> <a href="ipxe/{{ site_name }}{{ item.output_bin }}">{{ site_name }}{{ item.output_bin }}</a> </td>
  43. <td> {{ item.desc }} </td>
  44. </tr>
  45. {% endfor %}
  46. </table>
  47. <p>UEFI iPXE Bootloaders</p>
  48. <table style="width:100%">
  49. <!-- table header -->
  50. <tr>
  51. <th> Type </th>
  52. <th> Bootloader </th>
  53. <th> Description </th>
  54. </tr>
  55. <!-- table rows -->
  56. {% for item in bootloaders.uefi %}
  57. <tr>
  58. <td> {{ item.type }} </td>
  59. <td> <a href="ipxe/{{ site_name }}{{ item.output_bin }}">{{ site_name }}{{ item.output_bin }}</a> </td>
  60. <td> {{ item.desc }} </td>
  61. </tr>
  62. {% endfor %}
  63. </table>
  64. </div>
  65. </body>
  66. </html>