include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
- # If we wanted a simple file server …
- ## HTTP server: only enforce HTTPS
- #server {
- # listen 80;
- # return 301 https://$host$request_uri;
- #}
- #
- ## HTTPS server
- #server {
- # listen 443 ssl;
- # server_name REPLACE_fqdn_ECALPER;
- # ssl_certificate /etc/letsencrypt/live/REPLACE_fqdn_ECALPER/fullchain.pem;
- # ssl_certificate_key /etc/letsencrypt/live/REPLACE_fqdn_ECALPER/privkey.pem;
- # root /var/www/html/;
- # index index.html index.htm index.nginx-debian.html;
- #}
+ # Redirect all HTTP requests to HTTPS.
+ server {
+ listen 80;
+ return 301 https://$host$request_uri;
+ }
}