From 0bf7edd0ca5ed8622249d1b2bec3df779a292025 Mon Sep 17 00:00:00 2001 From: Samuel John Date: Sat, 16 Sep 2023 22:50:43 +0100 Subject: [PATCH] fix Dockerfile, nginx config --- .gitignore | 2 +- Dockerfile | 5 +---- ops/docker/nginx/dtc.conf | 5 +++-- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 4404f4c..966eaf1 100644 --- a/.gitignore +++ b/.gitignore @@ -7,4 +7,4 @@ src/.env src/docker-compose.yml # folders -_ +_ \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 0abf8af..7666a64 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,4 @@ FROM opeoniye/nginx WORKDIR /var/www # copy code -COPY --chown=nginx:nginx ./src /var/www - -# run user as node -USER nginx \ No newline at end of file +COPY ./src /var/www \ No newline at end of file diff --git a/ops/docker/nginx/dtc.conf b/ops/docker/nginx/dtc.conf index 630c261..da2751c 100644 --- a/ops/docker/nginx/dtc.conf +++ b/ops/docker/nginx/dtc.conf @@ -1,7 +1,8 @@ # testimony-app server { - listen 443 ssl http2; - listen [::]:443 ssl http2; + listen 443 ssl; + listen [::]:443 ssl; + http2 on; server_name _; root /var/www; index index.html;