-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: setup install laravel octane package
- Loading branch information
1 parent
c9139a0
commit f59ce0e
Showing
31 changed files
with
2,120 additions
and
591 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,3 +65,4 @@ http { | |
include /etc/nginx/conf.d/*.conf; | ||
include /etc/nginx/sites-enabled/*; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,60 @@ | ||
server { | ||
listen 8080 default_server; | ||
listen [::]:8080 default_server; | ||
listen 8080 default_server; | ||
listen [::]:8080 default_server; | ||
|
||
root /var/www/html/public; | ||
root /var/www/html/public; | ||
|
||
index index.html index.htm index.php; | ||
index index.html index.htm index.php; | ||
|
||
server_name _; | ||
server_name _; | ||
|
||
charset utf-8; | ||
charset utf-8; | ||
|
||
client_max_body_size 2048M; | ||
client_max_body_size 2048M; | ||
|
||
access_log /dev/stdout fly; | ||
access_log /dev/stdout fly; | ||
|
||
location / { | ||
try_files $uri $uri/ /index.php?$query_string; | ||
} | ||
location / { | ||
try_files $uri $uri/ /index.php?$query_string; | ||
} | ||
|
||
location ~ \.php$ { | ||
include snippets/fastcgi-php.conf; | ||
fastcgi_param HTTP_X_FORWARDED_FOR $http_fly_client_ip; | ||
fastcgi_pass unix:/var/run/php/php-fpm.sock; | ||
fastcgi_buffers 16 16k; | ||
fastcgi_buffer_size 32k; | ||
} | ||
location ~ \.php$ { | ||
include snippets/fastcgi-php.conf; | ||
fastcgi_param HTTP_X_FORWARDED_FOR $http_fly_client_ip; | ||
fastcgi_pass unix:/var/run/php/php-fpm.sock; | ||
fastcgi_buffers 16 16k; | ||
fastcgi_buffer_size 32k; | ||
} | ||
|
||
location = /favicon.ico { | ||
log_not_found off; | ||
access_log off; | ||
} | ||
location = /favicon.ico { | ||
log_not_found off; | ||
access_log off; | ||
} | ||
|
||
location = /robots.txt { | ||
log_not_found off; | ||
access_log off; | ||
} | ||
location = /robots.txt { | ||
log_not_found off; | ||
access_log off; | ||
} | ||
|
||
location ~* \.(?:css(\.map)?|js(\.map)?|jpe?g|png|gif|ico|cur|heic|webp|tiff?|mp3|m4a|aac|ogg|midi?|wav|mp4|mov|webm|mpe?g|avi|ogv|flv|wmv)$ { | ||
expires 7d; | ||
access_log off; | ||
log_not_found off; | ||
# Pass to PHP to ensure PHP apps can handle routes that end in these filetypes | ||
try_files $uri /index.php?$query_string; | ||
} | ||
location ~* \.(?:css(\.map)?|js(\.map)?|jpe?g|png|gif|ico|cur|heic|webp|tiff?|mp3|m4a|aac|ogg|midi?|wav|mp4|mov|webm|mpe?g|avi|ogv|flv|wmv)$ { | ||
expires 7d; | ||
access_log off; | ||
log_not_found off; | ||
# Pass to PHP to ensure PHP apps can handle routes that end in these filetypes | ||
try_files $uri /index.php?$query_string; | ||
} | ||
|
||
location ~* \.(?:svgz?|ttf|ttc|otf|eot|woff2?)$ { | ||
add_header Access-Control-Allow-Origin "*"; | ||
expires 7d; | ||
access_log off; | ||
} | ||
location ~* \.(?:svgz?|ttf|ttc|otf|eot|woff2?)$ { | ||
add_header Access-Control-Allow-Origin "*"; | ||
expires 7d; | ||
access_log off; | ||
} | ||
|
||
location ~ /\.(?!well-known) { | ||
deny all; | ||
} | ||
location ~ /\.(?!well-known) { | ||
deny all; | ||
} | ||
|
||
add_header X-Frame-Options "SAMEORIGIN" always; | ||
add_header X-Content-Type-Options "nosniff" always; | ||
add_header Referrer-Policy "no-referrer-when-downgrade" always; | ||
add_header X-Frame-Options "SAMEORIGIN" always; | ||
add_header X-Content-Type-Options "nosniff" always; | ||
add_header Referrer-Policy "no-referrer-when-downgrade" always; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e # Exit immediately if a command exits with a non-zero status | ||
|
||
echo "Caching config..." | ||
/usr/bin/php /var/www/html/artisan config:cache --no-ansi -q | ||
|
||
echo "Caching routes..." | ||
/usr/bin/php /var/www/html/artisan route:cache --no-ansi -q | ||
|
||
echo "Caching views..." | ||
/usr/bin/php /var/www/html/artisan view:cache --no-ansi -q | ||
|
||
echo "Running database migrations..." | ||
/usr/bin/php /var/www/html/artisan migrate --force --no-ansi -q | ||
|
||
echo "Deployment script completed successfully." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[program:octane] | ||
priority=5 | ||
command=php -d variables_order=EGPCS /var/www/html/artisan octane:start --server=swoole --host=0.0.0.0 --port=8000 | ||
user=www-data | ||
autostart=true | ||
autorestart=true | ||
stdout_events_enabled=true | ||
stderr_events_enabled=true | ||
stdout_logfile=/dev/stdout | ||
stdout_logfile_maxbytes=0 | ||
stderr_logfile=/dev/stderr | ||
stderr_logfile_maxbytes=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,3 +23,7 @@ yarn-error.log | |
/.zed | ||
/database/backups/*.sql | ||
debugbar | ||
|
||
**/caddy | ||
frankenphp | ||
frankenphp-worker.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.