Skip to content

Commit

Permalink
adding comment and changing localhost to ip address
Browse files Browse the repository at this point in the history
  • Loading branch information
EliseCastle23 committed Sep 4, 2024
1 parent 95a3801 commit debc793
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ COPY --from=builder /src /src
# install nginx
RUN yum install nginx -y

# allows nginx to run on port 80 without being root user
RUN setcap 'cap_net_bind_service=+ep' /usr/sbin/nginx

# chown nginx directories
Expand Down
2 changes: 1 addition & 1 deletion deployment/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ http {
server_name localhost;

location / {
proxy_pass http://localhost:8000;
proxy_pass http://127.0.0.1:8000;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
Expand Down

0 comments on commit debc793

Please sign in to comment.