Skip to content

add for docker-compose and nginx #86

@angyuang

Description

@angyuang

#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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions