Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
float
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
17
Issues
17
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ai3
float
Commits
5f375851
Commit
5f375851
authored
Oct 15, 2018
by
ale
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not set up acme-challenge forwarding if the acme service is not running
parent
992a033f
Pipeline
#1326
passed with stage
in 6 minutes and 4 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
roles/nginx/templates/config/sites-available/default
roles/nginx/templates/config/sites-available/default
+4
-0
No files found.
roles/nginx/templates/config/sites-available/default
View file @
5f375851
...
...
@@ -2,11 +2,15 @@ server {
listen [::]:80 default_server ipv6only=off;
server_name _;
{# Only enable this if the 'acme' service is defined,
or the basic tests will fail #}
{% if 'acme' in services %}
# Handle ACME challenge verification.
location /.well-known/acme-challenge {
include /etc/nginx/snippets/proxy.conf;
proxy_pass http://acme.{{ domain }};
}
{% endif %}
# Redirect everything else to HTTPS.
location / {
...
...
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