18 lines
411 B
Plaintext
18 lines
411 B
Plaintext
# Example: admin panel at https://parche.montech.ir/admin/
|
|
# Place dist/ contents in the server path mapped to /admin/
|
|
|
|
location /admin/ {
|
|
alias /var/www/parche/admin/;
|
|
try_files $uri $uri/ /admin/index.html;
|
|
}
|
|
|
|
location ~ ^/admin/assets/ {
|
|
alias /var/www/parche/admin/assets/;
|
|
expires 7d;
|
|
add_header Cache-Control "public, immutable";
|
|
types {
|
|
application/javascript js;
|
|
text/css css;
|
|
}
|
|
}
|