From 5e281b44e9bd9ace6912be1a16057daf851ddaa5 Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 29 Jun 2022 21:49:35 -0500 Subject: [PATCH] Add Podman Support (#278) --- nginx/nginx.conf | 16 ++++++++-------- server/apps/immich/src/main.ts | 2 +- server/apps/microservices/src/main.ts | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 722cd5103f..0c026f461d 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -22,9 +22,9 @@ server { location /api { # Compression - gzip_static on; - gzip_min_length 1000; - gzip_comp_level 2; + gzip_static on; + gzip_min_length 1000; + gzip_comp_level 2; proxy_buffering off; proxy_buffer_size 16k; @@ -41,17 +41,17 @@ server { proxy_set_header Connection "upgrade"; proxy_set_header Host $host; - rewrite /api/(.*) /$1 break; + rewrite /api/(.*) /$1 break; - proxy_pass http://immich-server:3000; + proxy_pass http://immich-server:3001; } location / { # Compression - gzip_static on; - gzip_min_length 1000; - gzip_comp_level 2; + gzip_static on; + gzip_min_length 1000; + gzip_comp_level 2; proxy_buffering off; proxy_buffer_size 16k; diff --git a/server/apps/immich/src/main.ts b/server/apps/immich/src/main.ts index 4d62c5576b..fe316b75fb 100644 --- a/server/apps/immich/src/main.ts +++ b/server/apps/immich/src/main.ts @@ -15,7 +15,7 @@ async function bootstrap() { app.useWebSocketAdapter(new RedisIoAdapter(app)); - await app.listen(3000, () => { + await app.listen(3001, () => { if (process.env.NODE_ENV == 'development') { Logger.log('Running Immich Server in DEVELOPMENT environment', 'ImmichServer'); } diff --git a/server/apps/microservices/src/main.ts b/server/apps/microservices/src/main.ts index b921a9ca76..ad1b1d573e 100644 --- a/server/apps/microservices/src/main.ts +++ b/server/apps/microservices/src/main.ts @@ -8,7 +8,7 @@ async function bootstrap() { app.useWebSocketAdapter(new RedisIoAdapter(app)); - await app.listen(3000, () => { + await app.listen(3002, () => { if (process.env.NODE_ENV == 'development') { Logger.log('Running Immich Microservices in DEVELOPMENT environment', 'ImmichMicroservice'); }