[hotfix]
All checks were successful
Deploy Nginx Config to Ubuntu Server / deploy (push) Successful in 2s

stub_status on 제거(추후 생성할 예정)
This commit is contained in:
hwansae91 2025-08-31 15:34:15 +09:00
parent 0d2550d84c
commit c14f5c53b6

View File

@ -48,18 +48,11 @@ server {
location / { location / {
# First attempt to serve request as file, then # First attempt to serve request as file, then
# as directory, then fall back to displaying a 404. # as directory, then fall back to displaying a 404.
# metric 수집
stub_status on;
try_files $uri $uri/ /index.html; try_files $uri $uri/ /index.html;
} }
# API endpoints # API endpoints
location /api/ { location /api/ {
# metric 수집
stub_status on;
proxy_pass http://localhost:8000; proxy_pass http://localhost:8000;
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
@ -69,9 +62,6 @@ server {
# Admin dashboard # Admin dashboard
location /admin { location /admin {
# metric 수집
stub_status on;
proxy_pass http://localhost:8000; proxy_pass http://localhost:8000;
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
@ -81,9 +71,6 @@ server {
# RB10508 API endpoints - 51124 서버로 프록시 # RB10508 API endpoints - 51124 서버로 프록시
location ^~ /rb10508/ { location ^~ /rb10508/ {
# metric 수집
stub_status on;
proxy_pass http://192.168.219.52:10508/; proxy_pass http://192.168.219.52:10508/;
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
@ -93,9 +80,6 @@ server {
# RB8001 API endpoints - 51124 서버로 프록시 # RB8001 API endpoints - 51124 서버로 프록시
location ^~ /rb8001/ { location ^~ /rb8001/ {
# metric 수집
stub_status on;
proxy_pass http://192.168.219.52:8001/; proxy_pass http://192.168.219.52:8001/;
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
@ -105,9 +89,6 @@ server {
# RB10408 API endpoints (희재님 테스트용) - 51124 서버로 프록시 # RB10408 API endpoints (희재님 테스트용) - 51124 서버로 프록시
location ^~ /rb10408/ { location ^~ /rb10408/ {
# metric 수집
stub_status on;
proxy_pass http://192.168.219.52:10408/; proxy_pass http://192.168.219.52:10408/;
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
@ -117,9 +98,6 @@ server {
# Robeing Gateway - API Gateway for routing to robeings # Robeing Gateway - API Gateway for routing to robeings
location ^~ /gateway/ { location ^~ /gateway/ {
# metric 수집
stub_status on;
proxy_pass http://localhost:8100/; proxy_pass http://localhost:8100/;
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
@ -129,9 +107,6 @@ server {
# Skill Email API endpoints # Skill Email API endpoints
location /skill-email/ { location /skill-email/ {
# metric 수집
stub_status on;
proxy_pass http://localhost:8501/; proxy_pass http://localhost:8501/;
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
@ -140,9 +115,6 @@ server {
} }
location /.well-known/acme-challenge/ { location /.well-known/acme-challenge/ {
# metric 수집
stub_status on;
alias /var/www/html/.well-known/acme-challenge/; alias /var/www/html/.well-known/acme-challenge/;
} }
@ -212,17 +184,11 @@ server {
# Main application static files # Main application static files
location / { location / {
# metric 수집
stub_status on;
try_files $uri $uri/ /index.html; try_files $uri $uri/ /index.html;
} }
# API endpoints # API endpoints
location /api/ { location /api/ {
# metric 수집
stub_status on;
proxy_pass http://localhost:8000; proxy_pass http://localhost:8000;
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
@ -232,9 +198,6 @@ server {
# Admin dashboard # Admin dashboard
location /admin { location /admin {
# metric 수집
stub_status on;
proxy_pass http://localhost:8000; proxy_pass http://localhost:8000;
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
@ -244,9 +207,6 @@ server {
# RB10508 API endpoints - 51124 서버로 프록시 # RB10508 API endpoints - 51124 서버로 프록시
location ^~ /rb10508/ { location ^~ /rb10508/ {
# metric 수집
stub_status on;
proxy_pass http://192.168.219.52:10508/; proxy_pass http://192.168.219.52:10508/;
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
@ -256,9 +216,6 @@ server {
# RB8001 API endpoints - 51124 서버로 프록시 # RB8001 API endpoints - 51124 서버로 프록시
location ^~ /rb8001/ { location ^~ /rb8001/ {
# metric 수집
stub_status on;
proxy_pass http://192.168.219.52:8001/; proxy_pass http://192.168.219.52:8001/;
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
@ -268,9 +225,6 @@ server {
# RB10408 API endpoints (희재님 테스트용) - 51124 서버로 프록시 # RB10408 API endpoints (희재님 테스트용) - 51124 서버로 프록시
location ^~ /rb10408/ { location ^~ /rb10408/ {
# metric 수집
stub_status on;
proxy_pass http://192.168.219.52:10408/; proxy_pass http://192.168.219.52:10408/;
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
@ -280,9 +234,6 @@ server {
# Robeing Gateway - API Gateway for routing to robeings # Robeing Gateway - API Gateway for routing to robeings
location ^~ /gateway/ { location ^~ /gateway/ {
# metric 수집
stub_status on;
proxy_pass http://localhost:8100/; proxy_pass http://localhost:8100/;
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
@ -292,9 +243,6 @@ server {
# Skill Email API endpoints # Skill Email API endpoints
location /skill-email/ { location /skill-email/ {
# metric 수집
stub_status on;
proxy_pass http://localhost:8501/; proxy_pass http://localhost:8501/;
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
@ -303,9 +251,6 @@ server {
} }
location /.well-known/acme-challenge/ { location /.well-known/acme-challenge/ {
# metric 수집
stub_status on;
alias /var/www/html/.well-known/acme-challenge/; alias /var/www/html/.well-known/acme-challenge/;
} }
@ -368,9 +313,6 @@ server {
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
location / { location / {
# metric 수집
stub_status on;
proxy_pass http://localhost:3000/; proxy_pass http://localhost:3000/;
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
@ -396,9 +338,6 @@ server {
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
location / { location / {
# metric 수집
stub_status on;
proxy_pass http://localhost:9000/; proxy_pass http://localhost:9000/;
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
@ -411,9 +350,6 @@ server {
} }
location /.well-known/acme-challenge/ { location /.well-known/acme-challenge/ {
# metric 수집
stub_status on;
alias /var/www/html/.well-known/acme-challenge/; alias /var/www/html/.well-known/acme-challenge/;
} }
} }