Refresh
This commit is contained in:
1
resources/examples/cron
Executable file
1
resources/examples/cron
Executable file
@@ -0,0 +1 @@
|
||||
* * * * * /usr/local/bin/php /var/www/artisan schedule:run > /proc/1/fd/1 2>/proc/1/fd/2
|
||||
32
resources/examples/nginx.conf
Executable file
32
resources/examples/nginx.conf
Executable file
@@ -0,0 +1,32 @@
|
||||
server {
|
||||
listen 80;
|
||||
server_name localhost;
|
||||
root /var/www/public;
|
||||
index index.html index.htm index.php;
|
||||
|
||||
charset utf-8;
|
||||
|
||||
location = /favicon.ico { access_log off; log_not_found off; }
|
||||
location = /robots.txt { access_log off; log_not_found off; }
|
||||
|
||||
access_log off;
|
||||
error_log stderr error;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.php?$query_string;
|
||||
}
|
||||
|
||||
location /app {
|
||||
proxy_pass http://localhost:6001;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "Upgrade";
|
||||
}
|
||||
|
||||
location ~ \.php$ {
|
||||
fastcgi_pass unix:/run/php/php7.4-fpm.sock;
|
||||
fastcgi_index index.php;
|
||||
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
|
||||
include fastcgi_params;
|
||||
}
|
||||
}
|
||||
10
resources/examples/supervisor/cyca_queue.conf
Executable file
10
resources/examples/supervisor/cyca_queue.conf
Executable file
@@ -0,0 +1,10 @@
|
||||
[program:cyca_queue]
|
||||
process_name=%(program_name)s_%(process_num)02d
|
||||
command=php /var/www/cyca/artisan queue:work --queue=notifications,default
|
||||
autostart=true
|
||||
autorestart=true
|
||||
user=www-data
|
||||
numprocs=8
|
||||
redirect_stderr=true
|
||||
stdout_logfile=/var/www/cyca/storage/logs/queues.log
|
||||
stopwaitsecs=3600
|
||||
10
resources/examples/supervisor/cyca_websocket.conf
Executable file
10
resources/examples/supervisor/cyca_websocket.conf
Executable file
@@ -0,0 +1,10 @@
|
||||
[program:cyca_websocket]
|
||||
process_name=%(program_name)s
|
||||
command=php artisan websockets:serve
|
||||
directory=/var/www/cyca
|
||||
autostart=true
|
||||
autorestart=true
|
||||
user=www-data
|
||||
redirect_stderr=true
|
||||
stdout_logfile=/var/www/cyca/storage/logs/echo-server.log
|
||||
stopwaitsecs=3600
|
||||
Reference in New Issue
Block a user