2020-04-09 16:33:26 +02:00

15 lines
259 B
Plaintext

server {
listen 80;
server_name {domain_name};
# Redirect to https
location / {
return 301 https://$host$request_uri;
}
# letsencrypt
location /.well-known/acme-challenge/ {
root /var/www/certbot;
}
}