Fix Contact Form - Use mailcow network Postfix server successfully

This commit is contained in:
Wind
2026-02-15 06:22:45 +09:00
parent 998d733eb5
commit 66e18d23c9
3 changed files with 22 additions and 8 deletions

View File

@@ -76,7 +76,9 @@ if (contactSubmitBtn) {
try {
// Python FastAPI 엔드포인트로 요청
const response = await fetch('http://localhost:8001/api/contact', {
// 현재 페이지의 호스트를 사용
const apiUrl = `${window.location.protocol}//${window.location.hostname}:8001/api/contact`;
const response = await fetch(apiUrl, {
method: 'POST',
headers: {
'Content-Type': 'application/json'

View File

@@ -1 +1 @@
{"cpu_temp": "43", "nvme_temp": "35", "uptime_days": 2, "last_update": "06:16:01"}
{"cpu_temp": "42", "nvme_temp": "35", "uptime_days": 2, "last_update": "06:22:01"}