22 lines
483 B
Nginx Configuration File
22 lines
483 B
Nginx Configuration File
server {
|
|
listen [::]:443 ssl http2;
|
|
listen 443 ssl http2;
|
|
|
|
server_name {{ inventory_hostname }};
|
|
|
|
ssl_certificate /etc/dehydrated/certs/{{ inventory_hostname }}/fullchain.pem;
|
|
ssl_certificate_key /etc/dehydrated/certs/{{ inventory_hostname }}/privkey.pem;
|
|
|
|
location / {
|
|
root /usr/share/nginx/html;
|
|
index index.html index.htm;
|
|
}
|
|
|
|
error_page 500 502 503 504 /50x.html;
|
|
location = /50x.html {
|
|
root /usr/share/nginx/html;
|
|
}
|
|
|
|
include snippets/letsencrypt.conf;
|
|
}
|