feat(.well-known): add .well-known/immich to reference API endpoint
This commit is contained in:
@@ -25,6 +25,10 @@ async function bootstrap() {
|
||||
app.use(json({ limit: '10mb' }));
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
app.enableCors();
|
||||
} else if (process.env.ALLOW_CORS_ORIGIN) {
|
||||
app.enableCors({
|
||||
origin: process.env.ALLOW_CORS_ORIGIN
|
||||
});
|
||||
}
|
||||
|
||||
const redisIoAdapter = new RedisIoAdapter(app);
|
||||
|
||||
@@ -28,5 +28,6 @@ export const immichAppConfig: ConfigModuleOptions = {
|
||||
DISABLE_REVERSE_GEOCODING: Joi.boolean().optional().valid(true, false).default(false),
|
||||
REVERSE_GEOCODING_PRECISION: Joi.number().optional().valid(0, 1, 2, 3).default(3),
|
||||
LOG_LEVEL: Joi.string().optional().valid('simple', 'verbose', 'debug', 'log', 'warn', 'error').default('log'),
|
||||
ALLOW_CORS_ORIGIN: Joi.string().optional(),
|
||||
}),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user