Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiio committed Jun 4, 2024
1 parent b35d8b4 commit 3a90174
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 1 deletion.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ RUN apk update && \
#
# install extensions
install-php-extensions \
event \
excimer \
exif \
gd \
Expand Down
17 changes: 16 additions & 1 deletion docker/nginx/nginx.conf
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
daemon off;
user www-data www-data;
error_log /dev/stdout info;
worker_rlimit_nofile 10000;

events {
worker_connections 2048;
worker_connections 10000;
multi_accept on;
}

http {
Expand Down Expand Up @@ -69,6 +71,19 @@ http {
try_files $uri $uri/ /index.php?$query_string;
}

location /app {
proxy_http_version 1.1;
proxy_set_header Host $http_host;
proxy_set_header Scheme $scheme;
proxy_set_header SERVER_PORT $server_port;
proxy_set_header REMOTE_ADDR $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";

proxy_pass http://0.0.0.0:8080;
}

location = /index.php {
if (!-f $realpath_root$fastcgi_script_name) {
return 404;
Expand Down
1 change: 1 addition & 0 deletions docker/s6-rc.d/reverb/dependencies
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
laravel
3 changes: 3 additions & 0 deletions docker/s6-rc.d/reverb/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/command/with-contenv sh

php /var/www/artisan reverb:start
1 change: 1 addition & 0 deletions docker/s6-rc.d/reverb/type
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
longrun
Empty file.

0 comments on commit 3a90174

Please sign in to comment.