Files
home-assistant/nginx-config/site-confs/default
T
2018-12-30 14:13:57 +03:00

24 lines
441 B
Plaintext

server {
listen 80 default_server;
listen 443 default ssl;
root /config/www;
index index.html index.htm index.php;
server_name _;
ssl_certificate /config/keys/cert.crt;
ssl_certificate_key /config/keys/cert.key;
client_max_body_size 0;
#letsencrypt challenge response
location ~/.well-known/acme-challenge/(.*)$ {
return 200 '$1';
}
location / {
try_files $uri $uri/ /index.html /index.php?$args =404;
}
}