8000 GitHub - AlirezaDastyar/shadowsocks-ansible: Ansible playbook for setting-up shadowsocks server with docker
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

AlirezaDastyar/shadowsocks-ansible

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible playbook to setup shadowsocks server

Introduction

This repo provides an ansible playbook to setup a shadowsocks server with docker.

Galaxy roles:

Note

Since some VPS(s) are created using old images and contains old packages (i.e ca-certifications) there is a task for updating all system packages if you don't need/want this comment out the update tasks

Setup

Clone project

git clone git@github.com:AlirezaDastyar/shadowsocks-ansible.git

Install roles from ansible galaxy [Link]

ansible-galaxy install geerlingguy.docker robertdebock.update

Change the inventory.ini parameters

Replace the 127.0.0.1 with you'r server ip or domain name. Set the username and password to appropriate and safe values for shadowsocks user.

[ss_server]
127.0.0.1 username=ShadowSocksUser password=VerySecurePassword

Config shadowsocks config through config.json

I recommend to leave server and server_port in config.json as is.

{
    "server": "0.0.0.0",
    "server_port": 8388,
    "password": "MySecurePassword",
    "method": "aes-256-gcm"
}

Also note that the port here is not published port for shadowsocks, to change the port you have to change it in docker compose.yml

Run it

Run the following command and provide the root password for ssh

ansible-playbook setup.yml -i inventory.ini -k

About

Ansible playbook for setting-up shadowsocks server with docker

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0