10 Commits

Author SHA1 Message Date
sassanix 8165b797d8 Notifications and QOL
Refer to changelogs
2025-03-26 09:27:44 -03:00
sassanix 47923fe544 Upload Size Increase
Refer to changelogs for all of the changes.
2025-03-21 17:51:49 -03:00
sassanix 3f6a0cbb3e API Security Improvements
Refer to changelogs
2025-03-21 08:25:52 -03:00
sassanix b800742c3d Security Enhancements
Refer to changelog.md
2025-03-20 23:05:35 -03:00
sassanix ec7cb58c9f Fixed test.html in the dockerfile
test.html was preventing the docker from running
2025-03-16 12:36:44 -03:00
sassanix f6e11a629e Authentication, Settings Page
Refer to Changelog for all the changes
2025-03-13 15:48:42 -03:00
sassanix 8f62a166a6 Status page added
Please refer to Changelogs.md
2025-03-06 22:06:44 -04:00
sassanix c267517de2 Fixed uploads to load the invoices
1. **Simplified nginx configuration:**
   - Changed from `root /data` back to `alias /data/uploads/` which is the correct way to map `/uploads/` to `/data/uploads/`
   - Removed potentially conflicting location blocks
   - Fixed the error handling to not redirect upload 404s to the index page

2. **Improved startup script:**
   - Added checking and reporting of directory permissions
   - Added explicit chmod during startup

3. **Simplified Flask route:**
   - Removed all the complex debugging code
   - Returned to a simple `send_from_directory` call

4. **Added a basic test file:**
   - Created ping.html to test basic nginx functionality
2025-03-03 07:59:44 -04:00
sassanix c07d2079a2 Fixing database
Fixed API Connection Issue

Changed the Nginx proxy configuration from proxy_pass http://localhost:5000; to proxy_pass http://127.0.0.1:5000; in the container's configuration
This resolved the "ERR_CONNECTION_REFUSED" error by ensuring proper communication between Nginx and the Flask backend within the Docker container

Fixed Database Serialization Error

Updated the Python imports in app.py to properly include the date class: from datetime import datetime, timedelta, date
Modified the type checking code to correctly identify date objects: isinstance(value, (datetime, date))
This resolved the "isinstance() arg 2 must be a type or tuple of types" error that was preventing the application from retrieving warranty data

These changes resolved the connection issues between frontend and backend components, allowing the application to successfully add and display warranty information.
2025-03-02 12:08:07 -04:00
sassanix 82f70164d2 My project so far 2025-03-01 22:40:41 -04:00