Skip to content

Commit 6567317

Browse files
committed
sec key renamed
1 parent 4825761 commit 6567317

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ graph TD
204204

205205
| Variable | Description | Required |
206206
|---------------------------|--------------------------------|--------------------------------------------|
207-
| `FLASK_SECRET_KEY` | Session encryption | No (generate with `secrets.token_hex(32)`) |
207+
| `SECRET_KEY` | Session encryption | No (generate with `secrets.token_hex(32)`) |
208208
| `GITHUB_APP_ID` | GitHub App ID | Yes |
209209
| `GITHUB_INSTALLATION_ID` | App Installation ID | Yes |
210210
| `GITHUB_PRIVATE_KEY_PATH` | Path to App Private Key file | Yes* |

app/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def create_app():
2323
app = Flask(__name__, template_folder='templates')
2424

2525
# Configure secret key for sessions
26-
app.config['SECRET_KEY'] = os.environ.get('FLASK_SECRET_KEY', secrets.token_hex(32))
26+
app.config['SECRET_KEY'] = os.environ.get('SECRET_KEY', secrets.token_hex(32))
2727

2828
# Disable debug mode in production
2929
app.config['DEBUG'] = False
@@ -34,6 +34,7 @@ def create_app():
3434
app.config['SESSION_COOKIE_HTTPONLY'] = True
3535
app.config['SESSION_COOKIE_SAMESITE'] = 'Lax'
3636
app.config['PERMANENT_SESSION_LIFETIME'] = 3600 # 1 hour
37+
app.config['MAX_CONTENT_LENGTH'] = 64 * 1024 # 64 KB
3738

3839
# Initialize rate limiter
3940
limiter.init_app(app)

0 commit comments

Comments
 (0)