Commit Graph
9 Commits
Author SHA1 Message Date
AgentandHAPI e8f760e510 feat: auto-restart server when listen addr or admin path changes
Build and Push to GHCR / build-and-push (push) Has been cancelled
When admin config is updated with a new listen_addr or admin_path,
the server now automatically performs a graceful restart instead of
requiring the user to manually restart the service.

- cmd/main.go: refactor into a loop that supports graceful shutdown
  and restart via http.Server.Shutdown
- internal/admin/handlers.go: add SetOnRestart callback, triggered
  after config save when restart is required
- web/static/index.html: remove manual restart alert; auto-redirect
  to new admin path or show toast if port changed

via [HAPI](https://hapi.run)

Co-Authored-By: HAPI <[email protected]>
2026-05-24 16:06:10 +08:00
Agent 086f326841 ci: add latest tag for default branch pushes
Build and Push to GHCR / build-and-push (push) Has been cancelled
Fix manifest unknown when pulling ghcr.io/arkylin/mirror-proxy:latest
2026-05-24 15:55:48 +08:00
Agent 090d264090 chore: change default port to 18800 and use relative paths in compose
Build and Push to GHCR / build-and-push (push) Has been cancelled
- docker-compose.yml: port 18800:8080, relative volume paths
- README.md: mkdir /opt/Mirror-Proxy && cd, then deploy
2026-05-24 15:52:07 +08:00
Agent 4027834a1f chore: use /opt/mirror-proxy as default data directory
Build and Push to GHCR / build-and-push (push) Has been cancelled
- docker-compose.yml: mount /opt/mirror-proxy/config and /opt/mirror-proxy/cache
- README.md: update deployment docs with /opt paths
2026-05-24 15:50:17 +08:00
Agent 44c8ff6a6f fix: mount config directory instead of file for Docker Compose
Build and Push to GHCR / build-and-push (push) Has been cancelled
- Add CONFIG_PATH env support to avoid Docker creating config.json as a directory
- Config Save() now auto-creates parent directories
- Update docker-compose.yml to mount ./config:/app/config
- Update README deployment docs accordingly
2026-05-24 15:44:29 +08:00
Agent 45da2d1d0c docs: rewrite Docker Compose deployment guide with copy-paste commands
Build and Push to GHCR / build-and-push (push) Has been cancelled
2026-05-24 15:40:15 +08:00
Agent 3695d04a2c docs: update GHCR image address to arkylin/mirror-proxy
Build and Push to GHCR / build-and-push (push) Has been cancelled
2026-05-24 15:38:07 +08:00
Agent d48e31ba77 fix: downgrade go.mod version to 1.23 for docker build compatibility
Build and Push to GHCR / build-and-push (push) Has been cancelled
The golang:1.23-alpine image cannot build with go 1.26.3 directive.
Align go.mod with the Dockerfile builder image version.
2026-05-24 15:35:33 +08:00
Agent 9223e35164 feat: init mirror-proxy project
Build and Push to GHCR / build-and-push (push) Has been cancelled
- Docker Hub / GHCR / GitHub reverse proxy
- Web admin panel with link management
- Dynamic admin path, user and password config
- Rate limiting per link (dual/single auth mode)
- Docker and docker-compose deployment support
- GitHub Actions workflow for auto-publish to GHCR
2026-05-24 15:27:45 +08:00