2021-12-04 22:46:57 +00:00
|
|
|
server {
|
|
|
|
listen *:80;
|
|
|
|
listen [::]:80;
|
|
|
|
|
|
|
|
server_name _;
|
2022-01-30 20:22:18 +00:00
|
|
|
root /www_http;
|
2021-12-04 22:46:57 +00:00
|
|
|
|
|
|
|
location /.well-known/acme-challenge/ {
|
2022-01-30 20:22:18 +00:00
|
|
|
root /www_http;
|
2021-12-04 22:46:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
# Everything else -> ssl
|
|
|
|
location / {
|
|
|
|
return 301 https://$host$request_uri;
|
|
|
|
}
|
|
|
|
}
|