Skip to content

Commit

Permalink
Update nginx config file
Browse files Browse the repository at this point in the history
  • Loading branch information
DEENUU1 committed Dec 23, 2023
1 parent 98fe7e8 commit 95c3468
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ RUN addgroup --system app && adduser --system --group app

COPY . /app/

ENTRYPOINT ["/app/entrypoints.sh"]
#ENTRYPOINT ["/app/entrypoints.sh"]
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@ services:
context: .
dockerfile: ./nginx/Dockerfile
ports:
- 443:80
- 80:80
depends_on:
- web
6 changes: 3 additions & 3 deletions nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ upstream web {
server {

listen 80;
server_name your_domain.com;

location / {
proxy_pass http://web;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_redirect off;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}

}

0 comments on commit 95c3468

Please sign in to comment.