Skip to content

Commit c2d44f7

Browse files
fix: resolve AISStream key override and news_feeds.json path
- Remove environment: block from docker-compose so env_file values are not overridden by empty host vars (docker env: takes priority) - Fix news_feeds.json path: geo.ts compiles to dist/routes/geo.js so __dirname is /app/dist/routes, needs two .. to reach /app root Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 2a4aec1 commit c2d44f7

2 files changed

Lines changed: 1 addition & 18 deletions

File tree

docker-compose.yml

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,6 @@ services:
88
container_name: radar
99
ports:
1010
- "3001:3001"
11-
environment:
12-
# Flight Data
13-
- FLIGHT_DATA_SOURCE=${FLIGHT_DATA_SOURCE:-adsblol}
14-
- ADSB_LOL_LAT=${ADSB_LOL_LAT:-0}
15-
- ADSB_LOL_LON=${ADSB_LOL_LON:-0}
16-
- ADSB_LOL_RADIUS=${ADSB_LOL_RADIUS:-25000}
17-
18-
# Maritime Data
19-
- AISSTREAM_API_KEY=${AISSTREAM_API_KEY}
20-
21-
# OSINT / LLM
22-
- OPENROUTER_API_KEY=${OPENROUTER_API_KEY}
23-
24-
# Cloudflare Radar
25-
- CLOUDFLARE_RADAR_TOKEN=${CLOUDFLARE_RADAR_TOKEN}
26-
27-
# Mount .env file (alternative to environment variables)
2811
env_file:
2912
- ./server/.env
3013

server/src/routes/geo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ iso.registerLocale(enLocale);
1313
// Load the massive JSON index once at startup
1414
let newsFeeds: Record<string, any> = {};
1515
try {
16-
const feedsPath = path.join(__dirname, '..', 'news_feeds.json');
16+
const feedsPath = path.join(__dirname, '..', '..', 'news_feeds.json');
1717
if (fs.existsSync(feedsPath)) {
1818
newsFeeds = JSON.parse(fs.readFileSync(feedsPath, 'utf8'));
1919
console.log(

0 commit comments

Comments
 (0)