This commit is contained in:
@@ -1,26 +1,15 @@
|
||||
# TaxBaik Nginx Location Blocks
|
||||
# Add these to your main Nginx config (e.g., /etc/nginx/sites-available/default)
|
||||
|
||||
# TaxBaik 공개 사이트 (Razor Pages)
|
||||
# TaxBaik 공개 사이트 + 관리자 (통합 앱)
|
||||
location /taxbaik {
|
||||
proxy_pass http://127.0.0.1:5001;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Connection keep-alive;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection $connection_upgrade;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_read_timeout 120s;
|
||||
}
|
||||
|
||||
# TaxBaik 관리자 (Blazor Server - WebSocket 필요)
|
||||
location /taxbaik/admin {
|
||||
proxy_pass http://127.0.0.1:5002;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "Upgrade";
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
}
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
[Unit]
|
||||
Description=TaxBaik Admin Backoffice (.NET 8 Blazor Server)
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=kjh2064
|
||||
WorkingDirectory=/home/kjh2064/taxbaik_admin_active
|
||||
ExecStart=/usr/bin/dotnet TaxBaik.Admin.dll
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
|
||||
# Graceful Shutdown (Hot Deploy용)
|
||||
TimeoutStopSec=35
|
||||
KillMode=mixed
|
||||
KillSignal=SIGTERM
|
||||
|
||||
SyslogIdentifier=taxbaik-admin
|
||||
Environment=ASPNETCORE_ENVIRONMENT=Production
|
||||
Environment=ASPNETCORE_URLS=http://127.0.0.1:5002
|
||||
Environment=DOTNET_PRINT_TELEMETRY_MESSAGE=false
|
||||
# 아래 줄은 서버에서 직접 편집 (git에 커밋하지 않음)
|
||||
# Environment=ConnectionStrings__Default=Host=localhost;Database=taxbaikdb;Username=taxbaik;Password=CHANGE_ME
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user