mirror of https://github.com/rm-dr/daisy
31 lines
620 B
Plaintext
31 lines
620 B
Plaintext
|
types {
|
||
|
application/wasm wasm;
|
||
|
application/x-font-ttf ttc;
|
||
|
application/x-font-otf otf;
|
||
|
application/font-woff2 woff2;
|
||
|
font/ttf ttf;
|
||
|
}
|
||
|
|
||
|
|
||
|
server {
|
||
|
listen 80 default_server;
|
||
|
listen [::]:80 default_server;
|
||
|
|
||
|
root /var/www/html;
|
||
|
|
||
|
# Add index.php to the list if you are using PHP
|
||
|
index index.html index.htm index.nginx-debian.html;
|
||
|
|
||
|
server_name _;
|
||
|
|
||
|
location / {
|
||
|
# First attempt to serve request as file, then
|
||
|
# as directory, then fall back to displaying a 404.
|
||
|
try_files $uri $uri/ =404;
|
||
|
}
|
||
|
|
||
|
location ~* .(js|css|ttf|ttc|otf|eot|woff|woff2)$ {
|
||
|
add_header access-control-allow-origin "*";
|
||
|
expires max;
|
||
|
}
|
||
|
}
|