30 lines
634 B
Plaintext
30 lines
634 B
Plaintext
events {}
|
|
|
|
http {
|
|
server {
|
|
listen 80;
|
|
server_name your.domain.example;
|
|
|
|
location /.well-known/acme-challenge/ {
|
|
root /var/www/html;
|
|
}
|
|
|
|
location / {
|
|
root /var/www/html;
|
|
index index.html;
|
|
}
|
|
}
|
|
|
|
server {
|
|
listen 443; # ssl;
|
|
server_name your.domain.example;
|
|
|
|
# ssl_certificate /etc/letsencrypt/live/your.domain.example/fullchain.pem;
|
|
# ssl_certificate_key /etc/letsencrypt/live/your.domain.example/privkey.pem;
|
|
|
|
location / {
|
|
root /var/www/html;
|
|
index index.html;
|
|
}
|
|
}
|
|
} |