Browse Source

disabled nginx proxying cache

bach 11 months ago
parent
commit
42b43be7ec
2 changed files with 13 additions and 0 deletions
  1. 1 0
      Docker/nginx/default.conf
  2. 12 0
      Makefile

+ 1 - 0
Docker/nginx/default.conf

@@ -17,6 +17,7 @@ server {
       proxy_set_header Host $http_host;
       proxy_set_header X-NginX-Proxy true;
       proxy_set_header X-Ssl on;
+      proxy_cache off;
 
       proxy_pass http://app;
       proxy_redirect off;

+ 12 - 0
Makefile

@@ -24,6 +24,12 @@ buildnc:
 buildncapp:
 		docker-compose build --no-cache --build-arg USER_UID=$(USER_UID) --build-arg USER_UNAME=$(USER_UNAME) --build-arg USER_GID=$(USER_GID) --build-arg USER_GNAME=$(USER_GNAME) app
 
+buildnginx:
+		docker-compose build --build-arg USER_UID=$(USER_UID) --build-arg USER_UNAME=$(USER_UNAME) --build-arg USER_GID=$(USER_GID) --build-arg USER_GNAME=$(USER_GNAME) nginx
+
+buildncnginx:
+		docker-compose build --no-cache --build-arg USER_UID=$(USER_UID) --build-arg USER_UNAME=$(USER_UNAME) --build-arg USER_GID=$(USER_GID) --build-arg USER_GNAME=$(USER_GNAME) nginx
+
 downbuildup: down build up
 
 up:
@@ -58,6 +64,9 @@ down:
 exec_api:
 		docker exec -it ouatterrir-api-1 bash
 
+restart_api:
+	docker-compose restart api
+
 exec_app:
 		docker exec -it ouatterrir-app-1 bash
 
@@ -66,3 +75,6 @@ restart_app:
 
 exec_mysql:
 		docker exec -it ouatterrir-mysql-1 bash
+
+restart_nginx:
+	docker-compose restart nginx