[server] #listening IP address address = "127.0.0.1" port = 3301 #authentication secret between XMPP and upload server secret_string = "A very secret unpredicatable string" lock_file = "/tmp/xmpp-http-upload.lock" #seconds after which a file is removed #default: two days expiration_time = 172800 #blocked mime types, recognized by extension #see https://docs.rs/mime/0.3.12/mime/#constants #mime_blacklist = [] [log] #debug logs if appreciated file = "/var/log/xmpp-http-upload.log" #Local file or SQLite (with .sqlite extension) database [database.file] path = "/var/local/xmpp-http-upload/" filename = "database.cbor" # Example PostgreSQL connection #[database.server] #address = "127.0.0.1" #port = 5432 #username = "postgres" #password = "..." #database = "xmpp_http_upload" #server_type = "PostgreSql" [daemon] pid_file = "/tmp/xmpp-http-upload.pid" user = "xmpp-external" #stdout = "/tmp/xmpp-http-upload.out" #stderr = "/tmp/xmpp-http-upload.err"