This commit is contained in:
root
2025-09-25 12:03:15 +02:00
commit afaafe8546
6 changed files with 743 additions and 0 deletions

71
plik/plikd.cfg Normal file
View File

@@ -0,0 +1,71 @@
#####
##
# Plik - Configuration File
#
Debug = false
DebugRequests = false
LogLevel = "INFO"
ListenPort = 8080
ListenAddress = "0.0.0.0"
MetricsPort = 8811
MetricsAddress = "0.0.0.0"
Path = ""
SslEnabled = false
SslCert = "plik.crt"
SslKey = "plik.key"
TlsVersion = "tlsv12"
NoWebInterface = false
DownloadDomain = ""
DownloadDomainAlias = []
EnhancedWebSecurity = false
SessionTimeout = "365d"
AbuseContact = ""
WebappDirectory = "../webapp/dist"
ClientsDirectory = "../clients"
ChangelogDirectory = "../changelog"
SourceIpHeader = "X-Real-IP"
UploadWhitelist = []
MaxFileSizeStr = "2GB"
MaxUserSizeStr = "1GB"
MaxFilePerUpload = 50
DefaultTTLStr = "7d"
MaxTTLStr = "7d"
FeatureAuthentication = "disabled"
FeatureOneShot = "enabled"
FeatureRemovable = "enabled"
FeatureStream = "enabled"
FeaturePassword = "enabled"
FeatureComments = "enabled"
FeatureSetTTL = "enabled"
FeatureExtendTTL = "disabled"
FeatureClients = "enabled"
FeatureGithub = "disabled"
FeatureText = "enabled"
GoogleApiClientID = ""
GoogleApiSecret = ""
GoogleValidDomains = []
OvhApiKey = ""
OvhApiSecret = ""
OvhApiEndpoint = ""
##################################################
# Data backend configuration
##################################################
DataBackend = "file"
[DataBackendConfig]
Directory = "files"
##################################################
# Metadata backend configuration
##################################################
[MetadataBackendConfig]
Driver = "sqlite3"
ConnectionString = "/home/plik/server/meta/plik.db"
Debug = false