made config more readable, changed defaults to curl so they just
work™
This commit is contained in:
parent
26faa97eec
commit
9bbcf46c82
26
config.py
26
config.py
|
@ -1,6 +1,8 @@
|
||||||
|
# === General ===
|
||||||
# Can be 'curl' or 'sftp'
|
# Can be 'curl' or 'sftp'
|
||||||
uploader = 'sftp'
|
uploader = 'curl'
|
||||||
|
|
||||||
|
# === SFTP-related ===
|
||||||
# (S)FTP credentials, only if you want to use SFTP for uploads
|
# (S)FTP credentials, only if you want to use SFTP for uploads
|
||||||
# Set all to None that you don’t need
|
# Set all to None that you don’t need
|
||||||
sftp_address = 'your_domain.com'
|
sftp_address = 'your_domain.com'
|
||||||
|
@ -9,23 +11,25 @@ username = None
|
||||||
password = None
|
password = None
|
||||||
private_key = None
|
private_key = None
|
||||||
private_key_pass = None
|
private_key_pass = None
|
||||||
|
|
||||||
# This should contain a complete curl command with a {} to insert the filename.
|
|
||||||
# Example: 'curl -F"file=@{}" https://0x0.st'
|
|
||||||
curl_command = None
|
|
||||||
|
|
||||||
# This is where the screenshots are saved locally
|
|
||||||
local_directory = '/home/kageru/pyshare/'
|
|
||||||
# If set to false, images will be deleted after uploading them
|
|
||||||
keep_local_copies = True
|
|
||||||
|
|
||||||
# Directory on the ftp server where you want the screenshots to be sent
|
# Directory on the ftp server where you want the screenshots to be sent
|
||||||
remote_directory = '/usr/share/nginx/html/pyshare/'
|
remote_directory = '/usr/share/nginx/html/pyshare/'
|
||||||
# Template for the link that the script will generate. {} is the filename
|
# Template for the link that the script will generate. {} is the filename
|
||||||
url_template = 'https://your_domain.com/pyshare/{}'
|
url_template = 'https://your_domain.com/pyshare/{}'
|
||||||
remote_port = 5000
|
remote_port = 5000
|
||||||
|
|
||||||
|
# === curl-related ===
|
||||||
|
# This should contain a complete curl command with a {} to insert the filename.
|
||||||
|
curl_command = 'curl -F"file=@{}" https://0x0.st'
|
||||||
|
|
||||||
|
# === Local storage ===
|
||||||
|
# This is where the screenshots are saved locally
|
||||||
|
local_directory = '/home/kageru/pyshare/'
|
||||||
|
# If set to false, images will be deleted after uploading them
|
||||||
|
keep_local_copies = True
|
||||||
|
|
||||||
# In case you want a certain prefix for all files. Can also be an empty string
|
# In case you want a certain prefix for all files. Can also be an empty string
|
||||||
|
# The filename will be used for local storage as well as the files stored on the SFTP host
|
||||||
prefix = ''
|
prefix = ''
|
||||||
# Number of random characters in the filename
|
# Number of random characters in the filename
|
||||||
length = 5
|
length = 5
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user