Last active
January 16, 2026 02:56
-
-
Save orange723/c669c8d5e0b0cba6201efd962eebca22 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| #!/bin/bash | |
| mkdir config | |
| cat > config/config.json <<-EOF | |
| { | |
| "log": { | |
| "loglevel": "warning" | |
| }, | |
| "routing": { | |
| "domainStrategy": "AsIs", | |
| "rules": [ | |
| { | |
| "type": "field", | |
| "ip": [ | |
| "geoip:private" | |
| ], | |
| "outboundTag": "block" | |
| } | |
| ] | |
| }, | |
| "inbounds": [ | |
| { | |
| "listen": "0.0.0.0", | |
| "port": 57980, | |
| "protocol": "shadowsocks", | |
| "settings": { | |
| "method": "chacha20-ietf-poly1305", | |
| "password": "{{ password }}" | |
| }, | |
| "streamSettings": { | |
| "network": "tcp" | |
| } | |
| } | |
| ], | |
| "outbounds": [ | |
| { | |
| "protocol": "freedom", | |
| "tag": "direct" | |
| }, | |
| { | |
| "protocol": "blackhole", | |
| "tag": "block" | |
| } | |
| ] | |
| } | |
| EOF | |
| cat > compose.yml <<-EOF | |
| services: | |
| v2ray: | |
| image: teddysun/v2ray | |
| restart: always | |
| ports: | |
| - 57980:57980 | |
| - 57980:57980/udp | |
| volumes: | |
| - ./config:/etc/v2ray | |
| EOF | |
| # ss url example | |
| # ss://method:password@ip:port#注释 | |
| # ss://base64 encode#注释 | |
| # base64 <<-EOF | |
| # >method:password@ip:port | |
| # >EOF | |
| # ss://bWV0aG9kOnBhc3N3b3JkQGlwOnBvcnQK#US-01 | |
| # https://acl4ssr-sub.github.io/ 订阅转换 | |
| # https://base64.us/ 在线 base64 | |
| # https://hub.docker.com/r/teddysun/v2ray 秋水逸冰 v2ray docker | |
| # https://teddysun.com/ 秋水逸冰 | |
| # https://github.com/v2fly/v2ray-examples/tree/master v2ray 模版 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment