Last active
November 29, 2019 11:39
-
-
Save m2kar/e2765f61a51a9e5b383032c0454e529e to your computer and use it in GitHub Desktop.
SSR docker 配置脚本
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.6" | |
services: | |
ssr: | |
image: winterssy/shadowsocksr:latest | |
container_name: ssr | |
# ports: | |
# - 8989:8989 | |
# - 8686:8686 | |
network_mode: "host" | |
# networks: | |
# - ssr | |
volumes: | |
- "./etc/config.json:/ssr/config.json:ro" | |
restart: unless-stopped | |
logging: | |
driver: "json-file" | |
options: | |
max-size: "200m" | |
max-file: "10" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"server": "0.0.0.0", | |
"server_ipv6": "::", | |
"local_address": "127.0.0.1", | |
"local_port": 1080, | |
"port_password": { | |
"80": { | |
"method": "aes-256-cfb", | |
"password": "<password>" | |
} | |
}, | |
"timeout": 300, | |
"method": "chacha20", | |
"protocol": "auth_chain_a", | |
"protocol_param": "", | |
"obfs": "tls1.2_ticket_auth", | |
"obfs_param": "", | |
"redirect": "*:80#sourceforge.mirrorservice.org:80", | |
"dns_ipv6": false, | |
"fast_open": false, | |
"workers": 1 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
开放80端口,并对直接访问的流量进行重定向