fix: minor issues
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
@@ -49,7 +49,19 @@ server {
|
||||
# try_files /index.html =404;
|
||||
#}
|
||||
|
||||
# Serve module static assets directly from module folders
|
||||
# Serve module entrypoints with revalidation so changes to the stable
|
||||
# module.mjs filename are picked up after rebuilds.
|
||||
location ~ ^/modules/([^/]+)/static/module\.mjs$ {
|
||||
alias /var/www/ktrix/main/modules/$1/static/module.mjs;
|
||||
expires -1;
|
||||
add_header Cache-Control "no-cache, must-revalidate";
|
||||
access_log on;
|
||||
types {
|
||||
application/javascript mjs;
|
||||
}
|
||||
}
|
||||
|
||||
# Serve module static assets directly from module folders.
|
||||
# URL: /modules/<Module>/static/... -> FS: /var/www/ktrix/main/modules/<Module>/static/...
|
||||
# Note: Linux is case-sensitive; ensure URL module casing matches folder name
|
||||
location ~ ^/modules/([^/]+)/static/(.*)$ {
|
||||
|
||||
Reference in New Issue
Block a user