24 lines
459 B
Nginx Configuration File
24 lines
459 B
Nginx Configuration File
server {
|
|
{% if wildcard -%}
|
|
server_name .{{ domain|parentdomain }};
|
|
{% else -%}
|
|
server_name {{ domain }};
|
|
{% -endif %}
|
|
|
|
listen 80;
|
|
listen [::]:80;
|
|
|
|
access_log /var/log/nginx/{{ domain }}.access.log;
|
|
error_log /var/log/nginx/{{ domain }}.error.log;
|
|
|
|
location /.well-known/acme-challenge {
|
|
root /srv/www/acme-challenge/{{ domain }};
|
|
}
|
|
|
|
location / {
|
|
return 301 https://$host$request_uri;
|
|
}
|
|
}
|
|
|
|
# vim: ft=nginx et sw=4 ts=4 si ai
|