From 2d3721b2015fed196f6a61cdef3c58b6f2bf822a Mon Sep 17 00:00:00 2001 From: cedrick2711 Date: Thu, 30 Jul 2026 08:07:28 -0400 Subject: [PATCH] Ajout d'un .env.exemple pour simplifier la collaboration --- app/.env.exemple | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 app/.env.exemple diff --git a/app/.env.exemple b/app/.env.exemple new file mode 100644 index 0000000..ad55377 --- /dev/null +++ b/app/.env.exemple @@ -0,0 +1,26 @@ +# Team Tryouts Application - Environment Variables +# Copy this file to .env and fill in the values for production + +# Security Configuration +# Generate a secure random secret key: python -c "import secrets; print(secrets.token_hex(32))" +SECRET_KEY=65476749453935 + +# Set to 'true' in production to enable secure cookies (requires HTTPS) +SESSION_COOKIE_SECURE=false +FORCE_HTTPS=false + +# Flask Debug Mode - Set to 'true' only in development +FLASK_DEBUG=true + +# Discord Bot Token (required for notifications) +# This is the UdeS Esports BOT token, it will send notifications to people that have their +# Dicord_User_ID in the db / remove if you don't want discord notifs. +DISCORD_BOT_TOKEN=MTUyNzY3ODU3NjUyNTA1NDEyNQ.G1gPNQ.LeFVQAdgbeIFEetgXBuT1yyE4owPEP86Z_JBb8 + +#where to find the db (hosted on render for now) +DATABASE_URL=postgresql://team_tryouts_db_user:0YO038Od2QcQCsCTlNDAMOAOlcPGrIND@dpg-d9l53f9t0dsc73fqeieg-a.virginia-postgres.render.com/team_tryouts_db + + +#Where the app will be hosted (corresponds to: localhost:5000 in local) +HOST=127.0.0.1 +PORT=5000 \ No newline at end of file