From 42b43be7ec12817f0fd2a256b219c28e2b9231ea Mon Sep 17 00:00:00 2001 From: bach Date: Fri, 16 Jun 2023 16:24:16 +0200 Subject: [PATCH] disabled nginx proxying cache --- Docker/nginx/default.conf | 1 + Makefile | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/Docker/nginx/default.conf b/Docker/nginx/default.conf index bc96297..aeb57e8 100644 --- a/Docker/nginx/default.conf +++ b/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; diff --git a/Makefile b/Makefile index 7d91f2d..38bdb68 100644 --- a/Makefile +++ b/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