Microbin 2 beta 1 first commit
This is the first, early beta version of Microbin 2.
Microbin 2 brings a lot of improvements to Microbin. To name just the most important ones:
- Server-side and client-side encryption for uploads, including file attachments,
- SQLite database support by default,
- Reworked upload settings, 5 privacy levels,
- New administrator console (/admin),
- Automatic syntax highlighting,
- Image and video embedding,
- Refreshed styling and QoL features,
- New user guide page.
Beyond these,
- Added file upload size limits,
- Added sample .env file with description for each environmental variable,
- Removed Info page (moved to admin page),
- Pasta list now sorted from newer to older,
- Pasta terminology replaced with Upload,
- Files are now served with a proper service, not just as a public directory,
- Pastas are now stored in /attachments instead of /public.
As this is the first beta of Microbin v2, and I do not recommend updating to this in critical environments as long as we are in beta stage. I expect many bugs to emerge and v2 is also getting a few more smaller QoL features from the backlog. README and website won't be updated until v2 is stable and well-tested.
Fixes #164
Fixes #156
Fixes #153
Fixes #149
Fixes #139
Fixes #98
Fixes #4
Fixes #105 (sort of)
Fixes #97 (sort of)
Fixes #45 (sort of)
Fixes #22 (sort of)
2023-07-01 16:12:06 +00:00
|
|
|
{% include "header.html" %}
|
|
|
|
|
|
|
|
<h2>Welcome to MicroBin</h2>
|
|
|
|
<div style="height: 200px;">
|
|
|
|
<div style="float: left">
|
|
|
|
<h4>Links</h4>
|
2023-07-25 15:45:46 +00:00
|
|
|
<a href="https://microbin.eu/docs/intro" style="margin-right: 1rem">Documentation and Help</a>
|
Microbin 2 beta 1 first commit
This is the first, early beta version of Microbin 2.
Microbin 2 brings a lot of improvements to Microbin. To name just the most important ones:
- Server-side and client-side encryption for uploads, including file attachments,
- SQLite database support by default,
- Reworked upload settings, 5 privacy levels,
- New administrator console (/admin),
- Automatic syntax highlighting,
- Image and video embedding,
- Refreshed styling and QoL features,
- New user guide page.
Beyond these,
- Added file upload size limits,
- Added sample .env file with description for each environmental variable,
- Removed Info page (moved to admin page),
- Pasta list now sorted from newer to older,
- Pasta terminology replaced with Upload,
- Files are now served with a proper service, not just as a public directory,
- Pastas are now stored in /attachments instead of /public.
As this is the first beta of Microbin v2, and I do not recommend updating to this in critical environments as long as we are in beta stage. I expect many bugs to emerge and v2 is also getting a few more smaller QoL features from the backlog. README and website won't be updated until v2 is stable and well-tested.
Fixes #164
Fixes #156
Fixes #153
Fixes #149
Fixes #139
Fixes #98
Fixes #4
Fixes #105 (sort of)
Fixes #97 (sort of)
Fixes #45 (sort of)
Fixes #22 (sort of)
2023-07-01 16:12:06 +00:00
|
|
|
<br>
|
|
|
|
<a href="https://github.com/szabodanika/microbin" style="margin-right: 1rem">Source Code</a>
|
|
|
|
<br>
|
|
|
|
<a href="https://github.com/szabodanika/microbin/issues" style="margin-right: 1rem">Feedback</a>
|
|
|
|
<br>
|
|
|
|
<a href="https://microbin.eu/donate">Donate and Sponsor</a>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div style="float: right">
|
|
|
|
<h4>Info</h4>
|
|
|
|
<table style="width: 400px">
|
|
|
|
<tr>
|
|
|
|
<td><b>Version</b></td>
|
|
|
|
<td>{{version_string}} </td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td><b>Status</b></td>
|
|
|
|
<td>{{status}} </td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2023-07-09 11:00:29 +00:00
|
|
|
<td><b>Uploads</b></td>
|
Microbin 2 beta 1 first commit
This is the first, early beta version of Microbin 2.
Microbin 2 brings a lot of improvements to Microbin. To name just the most important ones:
- Server-side and client-side encryption for uploads, including file attachments,
- SQLite database support by default,
- Reworked upload settings, 5 privacy levels,
- New administrator console (/admin),
- Automatic syntax highlighting,
- Image and video embedding,
- Refreshed styling and QoL features,
- New user guide page.
Beyond these,
- Added file upload size limits,
- Added sample .env file with description for each environmental variable,
- Removed Info page (moved to admin page),
- Pasta list now sorted from newer to older,
- Pasta terminology replaced with Upload,
- Files are now served with a proper service, not just as a public directory,
- Pastas are now stored in /attachments instead of /public.
As this is the first beta of Microbin v2, and I do not recommend updating to this in critical environments as long as we are in beta stage. I expect many bugs to emerge and v2 is also getting a few more smaller QoL features from the backlog. README and website won't be updated until v2 is stable and well-tested.
Fixes #164
Fixes #156
Fixes #153
Fixes #149
Fixes #139
Fixes #98
Fixes #4
Fixes #105 (sort of)
Fixes #97 (sort of)
Fixes #45 (sort of)
Fixes #22 (sort of)
2023-07-01 16:12:06 +00:00
|
|
|
<td>{{pastas.len()}} </td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2023-07-09 11:00:29 +00:00
|
|
|
<h4>Update</h4>
|
|
|
|
{% if update.is_some() %}
|
|
|
|
<p><b>Update available</b> {{update.as_ref().unwrap().long_title}}</p>
|
|
|
|
<p><b>Date</b> {{update.as_ref().unwrap().date}}</p>
|
|
|
|
<p><b>Update type</b> {{update.as_ref().unwrap().update_type}}</p>
|
|
|
|
<p><b>Description</b> {{update.as_ref().unwrap().description}}</p>
|
|
|
|
{%- else %}
|
|
|
|
<p>No updates available.</p>
|
|
|
|
{%- endif %}
|
|
|
|
|
|
|
|
|
Microbin 2 beta 1 first commit
This is the first, early beta version of Microbin 2.
Microbin 2 brings a lot of improvements to Microbin. To name just the most important ones:
- Server-side and client-side encryption for uploads, including file attachments,
- SQLite database support by default,
- Reworked upload settings, 5 privacy levels,
- New administrator console (/admin),
- Automatic syntax highlighting,
- Image and video embedding,
- Refreshed styling and QoL features,
- New user guide page.
Beyond these,
- Added file upload size limits,
- Added sample .env file with description for each environmental variable,
- Removed Info page (moved to admin page),
- Pasta list now sorted from newer to older,
- Pasta terminology replaced with Upload,
- Files are now served with a proper service, not just as a public directory,
- Pastas are now stored in /attachments instead of /public.
As this is the first beta of Microbin v2, and I do not recommend updating to this in critical environments as long as we are in beta stage. I expect many bugs to emerge and v2 is also getting a few more smaller QoL features from the backlog. README and website won't be updated until v2 is stable and well-tested.
Fixes #164
Fixes #156
Fixes #153
Fixes #149
Fixes #139
Fixes #98
Fixes #4
Fixes #105 (sort of)
Fixes #97 (sort of)
Fixes #45 (sort of)
Fixes #22 (sort of)
2023-07-01 16:12:06 +00:00
|
|
|
{% if message != "" %}
|
|
|
|
<h4>Messages</h4>
|
|
|
|
<p>{{message}}</p>
|
|
|
|
{%- endif %}
|
|
|
|
|
|
|
|
|
|
|
|
<h3>Uploads</h3>
|
|
|
|
{% if args.pure_html %}
|
|
|
|
<table border="1" style="width: 100%;">
|
|
|
|
{% else %}
|
|
|
|
<table style="width: 100%; font-size: smaller;">
|
|
|
|
{% endif %}
|
|
|
|
<thead>
|
|
|
|
<th style="width: 15%;">
|
|
|
|
Key
|
|
|
|
</th>
|
|
|
|
<th style="width: 15%;">
|
|
|
|
Valid
|
|
|
|
</th>
|
|
|
|
<th style="width: 8%;">
|
|
|
|
Size
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
Encryption
|
|
|
|
</th>
|
|
|
|
<th style="width: 5%;">
|
|
|
|
Priv.
|
|
|
|
</th>
|
|
|
|
<th style="width: 5%;">
|
|
|
|
Edit.
|
|
|
|
</th>
|
|
|
|
<th style="width: 8%;">
|
|
|
|
Content
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
Hits
|
|
|
|
</th>
|
|
|
|
<th style="width: 8%;">
|
|
|
|
<!-- Actions -->
|
|
|
|
</th>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for pasta in pastas %}
|
|
|
|
{% if pasta.pasta_type == "text" %}
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<a
|
2023-07-11 17:58:34 +00:00
|
|
|
href="{{ args.public_path_as_str()}}/upload/{{pasta.id_as_animals()}}">{{pasta.id_as_animals()}}</a>
|
Microbin 2 beta 1 first commit
This is the first, early beta version of Microbin 2.
Microbin 2 brings a lot of improvements to Microbin. To name just the most important ones:
- Server-side and client-side encryption for uploads, including file attachments,
- SQLite database support by default,
- Reworked upload settings, 5 privacy levels,
- New administrator console (/admin),
- Automatic syntax highlighting,
- Image and video embedding,
- Refreshed styling and QoL features,
- New user guide page.
Beyond these,
- Added file upload size limits,
- Added sample .env file with description for each environmental variable,
- Removed Info page (moved to admin page),
- Pasta list now sorted from newer to older,
- Pasta terminology replaced with Upload,
- Files are now served with a proper service, not just as a public directory,
- Pastas are now stored in /attachments instead of /public.
As this is the first beta of Microbin v2, and I do not recommend updating to this in critical environments as long as we are in beta stage. I expect many bugs to emerge and v2 is also getting a few more smaller QoL features from the backlog. README and website won't be updated until v2 is stable and well-tested.
Fixes #164
Fixes #156
Fixes #153
Fixes #149
Fixes #139
Fixes #98
Fixes #4
Fixes #105 (sort of)
Fixes #97 (sort of)
Fixes #45 (sort of)
Fixes #22 (sort of)
2023-07-01 16:12:06 +00:00
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{pasta.created_as_string()}}
|
|
|
|
→
|
|
|
|
{{pasta.expiration_as_string()}}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{pasta.total_size_as_string()}}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{% if pasta.encrypt_client %}
|
|
|
|
CLIENT
|
|
|
|
{%- endif %}
|
|
|
|
{% if pasta.encrypt_client && pasta.encrypt_server%}
|
|
|
|
+
|
|
|
|
{%- endif %}
|
|
|
|
{% if pasta.encrypt_server %}
|
|
|
|
SERVER
|
|
|
|
{%- endif %}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{% if pasta.private %}
|
|
|
|
✔️
|
|
|
|
{%- endif %}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{% if pasta.editable %}
|
|
|
|
✔️
|
|
|
|
{%- endif %}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{% if pasta.content != "" %}
|
|
|
|
<a style="margin-right:1rem"
|
|
|
|
href="{{ args.public_path_as_str()}}/raw/{{pasta.id_as_animals()}}">Text</a>
|
|
|
|
{%- endif %}
|
|
|
|
{% if pasta.file.is_some() %}
|
|
|
|
<a style="margin-right:1rem" href="{{ args.public_path_as_str() }}/file/{{pasta.id_as_animals()}}">
|
|
|
|
{% if pasta.file.as_ref().unwrap().is_image() %}
|
|
|
|
Image
|
|
|
|
{%- else if pasta.file.as_ref().unwrap().is_video() %}
|
|
|
|
Video
|
|
|
|
{%- else %}
|
|
|
|
File
|
|
|
|
{%- endif %}
|
|
|
|
</a>
|
|
|
|
{%- endif %}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{% if args.show_read_stats %} {% if pasta.read_count == 1 %}
|
|
|
|
<span style="font-size: small">{{pasta.read_count}} hits <br> last
|
|
|
|
{{pasta.short_last_read_time_ago_as_string()}}</span>
|
|
|
|
{%- else %}
|
|
|
|
<span style="font-size: small">{{pasta.read_count}} hits <br> last
|
|
|
|
{{pasta.short_last_read_time_ago_as_string()}}</span>
|
|
|
|
{%- endif %} {%- endif %}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{% if pasta.editable %}
|
|
|
|
<a style="margin-right:1rem" href="{{ args.public_path_as_str()
|
|
|
|
}}/edit/{{pasta.id_as_animals()}}">Edit</a>
|
|
|
|
<br>
|
|
|
|
{%- endif %}
|
|
|
|
<a href="{{ args.public_path_as_str() }}/remove/{{pasta.id_as_animals()}}">Remove</a>
|
|
|
|
</td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
{%- endif %}
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<br>
|
|
|
|
<h3>URL Redirects</h3>
|
|
|
|
{% if args.pure_html %}
|
|
|
|
<table border="1" style="width: 100%;">
|
|
|
|
{% else %}
|
|
|
|
<table style="width: 100%; font-size: smaller;">
|
|
|
|
{% endif %}
|
|
|
|
<thead>
|
|
|
|
<th style="width: 15%;">
|
|
|
|
Key
|
|
|
|
</th>
|
|
|
|
<th style="width: 15%;">
|
|
|
|
Valid
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
Encryption
|
|
|
|
</th>
|
|
|
|
<th style="width: 5%;">
|
|
|
|
Priv.
|
|
|
|
</th>
|
|
|
|
<th style="width: 5%;">
|
|
|
|
Edit.
|
|
|
|
</th>
|
|
|
|
<th style="width: 8%;">
|
|
|
|
Content
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
Hits
|
|
|
|
</th>
|
|
|
|
<th style="width: 8%;">
|
|
|
|
<!-- Actions -->
|
|
|
|
</th>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for pasta in pastas %}
|
|
|
|
{% if pasta.pasta_type == "url" %}
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<a
|
2023-07-11 17:58:34 +00:00
|
|
|
href="{{ args.public_path_as_str()}}/upload/{{pasta.id_as_animals()}}">{{pasta.id_as_animals()}}</a>
|
Microbin 2 beta 1 first commit
This is the first, early beta version of Microbin 2.
Microbin 2 brings a lot of improvements to Microbin. To name just the most important ones:
- Server-side and client-side encryption for uploads, including file attachments,
- SQLite database support by default,
- Reworked upload settings, 5 privacy levels,
- New administrator console (/admin),
- Automatic syntax highlighting,
- Image and video embedding,
- Refreshed styling and QoL features,
- New user guide page.
Beyond these,
- Added file upload size limits,
- Added sample .env file with description for each environmental variable,
- Removed Info page (moved to admin page),
- Pasta list now sorted from newer to older,
- Pasta terminology replaced with Upload,
- Files are now served with a proper service, not just as a public directory,
- Pastas are now stored in /attachments instead of /public.
As this is the first beta of Microbin v2, and I do not recommend updating to this in critical environments as long as we are in beta stage. I expect many bugs to emerge and v2 is also getting a few more smaller QoL features from the backlog. README and website won't be updated until v2 is stable and well-tested.
Fixes #164
Fixes #156
Fixes #153
Fixes #149
Fixes #139
Fixes #98
Fixes #4
Fixes #105 (sort of)
Fixes #97 (sort of)
Fixes #45 (sort of)
Fixes #22 (sort of)
2023-07-01 16:12:06 +00:00
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{pasta.created_as_string()}}
|
|
|
|
→
|
|
|
|
{{pasta.expiration_as_string()}}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{% if pasta.encrypt_client %}
|
|
|
|
CLIENT
|
|
|
|
{%- endif %}
|
|
|
|
{% if pasta.encrypt_client && pasta.encrypt_server%}
|
|
|
|
+
|
|
|
|
{%- endif %}
|
|
|
|
{% if pasta.encrypt_server %}
|
|
|
|
SERVER
|
|
|
|
{%- endif %}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{% if pasta.private %}
|
|
|
|
✔️
|
|
|
|
{%- endif %}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{% if pasta.editable %}
|
|
|
|
✔️
|
|
|
|
{%- endif %}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{% if pasta.content != "" %}
|
|
|
|
<a style="margin-right:1rem"
|
|
|
|
href="{{ args.public_path_as_str()}}/raw/{{pasta.id_as_animals()}}">Text</a>
|
|
|
|
{%- endif %}
|
|
|
|
{% if pasta.file.is_some() %}
|
|
|
|
<a style="margin-right:1rem"
|
|
|
|
href="{{ args.public_path_as_str() }}/file/{{pasta.id_as_animals()}}">
|
|
|
|
{% if pasta.file.as_ref().unwrap().is_image() %}
|
|
|
|
Image
|
|
|
|
{%- else if pasta.file.as_ref().unwrap().is_video() %}
|
|
|
|
Video
|
|
|
|
{%- else %}
|
|
|
|
File
|
|
|
|
{%- endif %}
|
|
|
|
</a>
|
|
|
|
{%- endif %}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{% if args.show_read_stats %} {% if pasta.read_count == 1 %}
|
|
|
|
<span style="font-size: small">{{pasta.read_count}} hits <br> last
|
|
|
|
{{pasta.short_last_read_time_ago_as_string()}}</span>
|
|
|
|
{%- else %}
|
|
|
|
<span style="font-size: small">{{pasta.read_count}} hits <br> last
|
|
|
|
{{pasta.short_last_read_time_ago_as_string()}}</span>
|
|
|
|
{%- endif %} {%- endif %}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{% if pasta.editable %}
|
|
|
|
<a style="margin-right:1rem" href="{{ args.public_path_as_str()
|
|
|
|
}}/edit/{{pasta.id_as_animals()}}">Edit</a>
|
|
|
|
<br>
|
|
|
|
{%- endif %}
|
|
|
|
<a href="{{ args.public_path_as_str() }}/remove/{{pasta.id_as_animals()}}">Remove</a>
|
|
|
|
</td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
{%- endif %}
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<br>
|
|
|
|
|
|
|
|
|
|
|
|
<h3>Environmental Variables</h3>
|
|
|
|
<table>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th style="width: 35%">Argument</th>
|
|
|
|
<th style="width: 15%">Value</th>
|
|
|
|
<th style="width: 35%">Argument</th>
|
|
|
|
<th style="width: 15%">Value</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
2023-07-11 17:04:52 +00:00
|
|
|
<td>auth_basic_username</td>
|
Microbin 2 beta 1 first commit
This is the first, early beta version of Microbin 2.
Microbin 2 brings a lot of improvements to Microbin. To name just the most important ones:
- Server-side and client-side encryption for uploads, including file attachments,
- SQLite database support by default,
- Reworked upload settings, 5 privacy levels,
- New administrator console (/admin),
- Automatic syntax highlighting,
- Image and video embedding,
- Refreshed styling and QoL features,
- New user guide page.
Beyond these,
- Added file upload size limits,
- Added sample .env file with description for each environmental variable,
- Removed Info page (moved to admin page),
- Pasta list now sorted from newer to older,
- Pasta terminology replaced with Upload,
- Files are now served with a proper service, not just as a public directory,
- Pastas are now stored in /attachments instead of /public.
As this is the first beta of Microbin v2, and I do not recommend updating to this in critical environments as long as we are in beta stage. I expect many bugs to emerge and v2 is also getting a few more smaller QoL features from the backlog. README and website won't be updated until v2 is stable and well-tested.
Fixes #164
Fixes #156
Fixes #153
Fixes #149
Fixes #139
Fixes #98
Fixes #4
Fixes #105 (sort of)
Fixes #97 (sort of)
Fixes #45 (sort of)
Fixes #22 (sort of)
2023-07-01 16:12:06 +00:00
|
|
|
{% if args.auth_basic_username.as_ref().is_some() %}
|
|
|
|
<td>set</td>
|
|
|
|
{% else %}
|
|
|
|
<td>unset</td>
|
|
|
|
{% endif %}
|
|
|
|
|
2023-07-11 17:04:52 +00:00
|
|
|
<td>auth_basic_password</td>
|
Microbin 2 beta 1 first commit
This is the first, early beta version of Microbin 2.
Microbin 2 brings a lot of improvements to Microbin. To name just the most important ones:
- Server-side and client-side encryption for uploads, including file attachments,
- SQLite database support by default,
- Reworked upload settings, 5 privacy levels,
- New administrator console (/admin),
- Automatic syntax highlighting,
- Image and video embedding,
- Refreshed styling and QoL features,
- New user guide page.
Beyond these,
- Added file upload size limits,
- Added sample .env file with description for each environmental variable,
- Removed Info page (moved to admin page),
- Pasta list now sorted from newer to older,
- Pasta terminology replaced with Upload,
- Files are now served with a proper service, not just as a public directory,
- Pastas are now stored in /attachments instead of /public.
As this is the first beta of Microbin v2, and I do not recommend updating to this in critical environments as long as we are in beta stage. I expect many bugs to emerge and v2 is also getting a few more smaller QoL features from the backlog. README and website won't be updated until v2 is stable and well-tested.
Fixes #164
Fixes #156
Fixes #153
Fixes #149
Fixes #139
Fixes #98
Fixes #4
Fixes #105 (sort of)
Fixes #97 (sort of)
Fixes #45 (sort of)
Fixes #22 (sort of)
2023-07-01 16:12:06 +00:00
|
|
|
{% if args.auth_basic_password.as_ref().is_some() %}
|
|
|
|
<td>set</td>
|
|
|
|
{% else %}
|
|
|
|
<td>unset</td>
|
|
|
|
{% endif %}
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>editable</td>
|
|
|
|
<td>{{ args.editable }}</td>
|
|
|
|
|
|
|
|
<td>footer_text</td>
|
|
|
|
{% if args.footer_text.as_ref().is_some() %}
|
|
|
|
<td>{{ args.footer_text.as_ref().unwrap() }}</td>
|
|
|
|
{% else %}
|
|
|
|
<td>unset</td>
|
|
|
|
{% endif %}
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>hide_footer</td>
|
|
|
|
<td>{{ args.hide_footer }}</td>
|
|
|
|
<td>hide_header</td>
|
|
|
|
<td>{{ args.hide_header }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>hide_logo</td>
|
|
|
|
<td>{{ args.hide_logo }}</td>
|
|
|
|
<td>no_listing</td>
|
|
|
|
<td>{{ args.no_listing }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>highlightsyntax</td>
|
|
|
|
<td>{{ args.highlightsyntax }}</td>
|
|
|
|
<td>port</td>
|
|
|
|
<td>{{ args.port }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>bind</td>
|
|
|
|
<td>{{ args.bind }}</td>
|
|
|
|
<td>private</td>
|
|
|
|
<td>{{ args.private }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>pure_html</td>
|
|
|
|
<td>{{ args.pure_html }}</td>
|
|
|
|
<td>json_db</td>
|
|
|
|
<td>{{ args.json_db }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>public_path</td>
|
|
|
|
{% if args.public_path.as_ref().is_some() %}
|
|
|
|
<td>{{ args.public_path_as_str() }}</td>
|
|
|
|
{% else %}
|
|
|
|
<td>unset</td>
|
|
|
|
{% endif %}
|
|
|
|
<td>short_path</td>
|
|
|
|
{% if args.short_path.as_ref().is_some() %}
|
|
|
|
<td>{{ args.short_path_as_str() }}</td>
|
|
|
|
{% else %}
|
|
|
|
<td>unset</td>
|
|
|
|
{% endif %}
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>readonly</td>
|
|
|
|
<td>{{ args.readonly }}</td>
|
|
|
|
<td>show_read_stats</td>
|
|
|
|
<td>{{ args.show_read_stats }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>title</td>
|
|
|
|
{% if args.title.as_ref().is_some() %}
|
|
|
|
<td>{{ args.title.as_ref().unwrap() }}</td>
|
|
|
|
{% else %}
|
|
|
|
<td>unset</td>
|
|
|
|
{% endif %}
|
|
|
|
<td>threads</td>
|
|
|
|
<td>{{ args.threads }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>gc_days</td>
|
|
|
|
<td>{{ args.gc_days }}</td>
|
|
|
|
<td>enable_burn_after</td>
|
|
|
|
<td>{{ args.enable_burn_after }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>default_burn_after</td>
|
|
|
|
<td>{{ args.default_burn_after }}</td>
|
|
|
|
<td>wide</td>
|
|
|
|
<td>{{ args.wide }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>qr</td>
|
|
|
|
<td>{{ args.qr }}</td>
|
2023-07-02 10:04:45 +00:00
|
|
|
<td>eternal_pasta</td>
|
|
|
|
<td>{{ args.eternal_pasta }}</td>
|
Microbin 2 beta 1 first commit
This is the first, early beta version of Microbin 2.
Microbin 2 brings a lot of improvements to Microbin. To name just the most important ones:
- Server-side and client-side encryption for uploads, including file attachments,
- SQLite database support by default,
- Reworked upload settings, 5 privacy levels,
- New administrator console (/admin),
- Automatic syntax highlighting,
- Image and video embedding,
- Refreshed styling and QoL features,
- New user guide page.
Beyond these,
- Added file upload size limits,
- Added sample .env file with description for each environmental variable,
- Removed Info page (moved to admin page),
- Pasta list now sorted from newer to older,
- Pasta terminology replaced with Upload,
- Files are now served with a proper service, not just as a public directory,
- Pastas are now stored in /attachments instead of /public.
As this is the first beta of Microbin v2, and I do not recommend updating to this in critical environments as long as we are in beta stage. I expect many bugs to emerge and v2 is also getting a few more smaller QoL features from the backlog. README and website won't be updated until v2 is stable and well-tested.
Fixes #164
Fixes #156
Fixes #153
Fixes #149
Fixes #139
Fixes #98
Fixes #4
Fixes #105 (sort of)
Fixes #97 (sort of)
Fixes #45 (sort of)
Fixes #22 (sort of)
2023-07-01 16:12:06 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>enable_readonly</td>
|
|
|
|
<td>{{ args.enable_readonly }}</td>
|
|
|
|
<td>default_expiry</td>
|
|
|
|
<td>{{ args.default_expiry }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>no_file_upload</td>
|
|
|
|
<td>{{ args.no_file_upload }}</td>
|
|
|
|
<td>custom_css</td>
|
|
|
|
{% if args.custom_css.as_ref().is_some() %}
|
|
|
|
<td>{{ args.custom_css.as_ref().unwrap() }}</td>
|
|
|
|
{% else %}
|
|
|
|
<td>unset</td>
|
|
|
|
{% endif %}
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>hash_ids</td>
|
|
|
|
<td>{{ args.hash_ids }}</td>
|
|
|
|
<td>encryption_client_side</td>
|
|
|
|
<td>{{ args.encryption_client_side }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>encryption_server_side</td>
|
|
|
|
<td>{{ args.encryption_server_side }}</td>
|
|
|
|
<td>max_file_size_encrypted_mb</td>
|
|
|
|
<td>{{ args.max_file_size_encrypted_mb }} MB</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>max_file_size_unencrypted_mb</td>
|
|
|
|
<td>{{ args.max_file_size_unencrypted_mb }} MB</td>
|
2023-07-11 17:04:52 +00:00
|
|
|
<td>uploader_password</td>
|
|
|
|
{% if args.uploader_password.as_ref().is_some() %}
|
|
|
|
<td>set</td>
|
|
|
|
{% else %}
|
|
|
|
<td>unset</td>
|
|
|
|
{% endif %}
|
Microbin 2 beta 1 first commit
This is the first, early beta version of Microbin 2.
Microbin 2 brings a lot of improvements to Microbin. To name just the most important ones:
- Server-side and client-side encryption for uploads, including file attachments,
- SQLite database support by default,
- Reworked upload settings, 5 privacy levels,
- New administrator console (/admin),
- Automatic syntax highlighting,
- Image and video embedding,
- Refreshed styling and QoL features,
- New user guide page.
Beyond these,
- Added file upload size limits,
- Added sample .env file with description for each environmental variable,
- Removed Info page (moved to admin page),
- Pasta list now sorted from newer to older,
- Pasta terminology replaced with Upload,
- Files are now served with a proper service, not just as a public directory,
- Pastas are now stored in /attachments instead of /public.
As this is the first beta of Microbin v2, and I do not recommend updating to this in critical environments as long as we are in beta stage. I expect many bugs to emerge and v2 is also getting a few more smaller QoL features from the backlog. README and website won't be updated until v2 is stable and well-tested.
Fixes #164
Fixes #156
Fixes #153
Fixes #149
Fixes #139
Fixes #98
Fixes #4
Fixes #105 (sort of)
Fixes #97 (sort of)
Fixes #45 (sort of)
Fixes #22 (sort of)
2023-07-01 16:12:06 +00:00
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
{% include "footer.html" %}
|
|
|
|
<script>
|
|
|
|
const copyURLBtns = document.getElementsByClassName("copy-button");
|
|
|
|
|
|
|
|
for (var i = 0; i < copyURLBtns.length; i++) {
|
|
|
|
copyURLBtns.item(i).addEventListener("click", event => {
|
|
|
|
event.srcElement
|
|
|
|
navigator.clipboard.writeText(event.srcElement.getAttribute("data-url"))
|
|
|
|
event.srcElement.innerHTML = "Copied"
|
|
|
|
setTimeout(() => {
|
|
|
|
event.srcElement.innerHTML = "Copy"
|
|
|
|
}, 1000)
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
</script>
|
|
|
|
<style>
|
|
|
|
|
2023-07-25 15:45:46 +00:00
|
|
|
</style>
|