Commit 307c0e93 authored by nanahira's avatar nanahira

add sniprox

parent 17dbbdeb
--- ---
# handlers file for utility # handlers file for utility
- name: restart_smartdns - name: restart_smartdns
docker_service: docker_compose:
project_src: '{{utility_root}}' project_src: '{{utility_root}}'
restarted: yes restarted: yes
services: services:
- smartdns-china - smartdns-china
- smartdns-tls - smartdns-tls
- name: restart_sni
docker_compose:
project_src: '{{utility_root}}'
restarted: yes
services:
- smartdns-china
- sni
...@@ -19,12 +19,19 @@ ...@@ -19,12 +19,19 @@
with_items: with_items:
- smartdns - smartdns
- apt-cacher-ng-docker - apt-cacher-ng-docker
- sni
- name: smartdns - name: smartdns
synchronize: synchronize:
src: ./smartdns/ src: ./smartdns/
dest: '{{utility_root}}/smartdns' dest: '{{utility_root}}/smartdns'
delete: true delete: true
notify: restart_smartdns notify: restart_smartdns
- name: sni
synchronize:
src: ./sni/
dest: '{{utility_root}}/sni'
delete: true
notify: restart_sni
- name: apt cacher Dockerfile - name: apt cacher Dockerfile
template: template:
src: ./apt-cacher-ng-docker/Dockerfile.j2 src: ./apt-cacher-ng-docker/Dockerfile.j2
......
...@@ -45,6 +45,15 @@ services: ...@@ -45,6 +45,15 @@ services:
volumes: volumes:
- /etc/timezone:/etc/timezone:ro - /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro
sni:
restart: always
image: nginx
dns: 114.114.114.114
ports:
- '443:443'
volumes:
- ./sni/nginx.conf:/etc/nginx/nginx.conf
squid: squid:
restart: always restart: always
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment