amircloner / ss-xray-docker

Shadowsocks-rust server with xray-plugin running in Docker

Home Page:https://hub.docker.com/r/mazy/ss-xray

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ss-xray

Docker image for shadowsocks-rust server with build-in xray-plugin. All builds was made by GitHub Actions

Versioning

${SHADOWSOCKS_VERSION}-${XRAY_PLUGIN_VERSION}-${BUILD_VERSION}

Environment Variables

You can apply configuration by passing environment variables or mount your config directly to container

Variable Default value Description
HOST mydomain.me Hostname for server
SERVER_ADDR 0.0.0.0:1080 Local address to listen on
PASSWORD password Shadowsocks password
METHOD chacha20-ietf-poly1305 Encryption method
PLUGIN xray-plugin Shadowsocks obfuscation plugin
PLUGIN_OPTS server Options for obfuscation plugin
ARGS Additional arguments for Shadowsocks

Usage example

Server configuration

Prerequisites

Here is one-click example with Traefik router with automatic https certificate generation.

docker-compose.yml

Please change domain, path and secrets for your needs and make sure that DNS was propagated for your domain, otherwise ssl certificate generation will be fail.

docker create network traefik
docker-compose up -d

Client configuration

Clients available for all modern platforms and should be similar for all of that

Here is json configration for shadowsocks-rust client for linux/macos:

{
  "server": "mydomain.me",
  "server_port": 443,
  "local_port": 1080,
  "password": "password",
  "method": "chacha20-ietf-poly1305",
  "plugin": "/usr/local/bin/xray-plugin",
  "fast_open": true,
  "mode": "tcp_only",
  "no_delay": true,
  "plugin_opts": "path=/xray;mux=8;host=mydomain.me;tls"
}

About

Shadowsocks-rust server with xray-plugin running in Docker

https://hub.docker.com/r/mazy/ss-xray


Languages

Language:Dockerfile 100.0%