Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(server): Add ApiUrl + ServerUrl env + allow usage of https #8579

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Commits on Nov 19, 2024

  1. refactor(core): centralize SERVER_URL logic + allow ssl on server

    Replaced individual environment-based server URL retrievals with a centralized ServerUrl utility. This change simplifies URL management and ensures a consistent approach across different services. Added validation for SSL configurations when using HTTPS.
    AMoreaux committed Nov 19, 2024
    Configuration menu
    Copy the full SHA
    450d137 View commit details
    Browse the repository at this point in the history
  2. refactor: consolidate ServerUrl and ApiUrl handling

    Removed standalone ServerUrl and integrated with combined ServerUrl/ApiUrl module. Refactored codebase to use ApiUrl for public network accessibility and adjusted corresponding imports.
    AMoreaux committed Nov 19, 2024
    Configuration menu
    Copy the full SHA
    398364d View commit details
    Browse the repository at this point in the history
  3. refactor: rename serverAndApiUrl to server-and-api-urls

    Renamed utils file for better readability and consistency. Updated all references to the new file name and added unit tests for ServerUrl and ApiUrl functionalities.
    AMoreaux committed Nov 19, 2024
    Configuration menu
    Copy the full SHA
    4fbaaac View commit details
    Browse the repository at this point in the history
  4. fix(server-setup): Adjust test hooks and SSL config paths

    Move the reset of ServerUrl and ApiUrl to beforeEach in tests to ensure clean state before each test runs. Update example SSL_KEY_PATH and SSL_CERT_PATH to use relative paths for more portability.
    AMoreaux committed Nov 19, 2024
    Configuration menu
    Copy the full SHA
    8a88f40 View commit details
    Browse the repository at this point in the history
  5. test: Adjust WorkspaceInvitationService tests to set ApiUrl

    Import the ApiUrl module and set the local URL in the setup function. This ensures the tests have the correct API endpoint configured.
    AMoreaux committed Nov 19, 2024
    Configuration menu
    Copy the full SHA
    886c6f2 View commit details
    Browse the repository at this point in the history
  6. [test] Reorder import statements

    Reordered import statements in `workspace-invitation.service.spec.ts` for improved code organization. This change ensures that dependencies are imported in a more logical sequence.
    AMoreaux committed Nov 19, 2024
    Configuration menu
    Copy the full SHA
    7ef1c73 View commit details
    Browse the repository at this point in the history
  7. feat(self-hosting): Add API_URL to environment variables

    Included API_URL in self-hosting documentation for public endpoint configuration. This helps developers set up the correct URLs for API interactions in their self-hosted environments.
    AMoreaux committed Nov 19, 2024
    Configuration menu
    Copy the full SHA
    a933d31 View commit details
    Browse the repository at this point in the history

Commits on Nov 20, 2024

  1. fix(server): enforce protocol in environment URLs

    Removed protocol check logic from main.ts and enforced URL validation to require protocol directly in environment variables definition. This ensures consistent and secure URL formats throughout the application.
    AMoreaux committed Nov 20, 2024
    Configuration menu
    Copy the full SHA
    8b40561 View commit details
    Browse the repository at this point in the history
  2. feat(ssl-generation): Add SSL generation script

    Add a new Bash script for generating self-signed SSL certificates, including a README with instructions. Supports customizable domain, root certificate name, and validity period, and integrates root certificate into macOS keychain.
    AMoreaux committed Nov 20, 2024
    Configuration menu
    Copy the full SHA
    8cf6502 View commit details
    Browse the repository at this point in the history

Commits on Nov 21, 2024

  1. chore(): remove comment

    AMoreaux committed Nov 21, 2024
    Configuration menu
    Copy the full SHA
    79a8da2 View commit details
    Browse the repository at this point in the history