This change simplifies trusted host settings, removing reliance on environment variables.
- Enables all hostnames by using a wildcard pattern.
- Fixes potential issues with dynamic environments.
This is a security configuration update that is suitable for development environments.
Updates composer.lock with new packages and updates existing dependencies.
- Adds merge-plugin configuration to composer.json to include composer.libraries.json files from specified webform, anchor_link and masonry modules.
- Updates versions of illuminate components.
- Adds new javascript libraries such as algolia/places, choices/choices, jquery, popperjs and signature_pad.
Ensures proper trusted host configuration by dynamically setting patterns based on the SERVER_NAME environment variable.
- Uses SERVER_NAME env variable or defaults to 'localhost'.
- Extracts domain name and configures trusted host patterns.
- Adds localhost, 127.0.0.1 and extracted domain to the trusted host list.
Updates settings.php to include necessary database configurations.
- Adds `isolation_level` to the database settings array.
- Ensures the `autoload` path ends with a forward slash.
- Prevents potential database connection issues.
Adds a MariaDB service to the docker-compose.yml file for local development.
- Defines a MariaDB container with persistent volume for data.
- Exposes port 3306 for database access.
- Sets default database credentials.
Mount the default files directory to persist uploaded media.
- Ensures persistent storage of uploaded files.
- Prevents data loss on container restarts.
The database initialization volume was pointing to a non-existent directory.
- Update volume mount path to use the correct directory
- Corrected `db2` to `db`
This ensures that the database is properly initialized on startup.
Addresses minor spacing issue in the GTM noscript tag.
- Removes extra space after the tag.
- Improves code readability.
This change doesn't affect functionality.
This commit introduces a new Twig template for the main help menu.
- Creates `menu--main-help.html.twig` to define the menu structure.
- Implements a recursive macro for rendering nested menu links.
- Adds classes for styling and interactivity.
This commit adds the initial IDE configuration files for the project.
- Configures code style settings for consistent formatting.
- Sets up inspection profiles for code quality checks.
- Adds project-specific settings for various tools.
This commit updates the Drupal image source to use the Harbor registry.
- Switch from `d4science/website` to `harbor.d4science.org/d4science-website/drupal:latest`.
- Ensures we're using the most recent Drupal image.
- Improves image management and version control.
This commit updates the .gitignore and .dockerignore files to use a more comprehensive template.
- Replaces the existing content with a template from gitignore.io, covering a wider range of ignored files.
- Includes ignores for Git, Linux, macOS, Windows, PhpStorm, Visual Studio Code, Drupal, and Composer.
- Simplifies file management and reduces unnecessary files in the repository.
Fixes an issue where the COMPOSER_ALLOW_SUPERUSER environment variable was not being set correctly.
- Changes `ENV COMPOSER_ALLOW_SUPERUSER 1` to `ENV COMPOSER_ALLOW_SUPERUSER=1`
- Ensures the variable is properly interpreted by the shell.
This commit migrates the database from PostgreSQL to MariaDB for development.
- Updates docker-compose files to use MariaDB image and configuration.
- Adjusts environment variables to reflect MariaDB settings (port, driver).
- Removes PostgreSQL-related configurations.
- Update .gitignore and .dockerignore with comprehensive rules from Toptal's gitignore templates.
- Add rules for macOS, Drupal, Composer, and PhpStorm to exclude unnecessary files.
- Enhance project cleanliness and reduce commit noise.
Updates dependencies in composer.lock.
- Updates drupal/better_exposed_filters from 7.0.4 to 7.0.5.
- Updates gravitypdf/querypath from 3.1.4 to 4.1.0 with PHP 8.3 support.
- Updates multiple Symfony packages to v6.4.18.
This commit addresses an issue where the database driver was hardcoded to 'pgsql'.
- It introduces an environment variable `DB_DRIVER` to dynamically determine the database driver.
- It updates the database configuration array to use this environment variable.
- It ensures compatibility with different database systems based on the environment configuration.
- Add `curl` and `openssl` php extensions to the docker image.
- These extensions are required for various functionalities.
- Update Dockerfile to reflect changes.
- change SERVER_NAME from `localhost` to `d4science.localhost` in `docker-compose.dev.yml`
- this allows accessing the site via `d4science.localhost`
- improves local development workflow
• Update restart policy for all services to 'unless-stopped'
• Ensure services do not restart automatically on failure
• Improve control over service management in development environment
- Add instructions for running the application using the prebuilt image with docker-compose.
- Add instructions for building the image locally.
- Include details on configuring environment variables within the docker-compose file.
- Add port 80 to the server address
- Add trailing newline to the Caddyfile
- Fix extra whitespace in the `Cache-Control` header
These changes ensure that Caddy listens on the correct port and prevent potential parsing issues due to the missing newline. The whitespace fix improves consistency and readability.
- Remove commented-out entries for Drupal core and config files
- Add user-generated content directories to the ignore list
- Keep ignoring vendor dependencies, scripts, and temporary files
This commit cleans up the `.dockerignore` file by removing outdated and redundant entries while ensuring that sensitive and user-generated data are not included in the Docker image. It also ensures consistency with common Drupal practices for Docker.
- Replace hardcoded database credentials with environment variables.
- Use `$_ENV` to retrieve credentials, defaulting to existing values if not set.
- Removed commented-out alternative database configurations.
This change improves security by removing sensitive information from the codebase and allows for easier configuration across different environments.