From 4826c8132e8740e818968540da06424ad8ba1c40 Mon Sep 17 00:00:00 2001 From: Fluffy9 Date: Thu, 17 Mar 2022 11:31:12 -0400 Subject: [PATCH] Re-add logging options and rename gun to gundb --- dc | 2 +- docker-compose.gun.yml => docker-compose.gundb.yml | 3 +++ docker/nginx/conf.d/server/server.api | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) rename docker-compose.gun.yml => docker-compose.gundb.yml (86%) diff --git a/dc b/dc index 2e5a5334..27ac440e 100755 --- a/dc +++ b/dc @@ -28,7 +28,7 @@ for i in $(seq 1 ${#PORTAL_MODULES}); do # gundb module - alias "g" if [[ ${PORTAL_MODULES:i-1:1} == "g" ]]; then - COMPOSE_FILES+=" -f docker-compose.gun.yml" + COMPOSE_FILES+=" -f docker-compose.gundb.yml" fi # jaeger module - alias "j" diff --git a/docker-compose.gun.yml b/docker-compose.gundb.yml similarity index 86% rename from docker-compose.gun.yml rename to docker-compose.gundb.yml index a3d6c2e1..26c37ae9 100644 --- a/docker-compose.gun.yml +++ b/docker-compose.gundb.yml @@ -2,6 +2,9 @@ version: "3.7" x-logging: &default-logging driver: json-file + options: + max-size: "10m" + max-file: "3" services: gun: diff --git a/docker/nginx/conf.d/server/server.api b/docker/nginx/conf.d/server/server.api index 0bf660d4..2761831d 100644 --- a/docker/nginx/conf.d/server/server.api +++ b/docker/nginx/conf.d/server/server.api @@ -164,7 +164,7 @@ location /skynet/restore { proxy_pass http://sia:9980; } -location /gun { +location /gundb { include /etc/nginx/conf.d/include/cors; proxy_set_header Upgrade $http_upgrade;