feat(.well-known): add .well-known/immich to reference API endpoint

This commit is contained in:
Connery Noble
2023-01-11 17:30:01 -08:00
parent b9b2b559a1
commit 6962df6340
14 changed files with 119 additions and 23 deletions
+4
View File
@@ -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);