[nginx/app/tls] ++update
This commit is contained in:
parent
0a565c9e99
commit
cda1990935
6 changed files with 66 additions and 22 deletions
16
apps/nginx-certbot/base/nginx-80
Normal file
16
apps/nginx-certbot/base/nginx-80
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
server {
|
||||
listen *:80;
|
||||
listen [::]:80;
|
||||
|
||||
server_name _;
|
||||
|
||||
# Forward for certbot
|
||||
location /.well-known/acme-challenge/ {
|
||||
root /usr/share/nginx/html;
|
||||
}
|
||||
|
||||
# Everything else -> ssl
|
||||
location / {
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue