-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated readme instructions and wording
- Loading branch information
1 parent
5aa32e3
commit ed60ef2
Showing
1 changed file
with
6 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
Simple webapp to upload images to archive.org when internet is available, initially made for [dwebcamp 2019](https://dwebcamp.org/)! | ||
|
||
# How to set up the local webapp | ||
## How to set up the web app | ||
1. You'll need to generate some API keys for IAS3, which can be done here: [https://archive.org/account/s3.php](https://archive.org/account/s3.php) | ||
2. You'll also need to generate a secret key for flask. Some simple instructions can found here: [https://stackoverflow.com/a/34903502](https://stackoverflow.com/a/34903502) | ||
3. Create some environment variables with the respective API keys, name them IAS3_ACCESS_KEY, IAS3_SECRET_KEY and FLASK_SECRET_KEY. | ||
4. Once all that is done, it should be as simple as running **app.py**. | ||
3. Create some environment variables with the respective API keys, name them IAS3_ACCESS_KEY, IAS3_SECRET_KEY and FLASK_SECRET_KEY | ||
5. Once all that is done, it should be as simple as running **app.py** | ||
|
||
By default the app runs on localhost:80/media, but all these things can be easily configured in the code. | ||
By default the flask server runs on 10.8.8.8:88 (because that was the app setup for dweb2019), but that can be changed. | ||
|
||
If you want different settings on different devices, having an environment var like DEBUG=true is useful. |