Skip to content

Commit

Permalink
Add liveware location for laravel, closes #96
Browse files Browse the repository at this point in the history
  • Loading branch information
csandanov committed Oct 9, 2024
1 parent eab127f commit 780ddf8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions templates/presets/laravel.conf.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ include fastcgi.conf;
index {{ getenv "NGINX_INDEX_FILE" "index.php index.html" }};

location / {
location ~* /livewire/livewire.js {
expires off;
try_files $uri /{{ $index }}?$args;
}

location ~* ^.+\.(?:{{ $static }})$ {
access_log {{ getenv "NGINX_STATIC_ACCESS_LOG" "off" }};
tcp_nodelay {{ getenv "NGINX_STATIC_TCP_NODELAY" "off" }};
Expand Down

0 comments on commit 780ddf8

Please sign in to comment.