Skip to content

Commit ec8c704

Browse files
committed
Adjusts README, changes UPLOAD_MAX_SIZE to UPLOAD_MAX_FILESIZE
1 parent 18327e8 commit ec8c704

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,14 @@ Your video is sent to an API where the audio is extracted from it using FFMpeg,
2929

3030
If you chose to select chapters or a summary, that transcript is then sent to a **ChatGPT model** for processing into concise chapters of the length you wanted, and a brief summary that would fit in something like a YouTube description.
3131

32+
## Configuration
33+
34+
You can adjust a few parameters in the container by passing in [environment variables](https://docs.docker.com/engine/reference/commandline/run/#env) with your command using additional `-e` flags. Here are the current ones you can add:
35+
36+
- `OPENAI_API_KEY` **(required)** - Sets the key responsible for communication with OpenAI's APIs. No default.
37+
- `UPLOAD_MAX_FILESIZE` - Changes PHP's UPLOAD_MAX_FILESIZE setting. Default: `256M`
38+
- `MEMORY_LIMIT` - Changes PHP's MEMORY_LIMIT setting. Default: `512M`
39+
3240
## Starting from source
3341

3442
Alternative, if you have **PHP 8.1+** and **npm** installed on your local machine, you can boot the application up directly from the source code instead.

startup.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ if [ -z "$OPENAI_API_KEY" ]; then
55
exit 1
66
fi
77

8-
if [ -z "$UPLOAD_MAX_SIZE" ]; then
9-
UPLOAD_MAX_SIZE="256M"
8+
if [ -z "$UPLOAD_MAX_FILESIZE" ]; then
9+
UPLOAD_MAX_FILESIZE="256M"
1010
fi
1111

1212
if [ -z "$MEMORY_LIMIT" ]; then
@@ -16,8 +16,8 @@ fi
1616
echo "OPENAI_API_KEY=$OPENAI_API_KEY" >> .env
1717

1818
echo "memory_limit = $MEMORY_LIMIT" >> /usr/local/etc/php/php.ini
19-
echo "upload_max_filesize = $UPLOAD_MAX_SIZE" >> /usr/local/etc/php/php.ini
20-
echo "post_max_size = $UPLOAD_MAX_SIZE" >> /usr/local/etc/php/php.ini
19+
echo "upload_max_filesize = $UPLOAD_MAX_FILESIZE" >> /usr/local/etc/php/php.ini
20+
echo "post_max_size = $UPLOAD_MAX_FILESIZE" >> /usr/local/etc/php/php.ini
2121

2222
php artisan key:generate
2323

0 commit comments

Comments
 (0)