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;