Skip to content

Commit

Permalink
feat: laravel assets fallback to php
Browse files Browse the repository at this point in the history
  • Loading branch information
karljohns0n committed Aug 21, 2024
1 parent 788c71b commit 19fb143
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions SOURCES/fpm-laravel-users.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@ location / {
}

location ~* \.(?:cur|gif|gz|htc|ico|jpeg|jpg|mp4|ogg|ogv|png|svg|svgz|ttf|webm|woff|woff2)$ {
try_files $uri $uri/ /index.php?$args;
expires 2w;
add_header Cache-Control "public";
log_not_found off;
}

location ~* \.(?:css|js)$ {
try_files $uri $uri/ /index.php?$args;
expires 1w;
add_header Cache-Control "public";
}
Expand Down
2 changes: 2 additions & 0 deletions SOURCES/fpm-laravel.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@ location / {
}

location ~* \.(?:cur|gif|gz|htc|ico|jpeg|jpg|mp4|ogg|ogv|png|svg|svgz|ttf|webm|woff|woff2)$ {
try_files $uri $uri/ /index.php?$args;
expires 2w;
add_header Cache-Control "public";
log_not_found off;
}

location ~* \.(?:css|js)$ {
try_files $uri $uri/ /index.php?$args;
expires 1w;
add_header Cache-Control "public";
}
Expand Down
1 change: 0 additions & 1 deletion SOURCES/restrictions-users.conf
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ location /traffic_status {
brotli off;
access_log off;
include conf.d/custom/admin-ips.conf; deny all;

}

location ~ ^/(status|ping)$ {
Expand Down
1 change: 0 additions & 1 deletion SOURCES/restrictions.conf
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ location /traffic_status {
brotli off;
access_log off;
include conf.d/custom/admin-ips.conf; deny all;

}

location ~ ^/(status|ping)$ {
Expand Down

0 comments on commit 19fb143

Please sign in to comment.