Skip to content

Commit

Permalink
fix: aws 다른 계정 이관하면서 acm 추가로 인한 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Shin-Jae-Yoon committed Mar 10, 2024
1 parent 6650a04 commit d748a7c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
3 changes: 1 addition & 2 deletions infra/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,5 @@ http {
'"$http_user_agent" ';

include conf.d/upstream.conf;
include conf.d/http-server.conf;
include conf.d/ssl-server.conf;
include conf.d/http-server-notssl.conf;
}
14 changes: 14 additions & 0 deletions infra/nginx/templates/http-server-notssl.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
server {
listen 80;
server_name ${SERVER_DOMAIN};
access_log /var/log/nginx/access.log main;
error_log /var/log/nginx/error.log error;

location ^~ /actuator {
return 404;
}

location / {
proxy_pass http://backend;
}
}
5 changes: 3 additions & 2 deletions infra/scripts/init-nginx-converter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export SERVER_DOMAIN=${SERVER_DOMAIN}
export SERVER_PORT=${SERVER_PORT}
export BLUE_CONTAINER=${BLUE_CONTAINER}

envsubst '$SERVER_DOMAIN' < /home/ubuntu/moabam/infra/nginx/templates/http-server.template > /home/ubuntu/moabam/infra/nginx/conf.d/http-server.conf
envsubst '$SERVER_DOMAIN' < /home/ubuntu/moabam/infra/nginx/templates/ssl-server.template > /home/ubuntu/moabam/infra/nginx/conf.d/ssl-server.conf
#envsubst '$SERVER_DOMAIN' < /home/ubuntu/moabam/infra/nginx/templates/http-server.template > /home/ubuntu/moabam/infra/nginx/conf.d/http-server.conf
#envsubst '$SERVER_DOMAIN' < /home/ubuntu/moabam/infra/nginx/templates/ssl-server.template > /home/ubuntu/moabam/infra/nginx/conf.d/ssl-server.conf
envsubst '$SERVER_DOMAIN' < /home/ubuntu/moabam/infra/nginx/templates/http-server-notssl.template > /home/ubuntu/moabam/infra/nginx/conf.d/http-server-notssl.conf
envsubst '$BLUE_CONTAINER $SERVER_PORT' < /home/ubuntu/moabam/infra/nginx/templates/upstream.template > /home/ubuntu/moabam/infra/nginx/conf.d/upstream.conf

0 comments on commit d748a7c

Please sign in to comment.