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
d5c2e9c5
Commit
d5c2e9c5
authored
Aug 12, 2020
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix smartdns port
parent
1c3d1f4f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
defaults/main.yml
defaults/main.yml
+4
-0
templates/docker-compose.yml.j2
templates/docker-compose.yml.j2
+8
-12
No files found.
defaults/main.yml
View file @
d5c2e9c5
...
...
@@ -7,6 +7,10 @@ smartdns_image: yousiki/smartdns:x86_64
web_port_occupied
:
false
# array of addresses
smartdns_address
:
null
smartdns_ports
:
-
53
-
54
-
55
kms_address
:
null
squid_address
:
null
apt_cacher_address
:
null
...
...
templates/docker-compose.yml.j2
View file @
d5c2e9c5
...
...
@@ -6,20 +6,16 @@ services:
ports:
{% if smartdns_address %}
{% for address in smartdns_address %}
- '{{address}}:55:53'
- '{{address}}:55:53/udp'
- '{{address}}:54:53'
- '{{address}}:54:53/udp'
- '{{address}}:53:53'
- '{{address}}:53:53/udp'
{% for port in smartdns_ports %}
- '{{address}}:{{port}}:53'
- '{{address}}:{{port}}:53/udp'
{% endfor %}
{% endfor %}
{% else %}
- '55:53'
- '55:53/udp'
- '54:53'
- '54:53/udp'
- '53:53'
- '53:53/udp'
{% for port in smartdns_ports %}
- '{{port}}:53'
- '{{port}}:53/udp'
{% endfor %}
{% endif %}
command: -f -x -c /etc/smartdns/smartdns.conf
volumes:
...
...
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