nginx: set default server directive in default vhost
All checks were successful
Ansible Lint |Total|New|Outstanding|Fixed|Trend |:-:|:-:|:-:|:-:|:-: |2598|5|2593|5|:-1: Reference build: <a href="https://jenkins.evolix.org/job/gitea/job/ansible-roles/job/unstable/297//ansiblelint">Evolix » ansible-roles » unstable #297</a>
gitea/ansible-roles/pipeline/head This commit looks good

This commit is contained in:
William Hirigoyen 2023-07-17 17:31:21 +02:00
parent 67f0fa5942
commit f2eaac0894
2 changed files with 4 additions and 3 deletions

View file

@ -51,6 +51,7 @@ The **patch** part changes is incremented if multiple releases happen the same m
* packweb-apache,nagios-nrpe: add missing task and config for PHP 8.2 container
* potsfix: add missing `localhost.$mydomain` to mydestination
* nagios-nrpe: check\_ssl\_local now has an output that nrpe can understand when it isn't OK
* nginx: set default server directive in default vhost
### Removed

View file

@ -1,12 +1,12 @@
server {
listen [::]:80;
listen 80;
listen [::]:80 default_server;
listen 80 default_server;
server_name {{ ansible_fqdn }};
return 301 https://{{ ansible_fqdn }}$request_uri;
}
server {
listen 443 ssl;
listen 443 ssl default_server;
# listen [::]:80 default_server ipv6only=on; ## listen for ipv6
ssl_certificate /etc/ssl/certs/{{ ansible_fqdn }}.crt;