1
0
mirror of https://github.com/lus/pasty.git synced 2023-08-10 21:13:09 +03:00

make config compatibility layer more abstract

This commit is contained in:
Lukas Schulte Pelkum
2023-06-17 18:20:25 +02:00
parent 18839a2021
commit 05a27a00c0
5 changed files with 92 additions and 39 deletions

View File

@@ -23,10 +23,6 @@ type Server struct {
// If this is set to nil, the report system will be considered deactivated.
ReportClient *reports.Client
// Whether the Hastebin support should be enabled.
// If this is set to 'false', the Hastebin specific endpoints will not be registered.
HastebinSupport bool
// The length of newly generated paste IDs.
PasteIDLength int
// The charset to use when generating new paste IDs.