Skip to content

Commit

Permalink
This provides the ability for us to prepare for prod deployment
Browse files Browse the repository at this point in the history
These changes are strictly intended to make it easier to deploy
nginx/php into production
  • Loading branch information
sarah-savage committed Oct 16, 2024
1 parent ee312f2 commit 6786637
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 deletions.
1 change: 0 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ services:
dockerfile: ./docker/nginx/Dockerfile
ports:
- ${LOCAL_HTTP_PORT:-8099}:80
- ${LOCAL_HTTPS_PORT:-8100}:443
volumes:
- .:/var/www/html
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
Expand Down
10 changes: 3 additions & 7 deletions docker/nginx/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ ENV URL='cdn.aspirepress.local'
RUN ln -sf /dev/stdout /var/log/nginx/access.log \
&& ln -sf /dev/stderr /var/log/nginx/error.log

RUN apt-get update && apt install -y wget libnss3-tools \
&& wget -O mkcert \
https://github.com/FiloSottile/mkcert/releases/download/v1.4.3/mkcert-v1.4.3-linux-amd64 \
&& chmod +x mkcert \
&& mv mkcert /usr/local/bin \
&& mkcert -install \
&& mkcert -cert-file application -key-file application-key *.${URL}
COPY ./docker/nginx/default.conf /etc/nginx/conf.d/default.conf

COPY . /var/www/html
5 changes: 0 additions & 5 deletions docker/nginx/default.conf
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
server {
listen 80;
listen 443 ssl;
client_max_body_size 4M;

ssl_certificate /application;
ssl_certificate_key /application-key;


root /var/www/html/public/;

index index.html index.htm index.php;
Expand Down

0 comments on commit 6786637

Please sign in to comment.