Skip to content

Instantly share code, notes, and snippets.

@m2kar
Last active November 29, 2019 11:39
Show Gist options
  • Save m2kar/e2765f61a51a9e5b383032c0454e529e to your computer and use it in GitHub Desktop.
Save m2kar/e2765f61a51a9e5b383032c0454e529e to your computer and use it in GitHub Desktop.
SSR docker 配置脚本
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"
{
"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
}
@m2kar
Copy link
Author

m2kar commented Nov 29, 2019

开放80端口,并对直接访问的流量进行重定向

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment