2021-01-22 22:21:42 +00:00
|
|
|
server {
|
|
|
|
listen 80 default_server;
|
|
|
|
listen [::]:80 default_server ipv6only=on;
|
2021-01-22 23:10:53 +00:00
|
|
|
|
2021-10-03 01:30:56 +00:00
|
|
|
server_name _ ;
|
2021-01-22 22:21:42 +00:00
|
|
|
|
|
|
|
include /etc/nginx/snippets/letsencrypt.conf;
|
|
|
|
|
|
|
|
root /var/www/html;
|
|
|
|
index index.html;
|
|
|
|
location / {
|
|
|
|
rewrite ^ https://$http_host$request_uri? permanent; # force redirect http to https
|
|
|
|
}
|
|
|
|
}
|