Setup https for Light VM for light.ccchh.net
This commit is contained in:
parent
f44e3f28b0
commit
239b9b9689
5 changed files with 45 additions and 10 deletions
14
playbooks/files/configs/light/nginx/http_handler.conf
Normal file
14
playbooks/files/configs/light/nginx/http_handler.conf
Normal file
|
@ -0,0 +1,14 @@
|
|||
server {
|
||||
listen 80 default_server;
|
||||
#listen [::]:80 default_server;
|
||||
server_name _;
|
||||
|
||||
location /.well-known/acme-challenge/ {
|
||||
autoindex on;
|
||||
root /webroot-for-acme-challenge;
|
||||
}
|
||||
|
||||
location / {
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue