index.html.j2 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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. exit
  13. <!DOCTYPE html>
  14. <html lang="en">
  15. <head>
  16. <title>{{ site_name }} BootLoaders - Powered by netboot.xyz</title>
  17. </head>
  18. <style>
  19. table, th, td {
  20. padding: 5px;
  21. border: 1px solid black;
  22. }
  23. </style>
  24. <body>
  25. <div style="font-family: monospace, fixed; font-weight: bold;">
  26. {% if index_title.stdout is defined %}
  27. {{ index_title.stdout }}
  28. {% else %}
  29. <h1>{{ site_name }}</h1>
  30. {% endif %}
  31. <p>
  32. Version: {{ boot_version }}<br>
  33. Powered by <a href=https://netboot.xyz>netboot.xyz</a>
  34. </p>
  35. <p>Legacy (PCBIOS) iPXE Bootloaders</p>
  36. <table style="width:100%">
  37. <!-- table header -->
  38. <tr>
  39. <th> Type </th>
  40. <th> Bootloader </th>
  41. <th> Description </th>
  42. </tr>
  43. <!-- table rows -->
  44. {% for item in bootloaders.legacy %}
  45. <tr>
  46. <td> {{ item.type }} </td>
  47. <td> <a href="ipxe/{{ site_name }}{{ item.output_bin }}">{{ site_name }}{{ item.output_bin }}</a> </td>
  48. <td> {{ item.desc }} </td>
  49. </tr>
  50. {% endfor %}
  51. </table>
  52. <p>UEFI iPXE Bootloaders</p>
  53. <table style="width:100%">
  54. <!-- table header -->
  55. <tr>
  56. <th> Type </th>
  57. <th> Bootloader </th>
  58. <th> Description </th>
  59. </tr>
  60. <!-- table rows -->
  61. {% for item in bootloaders.uefi %}
  62. <tr>
  63. <td> {{ item.type }} </td>
  64. <td> <a href="ipxe/{{ site_name }}{{ item.output_bin }}">{{ site_name }}{{ item.output_bin }}</a> </td>
  65. <td> {{ item.desc }} </td>
  66. </tr>
  67. {% endfor %}
  68. </table>
  69. <p>Checksums<p>
  70. <a href="ipxe/{{ site_name }}-sha256-checksums.txt">SHA256 checksums</a>
  71. </div>
  72. </body>
  73. </html>