Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
U
Utility
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
Utility
Commits
307c0e93
Commit
307c0e93
authored
Apr 12, 2020
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add sniprox
parent
17dbbdeb
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
1 deletion
+24
-1
handlers/main.yml
handlers/main.yml
+8
-1
tasks/main.yml
tasks/main.yml
+7
-0
templates/docker-compose.yml.j2
templates/docker-compose.yml.j2
+9
-0
No files found.
handlers/main.yml
View file @
307c0e93
---
# handlers file for utility
-
name
:
restart_smartdns
docker_
servic
e
:
docker_
compos
e
:
project_src
:
'
{{utility_root}}'
restarted
:
yes
services
:
-
smartdns-china
-
smartdns-tls
-
name
:
restart_sni
docker_compose
:
project_src
:
'
{{utility_root}}'
restarted
:
yes
services
:
-
smartdns-china
-
sni
tasks/main.yml
View file @
307c0e93
...
...
@@ -19,12 +19,19 @@
with_items
:
-
smartdns
-
apt-cacher-ng-docker
-
sni
-
name
:
smartdns
synchronize
:
src
:
./smartdns/
dest
:
'
{{utility_root}}/smartdns'
delete
:
true
notify
:
restart_smartdns
-
name
:
sni
synchronize
:
src
:
./sni/
dest
:
'
{{utility_root}}/sni'
delete
:
true
notify
:
restart_sni
-
name
:
apt cacher Dockerfile
template
:
src
:
./apt-cacher-ng-docker/Dockerfile.j2
...
...
templates/docker-compose.yml.j2
View file @
307c0e93
...
...
@@ -46,6 +46,15 @@ services:
- /etc/timezone:/etc/timezone: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:
restart: always
image: datadog/squid
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment