server {
	listen [::]:80;
	listen 80;

	server_name phntsm.ddns.net;

	root /var/www/html;

	location / {
		return 301 https://$host$request_uri;
	}

	location /.well-known/acme-challenge/ {
		alias /var/www/challenges/;
		try_files $uri =404;
	}

	location ~ /\.ht {
		deny all;
	}

	location /nginx_status {
		stub_status;
		allow 127.0.0.1;    #only allow requests from localhost
		deny all;           #deny all other hosts
	}
}
