Idle shutdown: 'please wait' interstitial while a container starts

Đang mở
#531 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 4 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
javascript, nginx
Lĩnh vực
backend, web-dev

Hướng nghiên cứu

Read the Idle Container Shutdown epic and the wake-on-request API work first; this issue depends on that API. The payload names the nginx error-page server at unix:/run/nginx-error-pages.sock but no repository files or tests. Done means HTML requests see an auto-refreshing startup page, API clients receive 503 with Retry-After, existing 502/504 pages stay unchanged, and both public and auth-required services work.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement idle-shutdown

Part of the Idle Container Shutdown epic. Depends on the wake-on-request API.

Summary

A "please wait, starting your container" interstitial served by the proxy for HTTP services whose container is waking from idle, which auto-refreshes once the container is available.

Details

  • Dedicated status signal: use a distinct response (e.g. 503 + marker header) for "starting" so it doesn't collide with the existing 502/504 error pages (frozen/OOM page from #435).
  • HTML only: requests that accept text/html get the interstitial; other clients get 503 with Retry-After.
  • Static HTML/JS served by the existing nginx error-page server (unix:/run/nginx-error-pages.sock).
  • The page polls a status endpoint (manager or agent) for the container/service and reloads the original URL once it's running and accepting connections.
  • Make sure it plays correctly with auth_request / oauth2 redirects on auth-required services.

Acceptance criteria

  • Browser hitting an idle-stopped service sees the interstitial, then lands on the app automatically.
  • API clients receive 503 + Retry-After.
  • Existing 502/504 pages unchanged.
  • Works for auth-required and public services.
Ngôn ngữ chính
JavaScript
Star
10
Fork
6
Merge trung bình
5 ngày 14 giờ
Pull request đã merge (30 ngày)
5

Chuẩn bị môi trường

  • Có Dockerfile hoặc tệp Docker Compose
  • Không có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của mieweb/opensource-server

Tất cả issue của mieweb/opensource-server

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.