Externalize role
This commit is contained in:
commit
33760a4e3a
11 changed files with 222 additions and 0 deletions
15
files/nginx_letsencrypt.conf
Normal file
15
files/nginx_letsencrypt.conf
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
server {
|
||||
|
||||
listen 80 default;
|
||||
server_name _;
|
||||
location /.well-known {
|
||||
alias /var/www/.well-known/;
|
||||
}
|
||||
#return 301 https://$host$request_uri;
|
||||
location / {
|
||||
if ($scheme = "http") {
|
||||
rewrite ^ https://$http_host$request_uri? permanent;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue