Skip to content

Commit

Permalink
run on port 443
Browse files Browse the repository at this point in the history
  • Loading branch information
GSvensk committed Oct 5, 2021
1 parent 2d39bab commit b4f023b
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ FROM nginx:latest
#
## Copy the build output to replace the default nginx contents.
COPY --from=build /usr/local/app/dist/netflix-activity /usr/share/nginx/html
#
## Expose port 80
EXPOSE 80

COPY nginx.conf /etc/nginx/
EXPOSE 443

CMD ["/bin/sh", "-c", "envsubst < /usr/share/nginx/html/assets/env.template.js > /usr/share/nginx/html/assets/env.js && exec nginx -g 'daemon off;'"]
24 changes: 24 additions & 0 deletions nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# on alpine, copy to /etc/nginx/nginx.conf
user root;
worker_processes auto;

error_log /var/log/nginx/error.log warn;

events {
worker_connections 1024;
}

http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
sendfile off;
access_log off;
keepalive_timeout 3000;
server {
listen 443;
root /usr/share/nginx/html;
index index.html;
server_name localhost;
client_max_body_size 16m;
}
}

0 comments on commit b4f023b

Please sign in to comment.