File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff 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* |
Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments