Sfoglia il codice sorgente

Versión correcta de nginx para K8S

Celestino Rey 1 anno fa
parent
commit
81b80e6e2a
2 ha cambiato i file con 4 aggiunte e 4 eliminazioni
  1. 1 1
      K8S/Makefile
  2. 3 3
      nginx/nginx.conf

+ 1 - 1
K8S/Makefile

@@ -1,7 +1,7 @@
 export ARQUITECTURA := $(shell lscpu |grep itectur | tr -d ' '| cut -f2 -d':')
 export REGISTRY=registry.reymota.es
 export IMG_VERSION = 0.76
-export IMG_NGINX_VERSION = 1.2
+export IMG_NGINX_VERSION = 2.0
 
 # limpia todo
 all: imagen clean install

+ 3 - 3
nginx/nginx.conf

@@ -1,4 +1,4 @@
-upstream finanzas {
+upstream reymota {
     server reymota:8000;
 }
 
@@ -15,11 +15,11 @@ server {
     }
 
     location /static/ {
-        alias /app/staticfiles/;
+        alias /app/reymota/staticfiles/;
     }
 
     location /media/ {
-        alias /app/mediafiles/;
+        alias /app/reymota/mediafiles/;
     }
 
 }