publik-common/doc/nginx/sites-available/00_http-to-https.conf

12 lines
304 B
Plaintext

server {
listen 80 default_server http2;
listen [::]:80 default_server http2;
server_name ~.*;
access_log /var/log/nginx/http-to-https-access.log combined_full;
error_log /var/log/nginx/http-to-https-error.log;
return 302 https://$host$request_uri;
}