-
Notifications
You must be signed in to change notification settings - Fork 251
Open
Description
#add docker-compose
#cat docker-compose.yaml
version: "3.9"
services:
hubproxy:
image: ghcr.io/sky22333/hubproxy:latest
container_name: hubproxy
ports:
- "5000:5000"
volumes:
- ./config.toml:/root/config.toml
restart: always
#add config for nginx
server {
listen 80;
server_name example.com; # 按需修改
location / {
proxy_pass http://127.0.0.1:5000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
# 可选:WebSocket 支持
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}
Metadata
Metadata
Assignees
Labels
No labels