Skip to content

Conversation

simcax
Copy link
Owner

@simcax simcax commented Mar 30, 2025

No description provided.

Introduces dedicated editor routes for creating and editing pages,
improving content management workflow.

Enhances the navigation bar with subpage creation links and a dropdown
menu for adding new content, streamlining user experience.

Addresses issues related to page creation and modification,
providing a more intuitive interface.
Removes the `current_pages.yaml` file.
The file is no longer needed.
simcax added 2 commits May 2, 2025 23:08
Updates the index handling to remove unnecessary dependencies.

Adds a footer to the home page with a link to the developer.
Adds edit icons to the navbar for quick access to page editing.
Also ensures the editor displays existing content when editing a page
and includes the page title.
The footer now includes a link to the project's GitHub repository.
Adds user authentication using ForeningLet API.
Introduces login, logout, and session management features.
Persists user sessions for 5 days of inactivity.
Integrates user authentication into navbar.
Adds permalinks blueprint to allow for direct linking to content, bypassing the home page.
Implements page deletion functionality.
Refactors page update logic.
Updates the page index to accurately reflect the
site's content structure for "nyt-om-lejre-fitness,"
including the "bestyrelsen" subpage.  Removes old test page.
Configures the application to limit the size of uploaded files.
This prevents excessively large files from being uploaded, mitigating
potential resource exhaustion or denial-of-service attacks.
Sets `limit_request_line` and `limit_request_field_size` to 0.
This disables the request line and field size limits in Gunicorn, allowing for larger requests.
Removes an unnecessary line break in the access log format definition, improving code readability and consistency.
Configures Gunicorn using a dedicated configuration file for better management of settings.

This change decouples Gunicorn configuration from the Dockerfile, making it easier to modify settings without rebuilding the container.
Removes redundant parentheses from the access_log_format definition in gunicorn.py.
This change simplifies the line without affecting its functionality, improving readability and maintainability.
Increases the virtual machine memory allocation to 2GB.
This provides more resources for the application and potentially
improves performance.
Updates the import of the authentication blueprint to improve code organization and readability.
This change simplifies the application's structure by directly importing the auth module instead of the blueprint.
This is to make the @before_app_request be called and keep the user session available in the application.
Improves debugging by adding logging statements
to track user authentication flow. Logs user ID
and API user data for troubleshooting purposes.
Modernizes logging statements to use f-strings for improved readability and maintainability. This change simplifies string formatting within log messages, making them easier to understand and modify.
Sets the session cookie domain dynamically based on the URL obtained from the `modify-url` step.
This ensures that the session cookie is correctly scoped to the appropriate domain.
Stores user's ID, name and email in the session upon successful login.
This allows for easier access to user information throughout the application
without needing to query the database repeatedly.
Adds a session ID to each user session and logs session
information for debugging purposes. This helps track user
activity and diagnose potential session-related issues.
The session ID is generated using UUID and stored in the
session if it doesn't already exist.
Replaces SESSION_COOKIE_DOMAIN with SECRET_KEY in the Fly.io review workflow.

This enhances application security by utilizing the SECRET_KEY environment variable, ensuring a more robust approach to managing sensitive information during review deployments.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant