++ Prima versione del designer piantine + Skill grafica
This commit is contained in:
@@ -52,6 +52,24 @@ server {
|
||||
fastcgi_pass 127.0.0.1:9000;
|
||||
fastcgi_split_path_info ^(.+\.php)(/.*)$;
|
||||
include fastcgi_params;
|
||||
|
||||
# Restores the port, which nginx's own fastcgi_params drops.
|
||||
#
|
||||
# Since nginx 1.26 the packaged fastcgi_params sets HTTP_HOST to $host
|
||||
# instead of $http_host. $host carries the hostname only: a request to
|
||||
# localhost:8090 reaches PHP as "localhost". Laravel then rebuilds the
|
||||
# request URL without the port, while URL::forceRootUrl() (see
|
||||
# AppServiceProvider) generates links WITH it — so every signed URL
|
||||
# fails validation. Concretely: all Livewire file uploads answer 401,
|
||||
# because the upload endpoint aborts on an invalid signature.
|
||||
#
|
||||
# Only bites when APP_URL carries a non-standard port, i.e. local
|
||||
# development. In production APP_URL has no port and the two forms
|
||||
# agree. Forwarding the raw header is safe here because trustHosts()
|
||||
# in bootstrap/app.php already rejects any Host that is not APP_URL's,
|
||||
# localhost or 127.0.0.1.
|
||||
fastcgi_param HTTP_HOST $http_host;
|
||||
|
||||
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
|
||||
fastcgi_param PATH_INFO $fastcgi_path_info;
|
||||
fastcgi_param DOCUMENT_ROOT $realpath_root;
|
||||
|
||||
Reference in New Issue
Block a user