70e84ec8f0
Remove unused flask Response import
2020-12-16 15:25:50 -06:00
b11c7c2845
Strip EXIF from image before saving
2020-11-24 17:51:37 -06:00
86ec88db08
Update .gitignore
2020-11-24 17:37:02 -06:00
fb416d1c0d
Fix installation instructions
2020-11-20 11:43:35 -06:00
b20b78fd17
Fix syntax error at imgupload.py:109
2020-11-20 11:38:26 -06:00
2b8330e32a
Clean up README.md
2020-10-04 11:15:34 -05:00
63818bd371
Change usage of str.format() to f-strings
2020-10-04 11:13:59 -05:00
67cb916ac9
Add git checkout step to uWSGI guide
2020-09-26 23:24:59 -05:00
9910bc279c
Add imageName field to request a specific name to save to
2020-09-15 17:24:36 -05:00
f100732e4d
Check if image with same name already exists
2020-09-15 17:20:41 -05:00
46420eecda
Remove leftover debug print statements in configtest.py
2020-09-15 16:35:50 -05:00
7b372a7b6f
Increase processes in uwsgi.ini.default
2020-09-12 19:48:42 -05:00
5570710432
Rewrite installation section in README.md
...
Also added uWSGI installation tutorial
2020-09-08 00:39:48 -05:00
ba68674e4e
Add GitHub-specific README.md which links Gitea
2020-09-07 20:31:24 -05:00
99ff2c68a3
Change references of gitea.bbaovanc.com to git.bbaovanc.com
2020-09-07 02:07:36 -05:00
dd069bf395
Add newline after block comments at beginning
2020-09-06 15:24:20 -05:00
f21adfa04e
Added FAQ and links to sections in README.md
2020-09-06 12:43:44 -05:00
3d5c55498f
Clean up and add LICENSE section to README.md
2020-09-06 11:26:13 -05:00
5e2be10434
Change references of GitHub to gitea.bbaovanc.com
2020-09-06 11:09:06 -05:00
7c1f449bce
Add "verify" field to request to not save image
...
This makes it easy for the user to debug authentication.
2020-09-05 18:55:56 -05:00
0dbcc0e380
Change file extension check to be case-insensitive
2020-09-05 16:21:50 -05:00
b8b5a2518c
Change abort() calls to JSON responses
...
This makes the responses more consistent. Now, all responses are JSON.
2020-09-05 15:43:36 -05:00
805e545b39
Deduplicate code in keyctl.py and add comments
2020-09-04 19:44:46 -05:00
ItHertzSoGood
9a117817f7
Changed random to secrets for cryptographic security
2020-09-04 14:32:53 -07:00
c9cd6469a9
Change a couple print statements to logging.info
...
Quiet mode is now a little more useful!
2020-09-04 15:37:34 -05:00
6f64890e34
Remove unused imports from imgupload.py
2020-09-04 15:24:49 -05:00
91db522363
Add keyctl.py for easy management of uploadkeys
2020-09-04 15:19:40 -05:00
9d9b93a9ee
Add proper shebangs and block comments
2020-09-04 10:47:20 -05:00
565a91e4ec
Remove uploadkeys encryption features
...
It doesn't really make sense to encrypt the keys, but store the secret
literally in the same directory. uploadkeys will now be stored in
plaintext. The branch `legacy` has the old code from before this commit.
2020-09-03 21:44:58 -05:00
3fcdaa2b10
Fix formatting of README.md
2020-09-02 21:52:13 -05:00
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
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
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
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
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
8a95dbb0fa
Remove trailing whitespace from lines
2020-08-31 23:09:39 -05:00
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
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
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
4b624f3fed
Ignore settings.py and add settings.py.default
2020-08-31 18:48:22 -05:00
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
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
bcd8ecff58
Initial commit
2020-08-31 16:43:58 -05:00