37 lines
803 B
Nginx Configuration File
37 lines
803 B
Nginx Configuration File
events {
|
|
worker_connections 1024;
|
|
}
|
|
|
|
http {
|
|
include /etc/nginx/mime.types;
|
|
default_type application/octet-stream;
|
|
|
|
access_log /var/log/nginx/access.log;
|
|
error_log /var/log/nginx/error.log;
|
|
|
|
server {
|
|
listen 80;
|
|
server_name _;
|
|
client_max_body_size 10M;
|
|
|
|
location /media/ {
|
|
alias /var/www/media/;
|
|
expires 30d;
|
|
add_header Cache-Control "public, immutable";
|
|
}
|
|
|
|
location /static/ {
|
|
alias /var/www/static/;
|
|
expires 365d;
|
|
add_header Cache-Control "public, immutable";
|
|
}
|
|
|
|
location / {
|
|
root /var/www/donconfiao/;
|
|
try_files $uri /index.html;
|
|
expires -1;
|
|
add_header Cache-Control "no-cache";
|
|
}
|
|
}
|
|
}
|