Skip to content

Commit 9e45cb3

Browse files
committed
Use getenv for SECRET_KEY
1 parent 70b705c commit 9e45cb3

File tree

7 files changed

+1565
-1
lines changed

7 files changed

+1565
-1
lines changed

azure.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# yaml-language-server: $schema=https://raw.githubusercontent.com/Azure/azure-dev/main/schemas/v1.0/azure.yaml.json
2+
3+
name: flask-postgresql-sample-app
4+
5+
services:
6+
web:
7+
project: .
8+
language: py
9+
host: appservice

azureproject/production.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import os
22

33
# SECURITY WARNING: keep the secret key used in production secret!
4-
SECRET_KEY = 'flask-insecure-7ppocbnx@w71dcuinn*t^_mzal(t@o01v3fee27g%rg18fc5d@'
4+
SECRET_KEY = os.getenv('SECRET_KEY', 'flask-insecure-7ppocbnx@w71dcuinn*t^_mzal(t@o01v3fee27g%rg18fc5d@')
55

66
DEBUG = False
77
ALLOWED_HOSTS = [os.environ['WEBSITE_HOSTNAME']] if 'WEBSITE_HOSTNAME' in os.environ else []

0 commit comments

Comments
 (0)