0401
This commit is contained in:
26
user-guide/nginx.conf
Normal file
26
user-guide/nginx.conf
Normal file
@@ -0,0 +1,26 @@
|
||||
server {
|
||||
listen 80;
|
||||
server_name localhost;
|
||||
root /app;
|
||||
index index.html;
|
||||
|
||||
autoindex on;
|
||||
autoindex_format html;
|
||||
|
||||
location ~* \.(md)$ {
|
||||
add_header Content-Type text/plain;
|
||||
}
|
||||
|
||||
location ~* \.(png|jpg|jpeg|gif|svg|ico)$ {
|
||||
expires 30d;
|
||||
add_header Cache-Control "public, immutable";
|
||||
}
|
||||
|
||||
location ~* \.(html)$ {
|
||||
add_header Content-Type text/html;
|
||||
}
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ =404;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user