Merge pull request #43 from ThomasRubini/origin_env
This commit is contained in:
commit
9c04b041fa
@ -1,6 +1,7 @@
|
|||||||
# Common
|
# Common
|
||||||
FLASK_SECRET=""
|
FLASK_SECRET=""
|
||||||
DISCORD_BOT_TOKEN=""
|
DISCORD_BOT_TOKEN=""
|
||||||
|
ORIGIN="https://example.com"
|
||||||
|
|
||||||
# Database
|
# Database
|
||||||
DB_HOST=""
|
DB_HOST=""
|
||||||
|
@ -23,7 +23,10 @@ class TruthSeekerApp(flask.Flask):
|
|||||||
|
|
||||||
self.config["SECRET_KEY"] = os.getenv("FLASK_SECRET")
|
self.config["SECRET_KEY"] = os.getenv("FLASK_SECRET")
|
||||||
|
|
||||||
self.socketio_app = SocketIO(self,cors_allowed_origins=["https://truthinquiry.simailadjalim.fr","http://127.0.0.1:5000"])
|
self.socketio_app = SocketIO(
|
||||||
|
self,
|
||||||
|
cors_allowed_origins=(os.getenv("ORIGIN"), "http://127.0.0.1:5000", "http://localhost:5000")
|
||||||
|
)
|
||||||
|
|
||||||
self.discord_bot = discord_bot.DiscordBot()
|
self.discord_bot = discord_bot.DiscordBot()
|
||||||
token = os.getenv("DISCORD_BOT_TOKEN")
|
token = os.getenv("DISCORD_BOT_TOKEN")
|
||||||
|
Loading…
Reference in New Issue
Block a user