├── .travis.yml ├── .travis ├── id_rsa.enc └── ssh_config ├── README.md ├── hosts ├── ipv6_hosts └── surge.conf /.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | sudo: false 3 | branches: 4 | only: 5 | - master 6 | before_install: 7 | - openssl aes-256-cbc -K $encrypted_c70b7fb2ead1_key -iv $encrypted_c70b7fb2ead1_iv 8 | -in .travis/id_rsa.enc -out ~/.ssh/id_rsa -d 9 | - chmod 600 ~/.ssh/id_rsa 10 | - eval $(ssh-agent) 11 | - ssh-add ~/.ssh/id_rsa 12 | - cp .travis/ssh_config ~/.ssh/config 13 | - git config --global user.name 'huanz' 14 | - git config --global user.email 'yhz1219@gmail.com' 15 | script: 16 | - git clone git@git.coding.net:bukas/surge.git 17 | - cp surge.conf surge 18 | - cd surge && git add surge.conf && git commit -m "updated by travis at $(date -u +'%Y-%m-%d %H:%M:%S')" && git push 19 | -------------------------------------------------------------------------------- /.travis/id_rsa.enc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huanz/surge-hosts/103182063d394e2e61d16e78d1b516c68e1ac225/.travis/id_rsa.enc -------------------------------------------------------------------------------- /.travis/ssh_config: -------------------------------------------------------------------------------- 1 | Host github.com 2 | User git 3 | StrictHostKeyChecking no 4 | IdentityFile ~/.ssh/id_rsa 5 | IdentitiesOnly yes 6 | 7 | Host gitcafe.com 8 | User git 9 | StrictHostKeyChecking no 10 | IdentityFile ~/.ssh/id_rsa 11 | IdentitiesOnly yes 12 | 13 | Host git.coding.net 14 | User git 15 | StrictHostKeyChecking no 16 | IdentityFile ~/.ssh/id_rsa 17 | IdentitiesOnly yes -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # surge-hosts 2 | 3 | [![surge-hosts](https://travis-ci.org/huanz/surge-hosts.svg)](https://travis-ci.org/huanz/surge-hosts) 4 | 5 | ## hosts 6 | 7 | [hosts](https://raw.githubusercontent.com/huanz/surge-hosts/master/hosts) 8 | 9 | for pc, just copy from [googlehosts/hosts](https://github.com/googlehosts/hosts) 10 | 11 | ipv6_hosts just copy from [lennylxx/ipv6-hosts](https://github.com/lennylxx/ipv6-hosts) 12 | 13 | ## surge.conf 14 | 15 | [http://surge.noonme.com/surge.conf](http://surge.noonme.com/surge.conf) 16 | --------------------------------------------------------------------------------