Skip to content

Commit

Permalink
Merge pull request #107 from Muhammad-Abdullah012/refactors/remove-sc…
Browse files Browse the repository at this point in the history
…rapper-config

refactor: removed nginx config for scrapper api
  • Loading branch information
kashikhan1 authored Sep 13, 2024
2 parents f76e5e6 + bd2cfbe commit 3abdba4
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ http {
include /etc/nginx/mime.types;
default_type application/octet-stream;

upstream api-server {
server scrapper_zameen_container:3000;
keepalive 100;
}
# upstream api-server {
# server scrapper_zameen_container:3000;
# keepalive 100;
# }
upstream api-server2 {
server api_server_container:5000;
keepalive 100;
Expand Down Expand Up @@ -61,15 +61,15 @@ http {
proxy_cache_bypass $http_upgrade;
}

location /api/scrapper/ {
proxy_http_version 1.1;
proxy_pass http://api-server/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_cache_bypass $http_upgrade;
}
# location /api/scrapper/ {
# proxy_http_version 1.1;
# proxy_pass http://api-server/;
# proxy_set_header Host $host;
# proxy_set_header X-Real-IP $remote_addr;
# proxy_set_header Upgrade $http_upgrade;
# proxy_set_header Connection 'upgrade';
# proxy_cache_bypass $http_upgrade;
# }

location /api/server/ {
proxy_http_version 1.1;
Expand Down

0 comments on commit 3abdba4

Please sign in to comment.