2018-03-27 11:24:14 +02:00
# === General ===
2017-10-18 13:25:34 +02:00
# Can be 'curl' or 'sftp'
2018-03-27 11:24:14 +02:00
uploader = ' curl '
2017-10-18 13:25:34 +02:00
2018-03-27 11:24:14 +02:00
# === SFTP-related ===
2017-10-18 13:25:34 +02:00
# (S)FTP credentials, only if you want to use SFTP for uploads
2017-11-14 22:46:54 +01:00
# Set all to None that you don’t need
2017-11-20 15:12:02 +01:00
sftp_address = ' your_domain.com '
sftp_port = 22
2017-11-14 22:46:54 +01:00
username = None
password = None
private_key = None
2017-11-20 15:12:02 +01:00
private_key_pass = None
2018-03-27 11:24:14 +02:00
# Directory on the ftp server where you want the screenshots to be sent
remote_directory = ' /usr/share/nginx/html/pyshare/ '
# Template for the link that the script will generate. {} is the filename
url_template = ' https://your_domain.com/pyshare/ {} '
remote_port = 5000
2017-10-18 13:25:34 +02:00
2018-03-27 11:24:14 +02:00
# === curl-related ===
2017-10-18 13:25:34 +02:00
# This should contain a complete curl command with a {} to insert the filename.
2018-03-27 11:24:14 +02:00
curl_command = ' curl -F " file=@ {} " https://0x0.st '
2017-10-18 13:25:34 +02:00
2018-03-27 11:24:14 +02:00
# === Local storage ===
2017-10-14 12:03:36 +02:00
# This is where the screenshots are saved locally
local_directory = ' /home/kageru/pyshare/ '
2018-01-22 22:31:48 +01:00
# If set to false, images will be deleted after uploading them
keep_local_copies = True
2017-11-22 09:49:00 +01:00
2017-10-14 12:03:36 +02:00
# In case you want a certain prefix for all files. Can also be an empty string
2018-03-27 11:24:14 +02:00
# The filename will be used for local storage as well as the files stored on the SFTP host
2017-10-14 12:03:36 +02:00
prefix = ' '
# Number of random characters in the filename
length = 5
2018-03-27 11:24:14 +02:00