diff --git a/.env b/.env deleted file mode 100644 index 86c7bd2..0000000 --- a/.env +++ /dev/null @@ -1,37 +0,0 @@ -# ----------------------------- -# Flask App Configuration -# ----------------------------- -FLASK_ENV=development -FLASK_DEBUG=True -FLASK_HOST=0.0.0.0 -FLASK_PORT=5015 - -# ----------------------------- -# Security -# ----------------------------- -SECRET_KEY=change-this-to-strong-secret-key - -# ----------------------------- -# Database Configuration -# ----------------------------- -DB_DIALECT=mysql -DB_DRIVER=pymysql -DB_HOST=127.0.0.1 -DB_PORT=3306 -DB_NAME=comparisondb -DB_USER=root -DB_PASSWORD=root - -# DATABASE_URL=mysql+pymysql://root:root@localhost/comparisondb - - -# ----------------------------- -# LDAP Configuration new -# ----------------------------- -LDAP_SERVER=ldap://host.docker.internal -LDAP_PORT=389 -LDAP_USE_SSL=False - -LDAP_DOMAIN=lcepl.org -LDAP_BASE_DN=DC=lcepl,DC=org -LDAP_SEARCH_BASE=OU=Users,DC=lcepl,DC=org diff --git a/.gitignore b/.gitignore index 2eba46a..efcbd78 100644 --- a/.gitignore +++ b/.gitignore @@ -1,19 +1,22 @@ # Python app/__pycache__/ +__pycache__/ *.pyc *.pyo *.pyd -*.__pycache__ -# Ingnor upload files +# Ignore upload files app/static/uploads/ -# Ignore env files -venv +# Virtual environment +venv/ +.venv/ -# Ignore Log files ss +# Environment / secrets +.env +.env.* +!.env.example + +# Log files logs/ -*.log - - - +*.log \ No newline at end of file diff --git a/logs/app.log b/logs/app.log deleted file mode 100644 index 8b32aa6..0000000 --- a/logs/app.log +++ /dev/null @@ -1,50 +0,0 @@ -2026-08-06 12:44:45 | INFO | User=System | IP=- | - | - | ====================================================================== -2026-08-06 12:44:45 | INFO | User=System | IP=- | - | - | Application Started Successfully -2026-08-06 12:44:45 | INFO | User=System | IP=- | - | - | ====================================================================== -2026-08-07 11:46:57 | INFO | User=System | IP=- | - | - | ====================================================================== -2026-08-07 11:46:57 | INFO | User=System | IP=- | - | - | Application Started Successfully -2026-08-07 11:46:57 | INFO | User=System | IP=- | - | - | ====================================================================== -2026-08-07 11:47:12 | INFO | User=System | IP=- | - | - | ====================================================================== -2026-08-07 11:47:12 | INFO | User=System | IP=- | - | - | Application Started Successfully -2026-08-07 11:47:12 | INFO | User=System | IP=- | - | - | ====================================================================== -2026-08-07 11:47:14 | INFO | User=System | IP=- | - | - | ====================================================================== -2026-08-07 11:47:14 | INFO | User=System | IP=- | - | - | Application Started Successfully -2026-08-07 11:47:14 | INFO | User=System | IP=- | - | - | ====================================================================== -2026-08-07 11:47:18 | INFO | User=Laxmi | IP=192.168.0.142 | POST | http://192.168.0.142:5015/file/Subcontractor_report | Request Started -2026-08-07 11:47:18 | INFO | User=Laxmi | IP=192.168.0.142 | POST | http://192.168.0.142:5015/file/Subcontractor_report | Request Completed | Status=200 -2026-08-07 11:47:19 | INFO | User=Laxmi | IP=192.168.0.142 | GET | http://192.168.0.142:5015/static/images/lcepl.png | Request Started -2026-08-07 11:47:19 | INFO | User=Laxmi | IP=192.168.0.142 | GET | http://192.168.0.142:5015/static/images/lcepl.png | Request Completed | Status=200 -2026-08-07 11:47:22 | INFO | User=Laxmi | IP=192.168.0.142 | GET | http://192.168.0.142:5015/logout | Request Started -2026-08-07 11:47:22 | INFO | User=Anonymous | IP=192.168.0.142 | GET | http://192.168.0.142:5015/logout | Logout successful. User=Laxmi -2026-08-07 11:47:22 | INFO | User=Anonymous | IP=192.168.0.142 | GET | http://192.168.0.142:5015/logout | Request Completed | Status=302 -2026-08-07 11:47:22 | INFO | User=Anonymous | IP=192.168.0.142 | GET | http://192.168.0.142:5015/login | Request Started -2026-08-07 11:47:22 | INFO | User=Anonymous | IP=192.168.0.142 | GET | http://192.168.0.142:5015/login | Request Completed | Status=200 -2026-08-07 11:47:22 | INFO | User=Anonymous | IP=192.168.0.142 | GET | http://192.168.0.142:5015/static/images/lcepl.png | Request Started -2026-08-07 11:47:22 | INFO | User=Anonymous | IP=192.168.0.142 | GET | http://192.168.0.142:5015/static/images/lcepl.png | Request Completed | Status=304 -2026-08-07 11:47:30 | INFO | User=Anonymous | IP=192.168.0.142 | POST | http://192.168.0.142:5015/login | Request Started -2026-08-07 11:47:30 | INFO | User=Laxmi | IP=192.168.0.142 | POST | http://192.168.0.142:5015/login | Login successful. User=Laxmi -2026-08-07 11:47:30 | INFO | User=Laxmi | IP=192.168.0.142 | POST | http://192.168.0.142:5015/login | Request Completed | Status=302 -2026-08-07 11:47:30 | INFO | User=Laxmi | IP=192.168.0.142 | GET | http://192.168.0.142:5015/dashboard/ | Request Started -2026-08-07 11:47:30 | INFO | User=Laxmi | IP=192.168.0.142 | GET | http://192.168.0.142:5015/dashboard/ | Request Completed | Status=200 -2026-08-07 11:47:30 | INFO | User=Laxmi | IP=192.168.0.142 | GET | http://192.168.0.142:5015/dashboard/api/live-stats | Request Started -2026-08-07 11:47:30 | INFO | User=Laxmi | IP=192.168.0.142 | GET | http://192.168.0.142:5015/dashboard/api/live-stats | Request Completed | Status=200 -2026-08-07 11:47:35 | INFO | User=Laxmi | IP=192.168.0.142 | GET | http://192.168.0.142:5015/file/Subcontractor_report | Request Started -2026-08-07 11:47:35 | INFO | User=Laxmi | IP=192.168.0.142 | GET | http://192.168.0.142:5015/file/Subcontractor_report | Request Completed | Status=200 -2026-08-07 11:47:40 | INFO | User=Laxmi | IP=192.168.0.142 | POST | http://192.168.0.142:5015/file/Subcontractor_report | Request Started -2026-08-07 11:47:40 | INFO | User=Laxmi | IP=192.168.0.142 | POST | http://192.168.0.142:5015/file/Subcontractor_report | Request Completed | Status=200 -2026-08-07 11:47:41 | INFO | User=Laxmi | IP=192.168.0.142 | POST | http://192.168.0.142:5015/file/Subcontractor_report | Request Started -2026-08-07 11:47:42 | INFO | User=Laxmi | IP=192.168.0.142 | POST | http://192.168.0.142:5015/file/Subcontractor_report | Request Completed | Status=200 -2026-08-07 11:47:44 | INFO | User=Laxmi | IP=192.168.0.142 | POST | http://192.168.0.142:5015/file/Subcontractor_report | Request Started -2026-08-07 11:47:44 | INFO | User=Laxmi | IP=192.168.0.142 | POST | http://192.168.0.142:5015/file/Subcontractor_report | Request Completed | Status=200 -2026-08-07 11:47:46 | INFO | User=Laxmi | IP=192.168.0.142 | POST | http://192.168.0.142:5015/file/Subcontractor_report | Request Started -2026-08-07 11:47:46 | INFO | User=Laxmi | IP=192.168.0.142 | POST | http://192.168.0.142:5015/file/Subcontractor_report | Request Completed | Status=200 -2026-08-07 11:47:49 | INFO | User=Laxmi | IP=192.168.0.142 | GET | http://192.168.0.142:5015/file/Subcontractor_report | Request Started -2026-08-07 11:47:49 | INFO | User=Laxmi | IP=192.168.0.142 | GET | http://192.168.0.142:5015/file/Subcontractor_report | Request Completed | Status=200 -2026-08-07 11:47:54 | INFO | User=Laxmi | IP=192.168.0.142 | POST | http://192.168.0.142:5015/file/Subcontractor_report | Request Started -2026-08-07 11:47:54 | INFO | User=Laxmi | IP=192.168.0.142 | POST | http://192.168.0.142:5015/file/Subcontractor_report | Request Completed | Status=200 -2026-08-07 11:47:57 | INFO | User=Laxmi | IP=192.168.0.142 | POST | http://192.168.0.142:5015/file/Subcontractor_report | Request Started -2026-08-07 11:47:57 | INFO | User=Laxmi | IP=192.168.0.142 | POST | http://192.168.0.142:5015/file/Subcontractor_report | Request Completed | Status=200 -2026-08-07 11:48:07 | INFO | User=Laxmi | IP=192.168.0.142 | POST | http://192.168.0.142:5015/file/Subcontractor_report | Request Started -2026-08-07 11:48:07 | INFO | User=Laxmi | IP=192.168.0.142 | POST | http://192.168.0.142:5015/file/Subcontractor_report | Request Completed | Status=200 -2026-08-07 11:48:11 | INFO | User=Laxmi | IP=192.168.0.142 | POST | http://192.168.0.142:5015/file/Subcontractor_report | Request Started -2026-08-07 11:48:11 | INFO | User=Laxmi | IP=192.168.0.142 | POST | http://192.168.0.142:5015/file/Subcontractor_report | Request Completed | Status=200