File tree Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change 7070# Test files
7171test_ * .py
7272* _test.py
73+
74+ # Security - Credential Protection
75+ * .env
76+ * production.env *
77+ * config /production.env *
78+ .env. *
79+ secrets. *
80+ credentials. *
81+ passwords. *
82+ * secrets *
83+ * credentials *
84+ config /production.env
85+ config /* .env
86+
87+ # Flask session files
88+ flask_session /
89+ instance /
Original file line number Diff line number Diff line change @@ -1820,4 +1820,7 @@ def admin_remove_photo(user_dn):
18201820
18211821if __name__ == '__main__' :
18221822 # Production configuration - debug disabled for security
1823- app .run (debug = False , host = '0.0.0.0' , port = 5000 )
1823+ # Bind to localhost only for security - use reverse proxy for external access
1824+ host = os .getenv ('HOST' , '127.0.0.1' ) # Default to localhost, override via environment
1825+ port = int (os .getenv ('PORT' , '5000' ))
1826+ app .run (debug = False , host = host , port = port )
You can’t perform that action at this time.
0 commit comments