CLI Args extension and file management fix

- added cli param to change threads used by server
- added cli param hide html header and/or footer
- added cli param to remove css styling
- added cli param to set http basic auth username and optionally password for the server
- file pastas now delete the files from the disk as well when they expire
This commit is contained in:
Daniel Szabo 2022-05-07 22:30:57 +01:00
parent fc63b7aa1a
commit fe926086c2
4 changed files with 150 additions and 35 deletions

View file

@ -1,7 +1,13 @@
{% if !args.hide_footer %}
<hr>
<p style="font-size: smaller">
MicroBin by Daniel Szabo. Fork me on <a href="https://github.com/szabodanika/microbin">GitHub</a>!
Let's keep the Web <b>compact</b>, <b>accessible</b> and <b>humane</b>!
</p>
{%- endif %}
</body>
</html>

View file

@ -3,7 +3,9 @@
<title>MicroBin</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="/static/water.css">
{% if !args.pure_html %}
<link rel="stylesheet" href="/static/water.css">
{%- endif %}
</head>
<body style="
max-width: 720px;
@ -13,8 +15,11 @@
line-height: 1.5;
font-size: 1.1em;
">
<br>
{% if !args.hide_header %}
<b style="margin-right: 0.5rem">
<i><span style="font-size:2.2rem; margin-right:1rem">μ</span></i> MicroBin
</b>
@ -26,3 +31,5 @@
<a href="https://github.com/szabodanika/microbin" style="margin-right: 0.5rem; margin-left: 0.5rem">GitHub</a>
<hr>
{%- endif %}