Commit a5e223fe authored by Mahmoud Aglan's avatar Mahmoud Aglan

fixed again

parent b658b903
...@@ -83,8 +83,10 @@ RUN chown -R www-data:www-data /var/www/html \ ...@@ -83,8 +83,10 @@ RUN chown -R www-data:www-data /var/www/html \
&& chmod -R 755 /var/www/html/storage \ && chmod -R 755 /var/www/html/storage \
&& chmod -R 755 /var/www/html/bootstrap/cache && chmod -R 755 /var/www/html/bootstrap/cache
# Copy config files # Nginx config — replace default with our own to guarantee correct root
COPY docker/nginx.conf /etc/nginx/http.d/default.conf RUN rm -rf /etc/nginx/http.d /etc/nginx/conf.d && mkdir -p /etc/nginx/conf.d
COPY docker/nginx-main.conf /etc/nginx/nginx.conf
COPY docker/nginx.conf /etc/nginx/conf.d/default.conf
COPY docker/supervisord.conf /etc/supervisord.conf COPY docker/supervisord.conf /etc/supervisord.conf
COPY docker/entrypoint.sh /entrypoint.sh COPY docker/entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh RUN chmod +x /entrypoint.sh
......
worker_processes auto;
error_log /dev/stderr warn;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
sendfile on;
tcp_nopush on;
keepalive_timeout 65;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /dev/stdout main;
include /etc/nginx/conf.d/*.conf;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment