Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

disable access_logs

Andras Bacsai6e3cc9d1f913
diff --git a/docker/dev-ssu/Dockerfile b/docker/dev-ssu/Dockerfile
index d283f6a565..4236dd9938 100644
--- a/docker/dev-ssu/Dockerfile
+++ b/docker/dev-ssu/Dockerfile
@@ -3,6 +3,8 @@ ARG POSTGRES_VERSION=15
RUN apt-get update && apt-get install -y php-pgsql openssh-client git git-lfs postgresql-client
RUN apt-get -y autoremove && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*
+COPY docker/dev-ssu/nginx.conf /etc/nginx/conf.d/custom.conf
+
RUN echo "alias ll='ls -al'" >>/etc/bash.bashrc
RUN echo "alias a='php artisan'" >>/etc/bash.bashrc
RUN echo "alias mfs='php artisan migrate:fresh --seed'" >>/etc/bash.bashrc
diff --git a/docker/dev-ssu/nginx.conf b/docker/dev-ssu/nginx.conf
new file mode 100644
index 0000000000..60e1f966d4
--- /dev/null
+++ b/docker/dev-ssu/nginx.conf
@@ -0,0 +1,4 @@
+# Custom nginx configuration
+
+# Disable access logs
+access_log off;
\ No newline at end of file
diff --git a/docker/prod-ssu/Dockerfile b/docker/prod-ssu/Dockerfile
index 8f3e0927c2..0ed33a0d9b 100644
--- a/docker/prod-ssu/Dockerfile
+++ b/docker/prod-ssu/Dockerfile
@@ -10,6 +10,8 @@ ARG POSTGRES_VERSION=15
RUN apt-get update && apt-get install -y php-pgsql openssh-client git git-lfs jq
RUN apt-get -y autoremove && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*
+COPY docker/prod-ssu/nginx.conf /etc/nginx/conf.d/custom.conf
+
COPY composer.json composer.lock ./
RUN composer install --no-dev --no-interaction --no-plugins --no-scripts --prefer-dist
diff --git a/docker/prod-ssu/nginx.conf b/docker/prod-ssu/nginx.conf
new file mode 100644
index 0000000000..60e1f966d4
--- /dev/null
+++ b/docker/prod-ssu/nginx.conf
@@ -0,0 +1,4 @@
+# Custom nginx configuration
+
+# Disable access logs
+access_log off;
\ No newline at end of file