Browse Source

Add Podman Support (#278)

Alex 3 years ago
parent
commit
5e281b44e9
3 changed files with 10 additions and 10 deletions
  1. 8 8
      nginx/nginx.conf
  2. 1 1
      server/apps/immich/src/main.ts
  3. 1 1
      server/apps/microservices/src/main.ts

+ 8 - 8
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;

+ 1 - 1
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');
     }

+ 1 - 1
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');
     }