Skip to content

Commit

Permalink
Update nginx.conf (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
taraio authored Mar 24, 2024
1 parent 9753b6d commit ff8a39d
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions nginx.conf
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
server {
listen 80;
server_name lynx.sh; # Replace with your actual domain name
events { }

location / {
proxy_pass http://app:4000;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $http_host;
proxy_set_header X-NginX-Proxy true;

proxy_redirect off;
http {
server {
listen 80;
server_name lynx.sh; # Replace with your actual domain name

location / {
proxy_pass http://app:4000;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $http_host;
proxy_set_header X-NginX-Proxy true;

proxy_redirect off;
}
}
}

0 comments on commit ff8a39d

Please sign in to comment.