Commit Graph

20 Commits

Author SHA1 Message Date
BBaoVanC 0b22731076
Remove a few leftover lines 2020-09-03 21:28:14 -05:00
BBaoVanC 9f2c7c2b88
Clean up and reorganize keygen.py
This makes it easier to add new features
- Clearer variable names
- Split up large functions into smaller ones for each action
- Help make it easier to add new features
2020-09-03 20:20:22 -05:00
BBaoVanC 3fcdaa2b10
Fix formatting of README.md 2020-09-02 21:52:13 -05:00
BBaoVanC 4309225185
Add Installation section to README.md
- Added Installation section to README.md
- Removed old Usage section
2020-09-02 21:43:31 -05:00
BBaoVanC 065296f84a
Rename functions.py to functions.py.default
Since this is default settings and the user might want to customize
them, functions.py has been renamed. This also will prevent conflicts if
the user has updated their functions.py and then tries to pull.
2020-09-02 18:04:41 -05:00
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.
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.
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