From a806cbdac89a59db038744acdf5da0041d158737 Mon Sep 17 00:00:00 2001 From: Dev Uni Date: Thu, 30 Nov 2023 23:34:57 +0900 Subject: [PATCH] =?UTF-8?q?hotfix:=20nginx=20=EB=A1=9C=EA=B9=85=20docker-c?= =?UTF-8?q?ompose=20=EC=97=B0=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- infra/docker-compose-dev.yml | 1 + infra/nginx/templates/ssl-server.template | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/infra/docker-compose-dev.yml b/infra/docker-compose-dev.yml index 35acfe2e..86ec3530 100644 --- a/infra/docker-compose-dev.yml +++ b/infra/docker-compose-dev.yml @@ -14,6 +14,7 @@ services: - ./nginx/conf.d:/etc/nginx/conf.d - ./nginx/certbot/conf:/etc/letsencrypt - ./nginx/certbot/www:/var/www/certbot + - ../logs/nginx:/var/log/nginx certbot: image: certbot/certbot:latest container_name: certbot diff --git a/infra/nginx/templates/ssl-server.template b/infra/nginx/templates/ssl-server.template index 3fdca313..46db85fb 100644 --- a/infra/nginx/templates/ssl-server.template +++ b/infra/nginx/templates/ssl-server.template @@ -1,8 +1,8 @@ server { listen 443 ssl; server_name ${SERVER_DOMAIN}; - access_log /home/ubuntu/moabam/logs/access_ssl_moabam.log main; - error_log /home/ubuntu/moabam/logs/error.log error; + access_log /var/log/nginx/access.log main; + error_log /var/log/nginx/error.log error; location ^~ /actuator { return 404;