Update __init__.py

This commit is contained in:
Joshua Hare 2025-05-11 23:12:52 +10:00 committed by GitHub
parent 7379629860
commit 2925676feb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -16,7 +16,7 @@ migrate = Migrate()
def create_app():
app = Flask(__name__, instance_relative_config=True, static_folder='/app/static')
app.config.from_object(Config)
app.config['SERVER_NAME'] = 'sudo-fhir.au' # Set for production
# Remove SERVER_NAME to allow requests from www.sudo-fhir.au
app.config['PREFERRED_URL_SCHEME'] = 'https' # Ensure HTTPS URLs
# Handle X-Forwarded-Proto for HTTPS