Skip to content

Configuration

Create a "config.conf" (without the ") file in the root folder and customize sharenton with the following parameters.

IP

Set the Listen IP Adress.

  • Default: 0.0.0.0 (All interfaces)
md
#Example
IP=127.0.0.1

PORT

Set the Listen Port.

  • Default: 5050
md
#Example
PORT=3000

DOWNLOAD_ONLY_MODE

Set Sharenton in download only mode. If true uploads are disabled and you can only download files.

  • Default: false
md
#Example
DOWNLOAD_ONLY_MODE=true

MAX_FILE_NAME_LENGTH

Truncates the file name to the set value.

  • Default: 75
md
#Example
MAX_FILE_NAME_LENGTH=30

MAX_FILE_SIZE

Set the maximun allowed upload size for a file in Megabytes.

  • Default: 0 (unlimited)
md
#Example (1 Gigabyte)
MAX_FILE_SIZE=1000

MAX_FILES

How many files are allowed to upload in one operation.

  • Default: 50
md
#Example
MAX_FILES=15

AUTOCLEAN_OLD_FILES

Delete files older as the set value in Days. Checked every hour. The deletion is based on modification time of the file. Empty folders are automatically removed too.

  • Default: 0 (disabled)
md
#Example (Deletes files older than 3 days)
AUTOCLEAN_OLD_FILES=3

LOG_LEVEL

Set the amount of information that gets logged. Log messages output to stdout. You can pipe it to a file from there for example.

  • Default: error
md
#Options
- info
- error
- false

#Example (disabled)
LOG_LEVEL=false

NOTE

The upload folder is currently fixed and cannot be configured 😱