Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ services:
# env_file:
# - ./frontend/.env
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:80"]
test: ["CMD", "wget", "-q", "--spider", "http://127.0.0.1:80"]
interval: 30s
timeout: 10s
retries: 3
Expand All @@ -30,7 +30,7 @@ services:
env_file:
- ./backend/.env
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
test: ["CMD", "wget", "-q", "--spider", "http://127.0.0.1:8000/health"]
interval: 30s
timeout: 10s
retries: 3
Expand All @@ -44,7 +44,8 @@ services:
networks:
- tasknetwork
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
# Note: taskchampion-sync-server doesn't have a /health endpoint, use root
test: ["CMD", "wget", "-q", "--spider", "http://127.0.0.1:8080/"]
interval: 30s
timeout: 10s
retries: 3
Expand Down
4 changes: 3 additions & 1 deletion production/example.frontend.env
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
VITE_BACKEND_URL="https://your-domain.com/"
VITE_FRONTEND_URL="https://your-domain.com"
VITE_CONTAINER_ORIGIN="https://your-domain.com:8080/"
# Use standard port 443 with /taskchampion/ path (recommended)
VITE_CONTAINER_ORIGIN="https://your-domain.com/taskchampion/"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this works fine with the Setup Guide, backend env need not be updated, as Docker connects internally anyways.

# Or use legacy port 8080: VITE_CONTAINER_ORIGIN="https://your-domain.com:8080/"
13 changes: 12 additions & 1 deletion production/example.nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,17 @@ server {
proxy_read_timeout 86400;
}

# Taskchampion sync server on standard port 443
# Users can configure: task config sync.server.url https://your-domain.com/taskchampion/
location /taskchampion/ {
proxy_pass http://127.0.0.1:8081/;
proxy_http_version 1.1;
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;
}

# Frontend (default)
location / {
proxy_pass http://127.0.0.1:3000;
Expand All @@ -182,7 +193,7 @@ server {
}
}

# Taskchampion sync server (port 8080 with SSL)
# Taskchampion sync server (port 8080 with SSL) - Legacy support
server {
listen 8080 ssl http2;
listen [::]:8080 ssl http2;
Expand Down
Loading