Skip to content

Conversation

@eightspokes
Copy link
Collaborator

@eightspokes eightspokes commented Sep 15, 2025

This PR migrates the NGAFID application from environment variable-based configuration to a unified properties-based configuration system.

It consolidates all configuration into a single ngafid.properties file, eliminates scattered config files, and implements automatic Docker environment detection for deployment across development and production environments.

The org.ngafid.core.Config file serves as a bridge between properties file and the Java code (consumer).

Add your repository path and Azure Map keys to the properties file.
ngafid2.0/ngafid-core/src/main/resources/ngafid.properties

⚠️ SENSITIVE: Replace with your actual Azure Maps API key - DO NOT COMMIT REAL KEYS
ngafid.azure.maps.key= YOUR_KEY

⚠️ USER-SPECIFIC: Change this to your local path - DO NOT COMMIT YOUR ACTUAL PATH
ngafid.repo.path=PATH/ngafid2.0/

To add new property:

  1. Add a property to the property file:

ngafid.debug.logging.enabled=false

  1. Use the property in code:

import org.ngafid.core.Config;
boolean debugEnabled = Config.getBooleanProperty("ngafid.debug.logging.enabled");

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.

2 participants