You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
522 B
25 lines
522 B
worker_processes 1; |
|
|
|
events { worker_connections 1024; } |
|
|
|
http { |
|
|
|
sendfile on; |
|
|
|
upstream app { |
|
server app:3001; |
|
} |
|
|
|
server { |
|
listen 8000; |
|
|
|
location / { |
|
proxy_pass http://app; |
|
proxy_redirect off; |
|
proxy_set_header Host $host; |
|
proxy_set_header X-Real-IP $remote_addr; |
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
|
proxy_set_header X-Forwarded-Host $server_name; |
|
} |
|
} |
|
} |