Rebranding app and naming
This commit is contained in:
@@ -7,7 +7,7 @@ REDIS_PORT=6379
|
||||
REDIS_PASSWORD=
|
||||
|
||||
# PostgreSQL for user accounts (leave unset to fallback to SQLite — dev/test only)
|
||||
PG_URL=postgresql://farmafinder:change-me@localhost:5432/farmafinder
|
||||
PG_URL=postgresql://farmaclic:change-me@localhost:5432/farmaclic
|
||||
PG_PASSWORD=change-me
|
||||
|
||||
# Web Push (VAPID). Generate with:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Fetch pharmacy lists from an n8n (or any) HTTP webhook and map into FarmaFinder rows.
|
||||
* Fetch pharmacy lists from an n8n (or any) HTTP webhook and map into FarmaClic rows.
|
||||
* Default URL: FARMACIAS_WEBHOOK_URL env or the project webhook.
|
||||
*/
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "farma-finder-backend",
|
||||
"name": "farma-clic-backend",
|
||||
"version": "1.0.0",
|
||||
"description": "Backend API for FarmaFinder",
|
||||
"description": "Backend API for FarmaClic",
|
||||
"main": "server.js",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "🔄 FarmaFinder - Quick Database Reset"
|
||||
echo "🔄 FarmaClic - Quick Database Reset"
|
||||
echo "===================================="
|
||||
echo ""
|
||||
echo "Este script eliminará la base de datos actual y creará una nueva."
|
||||
|
||||
+3
-3
@@ -30,7 +30,7 @@ const PORT = process.env.PORT || 3001;
|
||||
// span_id to every log line so they can be correlated in Grafana.
|
||||
const logger = pino({
|
||||
level: process.env.LOG_LEVEL || 'info',
|
||||
base: { service: process.env.OTEL_SERVICE_NAME || 'farmafinder-backend' },
|
||||
base: { service: process.env.OTEL_SERVICE_NAME || 'farmaclic-backend' },
|
||||
});
|
||||
|
||||
// Trust the reverse proxy in front of us (Docker/Traefik/nginx/Cloudflare) so
|
||||
@@ -61,7 +61,7 @@ if (PG_URL) {
|
||||
}
|
||||
|
||||
const sessionConfig = {
|
||||
secret: process.env.SESSION_SECRET || 'farma-finder-secret-key-change-in-production',
|
||||
secret: process.env.SESSION_SECRET || 'farma-clic-secret-key-change-in-production',
|
||||
resave: false,
|
||||
saveUninitialized: false,
|
||||
cookie: {
|
||||
@@ -703,7 +703,7 @@ async function nominatimSearchFirstHit(originalQuery) {
|
||||
Accept: 'application/json',
|
||||
'Accept-Language': 'es,en',
|
||||
'User-Agent':
|
||||
'FarmaFinder/1.0 (pharmacy admin; geocoding; https://github.com/)',
|
||||
'FarmaClic/1.0 (pharmacy admin; geocoding; https://github.com/)',
|
||||
},
|
||||
});
|
||||
const text = await nomRes.text();
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
// OpenTelemetry Node SDK bootstrap for FarmaFinder backend.
|
||||
// OpenTelemetry Node SDK bootstrap for FarmaClic backend.
|
||||
// Started as a side-effect import from server.js (ESM).
|
||||
//
|
||||
// Env vars (set by docker-compose):
|
||||
// OTEL_SERVICE_NAME — default: farmafinder-backend
|
||||
// OTEL_SERVICE_NAME — default: farmaclic-backend
|
||||
// OTEL_EXPORTER_OTLP_ENDPOINT — OTLP gRPC endpoint (e.g. http://alloy:4317)
|
||||
//
|
||||
// Exports traces to the shared Grafana Alloy collector, where they are
|
||||
@@ -15,17 +15,17 @@ import * as resources from '@opentelemetry/resources';
|
||||
import { ATTR_SERVICE_NAME, ATTR_SERVICE_NAMESPACE } from '@opentelemetry/semantic-conventions';
|
||||
import { PinoInstrumentation } from '@opentelemetry/instrumentation-pino';
|
||||
|
||||
const serviceName = process.env.OTEL_SERVICE_NAME || 'farmafinder-backend';
|
||||
const serviceName = process.env.OTEL_SERVICE_NAME || 'farmaclic-backend';
|
||||
const otlpEndpoint = process.env.OTEL_EXPORTER_OTLP_ENDPOINT || 'http://localhost:4317';
|
||||
|
||||
const resource = typeof resources.resourceFromAttributes === 'function'
|
||||
? resources.resourceFromAttributes({
|
||||
[ATTR_SERVICE_NAME]: serviceName,
|
||||
[ATTR_SERVICE_NAMESPACE]: 'farmafinder',
|
||||
[ATTR_SERVICE_NAMESPACE]: 'farmaclic',
|
||||
})
|
||||
: new resources.Resource({
|
||||
[ATTR_SERVICE_NAME]: serviceName,
|
||||
[ATTR_SERVICE_NAMESPACE]: 'farmafinder',
|
||||
[ATTR_SERVICE_NAMESPACE]: 'farmaclic',
|
||||
});
|
||||
|
||||
const sdk = new NodeSDK({
|
||||
|
||||
Reference in New Issue
Block a user