Skip to content

Commit

Permalink
fix Dockerfile, nginx config
Browse files Browse the repository at this point in the history
  • Loading branch information
opeoniye committed Sep 16, 2023
1 parent dedb933 commit 0bf7edd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ src/.env
src/docker-compose.yml

# folders
_
_
5 changes: 1 addition & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
COPY ./src /var/www
5 changes: 3 additions & 2 deletions ops/docker/nginx/dtc.conf
Original file line number Diff line number Diff line change
@@ -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;
Expand Down

0 comments on commit 0bf7edd

Please sign in to comment.