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
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:
parent
67f0fa5942
commit
f2eaac0894
|
@ -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
|
* packweb-apache,nagios-nrpe: add missing task and config for PHP 8.2 container
|
||||||
* potsfix: add missing `localhost.$mydomain` to mydestination
|
* 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
|
* 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
|
### Removed
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
server {
|
server {
|
||||||
listen [::]:80;
|
listen [::]:80 default_server;
|
||||||
listen 80;
|
listen 80 default_server;
|
||||||
server_name {{ ansible_fqdn }};
|
server_name {{ ansible_fqdn }};
|
||||||
|
|
||||||
return 301 https://{{ ansible_fqdn }}$request_uri;
|
return 301 https://{{ ansible_fqdn }}$request_uri;
|
||||||
}
|
}
|
||||||
server {
|
server {
|
||||||
listen 443 ssl;
|
listen 443 ssl default_server;
|
||||||
# listen [::]:80 default_server ipv6only=on; ## listen for ipv6
|
# listen [::]:80 default_server ipv6only=on; ## listen for ipv6
|
||||||
|
|
||||||
ssl_certificate /etc/ssl/certs/{{ ansible_fqdn }}.crt;
|
ssl_certificate /etc/ssl/certs/{{ ansible_fqdn }}.crt;
|
||||||
|
|
Loading…
Reference in a new issue