-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: resolve redirect issue with aws elb
Resolve the AWS ELB redirect issue by using Werkzeug's ProxyFix to ensure that the application sends the correct headers for HTTPS. Cleaned up database migration to eliminate unnecessary clients and standardize on initial usernames.
- Loading branch information
Showing
8 changed files
with
25 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -120,8 +120,7 @@ | |
'email_address': '[email protected]', | ||
'username': 'user7', | ||
'password': 'password', | ||
'data_trust_id': '', | ||
'telephone': '967-555-1234' | ||
'data_trust_id': '' | ||
}, | ||
{ | ||
'firstname': 'Danielle', | ||
|
@@ -130,8 +129,7 @@ | |
'email_address': '[email protected]', | ||
'username': 'user8', | ||
'password': 'password', | ||
'data_trust_id': '', | ||
'telephone': '681-555-0123' | ||
'data_trust_id': '' | ||
} | ||
] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
import os | ||
from authserver import create_app | ||
|
||
from werkzeug.middleware.proxy_fix import ProxyFix | ||
|
||
environment = os.getenv('APP_ENV', None) | ||
|
||
app = application = create_app(environment) | ||
|
||
if environment == 'PRODUCTION': | ||
app = ProxyFix(app) |