Commit Graph

15 Commits

Author SHA1 Message Date
bbaovanc 841bb513d3 Allow easy customization of filename generation
Added a new file called functions.py which contains user-customizable
functions, instead of requiring the user to edit imgupload.py.
2020-09-02 17:14:28 -05:00
bbaovanc f0bb30a747 Change keygen.py to not require root
keygen.py now recommends that you run it as the user you want to have
ownership of secret.key and uploadkeys (such as www-data for nginx).
Then, if uploadkeys or secret.key don't exist, they will be created with
the correct ownership.
2020-09-02 14:26:57 -05:00
bbaovanc 7fce3f57e9 Remove secrets from requirements.txt
On macOS, a dependency of secrets fails to install using pip. After
testing, it looks like the secrets module is not required.
v1.0
2020-08-31 23:46:28 -05:00
dependabot-preview[bot] a587040809 Bump cryptography from 2.8 to 3.1 (#2) 2020-09-01 04:41:50 +00:00
bbaovanc 8a95dbb0fa Remove trailing whitespace from lines 2020-08-31 23:09:39 -05:00
bbaovanc a5a22b7c88 Remove UPLOADKEYS_CHMOD option due to keygen.py
Since keygen.py is run as root, uploadkeys is owned by root. This causes
issues when imgupload.py tries to chmod the uploadkeys file since it
doesn't have permissions to chmod it.
Solution: remove UPLOADKEYS_CHMOD option
2020-08-31 21:14:09 -05:00
bbaovanc 7ccaafc6c6 Bugfixes in keygen.py
- Handle if uploadkeys becomes corrupted
- Disambiguate variable names
- Handle case where the uploadkeys file doesn't already exist
2020-08-31 20:32:00 -05:00
bbaovanc 797bebb1a1 Fix ENCKEY_PATH check in configtest.py 2020-08-31 20:29:07 -05:00
quiprr 08f9e13da0 Merge pull request #1 from BBaoVanC/dev
added encryption to uploadkeys and added a key generator
2020-08-31 17:13:24 -07:00
ItHertzSoGood 3d1304b3b0 added encryption to uploadkeys and added a key generator 2020-08-31 17:12:39 -07:00
bbaovanc 4b624f3fed Ignore settings.py and add settings.py.default 2020-08-31 18:48:22 -05:00
bbaovanc e6dcb814fb Added files (v0.1)
Added the Python files so now the repository actually has something.
This will probably become v0.1 without any changes.
v0.1
2020-08-31 17:29:54 -05:00
bbaovanc e6c9b48cc7 Add "Use at your own risk!" warning to README.md
The project is still in heavy development, so there is no guarantee that
it's bug free.
2020-08-31 17:19:08 -05:00
bbaovanc b00f095d55 Added private files to .gitignore
- uploadkeys
- savelog.log
- uwsgi.log
2020-08-31 16:58:48 -05:00
bbaovanc bcd8ecff58 Initial commit 2020-08-31 16:43:58 -05:00