Skip to content

Commit da74bfa

Browse files
authored
debug: Nginx upstream 네이밍에서 언더스코어 제거 (#22)
1 parent 3834e06 commit da74bfa

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

infra/main.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ resource "aws_instance" "app" {
257257
258258
echo "===== Nginx Configuration ====="
259259
cat > /etc/nginx/conf.d/tech-blog.conf <<'NGINX'
260-
upstream spring_backend {
260+
upstream springapp {
261261
server 127.0.0.1:8080 fail_timeout=0;
262262
}
263263
@@ -289,7 +289,7 @@ resource "aws_instance" "app" {
289289
real_ip_header CF-Connecting-IP;
290290
291291
location / {
292-
proxy_pass http://spring_backend;
292+
proxy_pass http://springapp;
293293
proxy_set_header Host $host;
294294
proxy_set_header X-Real-IP $remote_addr;
295295
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
@@ -305,13 +305,13 @@ resource "aws_instance" "app" {
305305
}
306306
307307
location ~* \.(jpg|jpeg|png|gif|ico|css|js|svg|woff|woff2|ttf)$ {
308-
proxy_pass http://spring_backend;
308+
proxy_pass http://springapp;
309309
expires 30d;
310310
add_header Cache-Control "public, immutable";
311311
}
312312
313313
location /health {
314-
proxy_pass http://spring_backend/actuator/health;
314+
proxy_pass http://springapp/actuator/health;
315315
316316
proxy_set_header Host $host;
317317
proxy_set_header X-Real-IP $remote_addr;

0 commit comments

Comments
 (0)