Commit graph

7 commits

Author SHA1 Message Date
928cd4a3d0
feat(vscode): configure dev server port to 8110 in launch.json
Updated VSCode launch configuration to explicitly set the Django development server to run on port 8110. This ensures consistency across different development environments and resolves conflicts with default ports.
2024-07-12 10:46:50 +02:00
5e202ac58d
feat(auth): implement two-factor authentication
Added Two-Factor Authentication (2FA) using django-otp and django-two-factor-auth along with support for custom user models. Introduced necessary settings, middleware, and URL patterns to support 2FA. Updated dependencies in pyproject.toml and poetry.lock.

- Included `django_otp` and `two_factor` modules.
- Configured custom user model with email as the primary identifier.
- Added new migrations and models for CustomUser.
- Incorporated login templates for two-factor authentication.
- Enabled two-factor login URLs and middleware.

This enhancement strengthens account security by requiring a second authentication factor.
2024-07-12 09:47:23 +02:00
b92e8871a1
feat(migrations): add initial VPN and Device models
Introduce initial database migration to create VPN and Device models.
These models include fields for UUID primary keys, encrypted keys,
and subnet fields, with foreign key relations to user accounts and
VPN instances. This migration sets up essential entities for the VPN
module, providing the foundational structure for VPN and device
management.
2024-07-12 08:41:48 +02:00
11e8fe8912
feat(settings): enhance configuration handling
Updated settings to ensure "ColdBrew" section exists in the config before accessing it. Defaulted `FIELD_ENCRYPTION_KEY` to a generated value if not present and corrected encoding. Made `ALLOWED_HOSTS` configurable via settings file and adjusted `DEBUG` logic to depend on `ALLOWED_HOSTS`.
2024-07-12 08:41:33 +02:00
d2893c3ffa
feat: add debugging configuration for Django in VSCode
Included a new launch.json for VSCode to enable easy debugging
of Django projects using the Python Debugger. This configuration
launches the Django server with debugpy, making it simpler for
developers to set breakpoints and debug their applications directly
within the editor.
2024-07-12 08:41:06 +02:00
c7c05f2677
feat(models): add validators for VPN port range
Added MinValueValidator and MaxValueValidator for the port field in the VPN model to ensure values are between 10000 and 40000. This change enforces port number constraints directly in the model, preventing invalid entries and improving data integrity.
2024-07-12 08:40:41 +02:00
e1bf6b9901
feat: initialize project structure with core setup
Initial setup of the ColdBrew Django-based VPN manager project. Added basic project structure including core Django configurations and essential files:
- Added `.gitignore` to exclude unnecessary files from version control.
- Introduced `LICENSE` with MIT license.
- Created basic `README.md` with setup and contribution guidance.
- Configured Django project settings with auto-generated secrets.
- Implemented essential VPN management models, views, and admin settings.
- Integrated core dependencies like Django Rest Framework, Celery for task management, and Redis for caching.
- Added Poetry for dependency management along with necessary dependencies for development and database support.
2024-07-12 08:31:39 +02:00