{"id":19852979,"url":"https://github.com/chandrakanthrck/microservice_config_server","last_synced_at":"2025-09-02T11:32:54.735Z","repository":{"id":254216849,"uuid":"845844964","full_name":"chandrakanthrck/MicroService_Config_Server","owner":"chandrakanthrck","description":"Spring Boot-based Config Server for managing centralized configurations of a microservices architecture. Integrated with Git as the configuration source and supports dynamic property updates across multiple environments.","archived":false,"fork":false,"pushed_at":"2024-09-06T02:23:01.000Z","size":35,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-11T13:29:42.344Z","etag":null,"topics":["centralized-configuration","git-integration","microservice","rest-api","spring-boot","spring-cloud-config-server"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chandrakanthrck.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-22T03:20:52.000Z","updated_at":"2024-10-22T00:00:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"2f289928-4c2c-48ce-ae8c-9d870f986ae7","html_url":"https://github.com/chandrakanthrck/MicroService_Config_Server","commit_stats":null,"previous_names":["chandrakanthrck/microservice-config","chandrakanthrck/microservice_config_server"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chandrakanthrck%2FMicroService_Config_Server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chandrakanthrck%2FMicroService_Config_Server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chandrakanthrck%2FMicroService_Config_Server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chandrakanthrck%2FMicroService_Config_Server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chandrakanthrck","download_url":"https://codeload.github.com/chandrakanthrck/MicroService_Config_Server/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241241873,"owners_count":19932831,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["centralized-configuration","git-integration","microservice","rest-api","spring-boot","spring-cloud-config-server"],"created_at":"2024-11-12T14:05:04.911Z","updated_at":"2025-02-28T21:18:36.429Z","avatar_url":"https://github.com/chandrakanthrck.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Microservice Config Server\n\n## Overview\nThis project is a **Spring Cloud Config Server** that serves as a centralized configuration management system for a microservices-based architecture. It allows microservices to fetch their configuration properties from a remote repository, enabling easier management and version control of configuration files across multiple environments (development, testing, production, etc.).\n\n## Features\n- Centralized configuration management for all microservices\n- Integration with **Spring Boot** applications\n- Fetch configurations from **Git** repositories or other supported storage backends\n- Environment-specific configuration files (e.g., `application-dev.yml`, `application-prod.yml`)\n- Dynamic reloading of properties with Spring Cloud's `@RefreshScope`\n\n## Technologies Used\n- **Java 17**\n- **Spring Boot 3.x**\n- **Spring Cloud Config Server**\n- **Git** (as the configuration source)\n\n## Project Setup\n\n### Prerequisites\n- Java 17 or higher\n- Maven 3.6+\n- A remote Git repository (or local) to store configuration files\n### Clone the Repository\n```bash\ngit clone git@github.com:chandrakanthrck/MicroService-config-server.git\ncd microservice-config-server\n```\n## Configure the Application\n\n### Remote Git Configuration Source:\nUpdate the configuration repository path in `src/main/resources/application.yml`:\n\n```yaml\nspring:\n  cloud:\n    config:\n      server:\n        git:\n          uri: git@github.com:chandrakanthrck/MicroService-config-server.git\n          default-label: main\n```\n### Usage of Configuration Repository\nThe configuration files for different environments (e.g., `application-dev.yml`, `application-prod.yml`) are stored in a separate repository, which is specified in the **Config Server's** configuration.\n\n- **Configuration Repository**: [Config Repo](https://github.com/chandrakanthrck/env-config)\n- This repository holds environment-specific configuration files for all microservices, such as:\n  - `application.yml` (default config)\n  - `application-dev.yml` (development environment)\n  - `application-prod.yml` (production environment)\n\n### How It Works\n- When the **Config Server** starts, it fetches the configuration files from the linked repository.\n- Microservices retrieve their environment-specific configurations dynamically from the **Config Server** based on the active profile.\n\n## Example Config Fetch URL\n\nMicroservices can fetch configurations for a specific profile and label using the following URL pattern:\n\n```bash\nhttp://localhost:8888/{application}/{profile}/{label}\n```\n\n### Example:\n\n```bash\nhttp://localhost:8888/hotelservice/dev/main\n```\n- **{application}**: The name of the microservice (e.g., `hotelservice`).\n- **{profile}**: The active profile (e.g., `dev`, `prod`).\n- **{label}**: The Git branch or tag (default is `main`).\n\n### Dynamic Refresh of Configuration\nUse Spring Cloud’s `@RefreshScope` in your microservices to enable dynamic refresh of properties without restarting the services.\n```bash\nPOST /actuator/refresh\n```\nThis allows the microservices to reload properties dynamically without needing to restart.\n\n### Important Notes\n- Ensure sensitive data like passwords, API keys, etc., are not exposed in these configuration files. Consider using **encrypted values** or **environment variables** for sensitive information.\n- This repository works in conjunction with the **Spring Cloud Config Server** to provide environment-specific configurations to microservices.\n\n### License\nThis project is licensed under the MIT License.\n\n### Changes made:\n1. **Added usage of the `config-repo` repository**: Mentioned how the repository is linked and how it stores environment-specific files.\n2. **Link to the config repo**: Provided a link to the **configuration repository** for reference.\n3. **How it works**: Explained how the Config Server fetches the files and how microservices consume them.\n\nThis should now provide a clear explanation of how the **config-env repo** is used in this setup. Let me know if this fits or if you need more details!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchandrakanthrck%2Fmicroservice_config_server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchandrakanthrck%2Fmicroservice_config_server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchandrakanthrck%2Fmicroservice_config_server/lists"}