Skip to content

Commit

Permalink
Add env SECRET_KEY
Browse files Browse the repository at this point in the history
  • Loading branch information
BattlefieldDuck committed Mar 13, 2024
1 parent 780f65a commit fd63de0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# The URL of your mongodb database.
DATABASE_URL=

# Flask application
PORT=8000
SECRET_KEY=0a431f4a5f5851adfa37107a9035e6644c2b0124f9c3d1c1

# Factorio username and token
FACTORIO_USERNAME=
FACTORIO_TOKEN=

Expand Down
2 changes: 2 additions & 0 deletions app.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os
from flask import Flask, abort, request, jsonify
from flasgger import Swagger
import flask_monitoringdashboard as dashboard
Expand All @@ -9,6 +10,7 @@
from version import __version__

app = Flask(__name__)
app.secret_key = os.getenv('SECRET_KEY', '')

swagger_config = {
"headers": [],
Expand Down

0 comments on commit fd63de0

Please sign in to comment.