First commit
This commit is contained in:
25
roles/nginx/templates/default.j2
Normal file
25
roles/nginx/templates/default.j2
Normal file
@@ -0,0 +1,25 @@
|
||||
server {
|
||||
listen *:80;
|
||||
listen [::]:80;
|
||||
server_name localhost;
|
||||
location /nginx_status {
|
||||
stub_status on;
|
||||
access_log off;
|
||||
allow 127.0.0.1;
|
||||
deny all;
|
||||
}
|
||||
}
|
||||
|
||||
server {
|
||||
listen *:80 default_server;
|
||||
listen [::]:80 default_server;
|
||||
|
||||
location /.well-known/acme-challenge {
|
||||
root /srv/http/common/letsencrypt/;
|
||||
}
|
||||
|
||||
location / {
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user